-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
pyproject.toml
88 lines (80 loc) · 1.62 KB
/
pyproject.toml
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
[project]
name="PVNet"
description = "PVNet"
authors = [{name="Peter Dudfield", email="info@openclimatefix.org"}]
dynamic = ["version", "readme"]
license={file="LICENCE"}
dependencies = [
"ocf_datapipes>=3.3.34",
"ocf_ml_metrics>=0.0.11",
"numpy",
"pandas",
"matplotlib",
"xarray",
"ipykernel",
"h5netcdf",
"torch>=2.0.0",
"lightning",
"torchvision",
"pytest",
"pytest-cov",
"typer",
"sqlalchemy",
"fsspec[s3]",
"wandb",
"huggingface-hub",
"tensorboard",
"tqdm",
"omegaconf",
"hydra-core",
"python-dotenv",
"hydra-optuna-sweeper",
"rich",
"gcsfs",# gcsfs is only needed when getting data from Google Cloud Storage
]
[tool.setuptools.dynamic]
version = {attr = "pvnet.__version__"}
readme = {file = "README.md", content-type = "text/markdown"}
[tool.setuptools.package-dir]
"pvnet" = "pvnet"
[project.optional-dependencies]
dev=[
"pvlive-api",
"black",
"flake8",
"isort",
"mypy",
"pre-commit",
"pytest",
"pytest-cov",
]
all_models=[
"pytorch-tabnet",
"efficientnet_pytorch"
]
all=["PVNet[dev,all_models]"]
[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 = [".ipynb_checkpoints", "tests", "configs.example"]