-
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathpyproject.toml
More file actions
139 lines (121 loc) · 3.21 KB
/
Copy pathpyproject.toml
File metadata and controls
139 lines (121 loc) · 3.21 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
# --- PROJECT CONFIGURATION --- #
[build-system]
requires = ["setuptools>=67", "wheel", "setuptools-git-versioning>=2.0,<3"]
build-backend = "setuptools.build_meta"
# Metadata (see https://peps.python.org/pep-0621/)
[project]
name = "nwp-consumer"
dynamic = ["version"] # Set automtically using git: https://setuptools-git-versioning.readthedocs.io/en/stable/
description = "Tool for aggregating raw NWP files into .zarr files"
readme = {file = "README.md", content-type = "text/markdown"}
requires-python = ">=3.12,<3.13"
license = {text = "MIT License"}
authors = [
{ name = "Sol Cotton", email = "sol@openclimatefix.org"}
]
classifiers = ["Programming Language :: Python :: 3"]
dependencies = [
"dask == 2024.8.1",
"eccodes == 2.38.3",
"ecmwf-api-client == 1.6.3",
"cfgrib == 0.9.14.1",
"dagster-pipes == 1.9.3",
"joblib == 1.4.2",
"numcodecs == 0.15.1",
"numpy == 2.1.0",
"ocf-blosc2 == 0.0.11",
"psutil == 6.0.0",
"returns == 0.24.0",
"s3fs == 2024.9.0",
"xarray == 2025.1.0",
"zarr == 2.18.3",
"pandas < 3.0",
]
[dependency-groups]
dev = [
# Testing
"botocore == 1.33.7", # Required for moto, prevents installing the whole of boto3
"flask == 3.0.0",
"flask-cors == 4.0.0",
"moto[s3,server] == 4.2.11",
"unittest-xml-reporting == 3.2.0",
"hypothesis == 6.115.3",
# Linting
"ruff==0.6.9",
"pandas-stubs",
"types-psutil",
"types-pytz",
"types-pyyaml",
# Docs
"pydoctor >= 24.3.0",
"pdoc >= 15.0.0",
# IDE support
"python-lsp-server",
"python-lsp-ruff",
"ty>=0.0.75",
]
[project.scripts]
nwp-consumer-cli = "nwp_consumer.cmd.main:run_cli"
[project.urls]
repository = "https://github.com/openclimatefix/nwp-consumer"
[tool.setuptools.packages.find]
where = ["src"]
exclude = ["test*"]
[tool.setuptools.package-data]
"*" = ["py.typed", "*.pyi"]
[tool.setuptools-git-versioning]
enabled = true
# --- LINTING AND TYPING CONFIGURATION --- #
[tool.basedpyright]
include = ["src"]
exclude = ["**/__pycache__"]
pythonVersion = "3.12"
# Ruff configuration
# * See https://beta.ruff.rs/docs/
[tool.ruff]
line-length = 100
indent-width = 4
exclude = ["__init__.py"]
[tool.ruff.lint]
fixable = ["ALL"]
select = [
"F", # pyflakes
"E", # pycodestyle
"W", # whitespace and newlines
"I", # isort
"UP", # modernize
"ANN", # flake8 type annotations
"S", # flake8 bandit
"B", # flake8 bugbear
"C4", # flake8 comprehensions
"COM", # flake8 commas
"T20", # flake8 print
"SIM", # flake8 simplify
"ARG", # flake8 unused arguments
"DTZ", # flake8 datetimes
"Q", # flake8 quotes
"TCH", # flake8 typecheck
"D", # pydocstyle
"RUF", # ruff-specific rules
]
[tool.ruff.lint.per-file-ignores]
"test*" = ["D", "ANN"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "auto"
docstring-code-format = true
docstring-code-line-length = 100
# --- DOCUMENTATION CONFIGURATION --- #
[tool.pydoctor]
add-package = ["src/nwp_consumer"]
project-base-dir = "src/nwp_consumer"
docformat = "google"
html-output = "docs"
theme = "classic"
warnings-as-errors = true
privacy = [
"HIDDEN:**.test_*",
]