-
-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy pathpyproject.toml
More file actions
92 lines (79 loc) · 1.71 KB
/
pyproject.toml
File metadata and controls
92 lines (79 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
[build-system]
requires = ["setuptools>=67", "wheel", "setuptools-git-versioning>=2.0,<3"]
build-backend = "setuptools.build_meta"
[project]
name="PVNet"
description = "PVNet"
authors = [{name="Peter Dudfield", email="info@openclimatefix.org"}]
dynamic = ["version"]
license={file="LICENCE"}
readme = {file="README.md", content-type="text/markdown"}
requires-python = ">=3.11,<3.14"
dependencies = [
"ocf-data-sampler>=1.0.9",
"numpy",
"pandas",
"matplotlib",
"xarray",
"h5netcdf",
"torch>=2.0.0",
"lightning",
"typer",
"sqlalchemy",
"fsspec[s3]",
"wandb",
"huggingface-hub",
"tqdm",
"omegaconf",
"hydra-core",
"rich",
"einops",
"safetensors",
]
[dependency-groups]
dev=[
"ruff",
"mypy",
"pytest",
"pytest-cov",
]
[tool.setuptools-git-versioning]
enabled = true
[tool.setuptools.package-dir]
"pvnet" = "pvnet"
[tool.mypy]
exclude = [
"^tests/",
]
disallow_untyped_defs = true
disallow_any_unimported = true
no_implicit_optional = true
check_untyped_defs = true
warn_return_any = true
warn_unused_ignores = true
show_error_codes = true
warn_unreachable = true
[[tool.mypy.overrides]]
module = []
ignore_missing_imports = true
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra -q"
testpaths = [
"tests",
]
[tool.ruff]
line-length = 100
exclude = ["tests"]
target-version = "py310"
[tool.ruff.lint]
extend-select = ["E", "D", "I"]
ignore = ["D200","D202","D210","D212","D415","D105"]
[tool.ruff.lint.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10
[tool.ruff.lint.pydocstyle]
# Use Google-style docstrings.
convention = "google"
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401", "E402"]