-
Notifications
You must be signed in to change notification settings - Fork 6
/
pyproject.toml
225 lines (202 loc) · 4.89 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
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
[build-system]
requires = ["flit_core >=3.9,<4"]
build-backend = "flit_core.buildapi"
[project]
name = "rook"
authors = [
{name = "Carsten Ehbrecht", email = "ehbrecht@dkrz.de"}
]
maintainers = [
{name = "Carsten Ehbrecht", email = "ehbrecht@dkrz.de"},
{name = "Trevor James Smith", email = "smith.trevorj@ouranos.ca"},
]
readme = {file = "README.rst", content-type = "text/x-rst"}
requires-python = ">=3.9.0"
keywords = ["wps", "pywps", "birdhouse", "rook"]
license = {file = "LICENSE"}
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX",
"Programming Language :: Python",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Atmospheric Science"
]
dynamic = ["description", "version"]
dependencies = [
"click >=8.1.7",
"jinja2 >=3.1.4",
"psutil >=6.0.0",
"pywps >=4.5.1,<4.6"
]
[project.optional-dependencies]
dev = [
"pip >=24.2.0",
"bump-my-version >=0.26.0",
"coverage >=7.5.0",
"cruft >=2.15.0",
"flit >=3.9.0,<4.0",
"nbsphinx >=0.9.5",
"nbval >=0.10.0",
"pytest >=8.0.0",
"pytest-cov >=5.0.0",
"ruff >=0.5.7",
"sphinx >=7.0.0",
"tox >=4.18.0",
"watchdog >=4.0.0"
]
[project.scripts]
rook = "rook.cli:cli"
[project.urls]
"Issue tracker" = "https://github.com/roocs/rook/issues"
"Changelog" = "https://github.com/roocs/rook/blob/master/changelog.rst"
"Homepage" = "https://github.com/roocs/rook"
[tool]
[tool.bumpversion]
current_version = "0.14.0"
commit = true
commit_args = "--no-verify"
tag = true
tag_name = "v{new_version}"
allow_dirty = true
[[tool.bumpversion.files]]
filename = "src/rook/__version__.py"
search = "__version__ = \"{current_version}\""
replace = "__version__ = \"{new_version}\""
[[tool.bumpversion.files]]
filename = "Dockerfile"
search = "Version=\"{current_version}\""
replace = "Version=\"{new_version}\""
[[tool.bumpversion.files]]
filename = ".cruft.json"
search = "\"version\": \"{current_version}\""
replace = "\"version\": \"{new_version}\""
[tool.coverage.paths]
source = ["src/rook/", "*/site-packages/rook/"]
[tool.coverage.run]
omit = ["tests/*.py"]
relative_files = true
source = ["rook"]
[tool.flit.sdist]
include = [
".zenodo.json",
"AUTHORS.rst",
"CHANGELOG.rst",
"CONTRIBUTING.rst",
"LICENSE",
"Makefile",
"README.rst",
"environment.yml",
"environment-dev.yml",
"environment-docs.yml",
"docs/_static/_images/*.gif",
"docs/_static/_images/*.jpg",
"docs/_static/_images/*.png",
"docs/_static/_images/*.rst",
"docs/Makefile",
"docs/conf.py",
"docs/make.bat",
"src/rook",
"tests/*.py",
"tox.ini"
]
exclude = [
"*.py[co]",
"__pycache__",
".codacy.yml",
".dockerignore",
".editorconfig",
".gitignore",
".pre-commit-config.yaml",
".readthedocs.yml",
".yamllint.yaml",
"Dockerfile",
"docker-compose.yml",
"docs/_*",
"docs/apidoc/modules.rst",
"docs/apidoc/rook*.rst"
]
[tool.mypy]
files = "."
# Use strict defaults
strict = true
warn_unreachable = true
warn_no_return = true
[[tool.mypy.overrides]]
# Don't require test functions to include types
module = "tests.*"
allow_untyped_defs = true
disable_error_code = "attr-defined"
[tool.pytest.ini_options]
addopts = [
"--color=yes",
"--cov=rook",
"--cov-report=term-missing",
"--ignore=setup.py",
"--strict-markers",
"--tb=native"
]
python_files = ["test_*.py"]
markers = [
"online: mark test to need internet connection",
"slow: mark test to be slow",
"smoke: mark test as a smoke/sanity test"
]
[tool.ruff]
src = ["rook"]
line-length = 150
exclude = [
".eggs",
".git",
"build",
"docs"
]
[tool.ruff.format]
line-ending = "auto"
[tool.ruff.lint]
extend-select = [
"RUF022" # unsorted-dunder-all
]
ignore = [
"COM", # commas
"D205", # blank-line-after-summary
"D400", # ends-in-period
"D401" # non-imperative-mood
]
preview = true
select = [
"BLE", # blind-except
"C90", # mccabe-complexity
"D", # docstrings
"E", # pycodestyle errors
"FLY002", # static-join-to-fstring
"G", # logging-format
"N", # naming conventions
"PERF", # iterator performance
"PTH", # pathlib
"RUF010", # explicit-f-string-type-conversion
"RUF013", # implicit-optional
"S", # bandit
"UP", # python version conventions
"W" # pycodestyle warnings
]
[tool.ruff.lint.flake8-bandit]
check-typed-exception = true
[tool.ruff.lint.mccabe]
max-complexity = 15
[tool.ruff.lint.per-file-ignores]
"docs/**" = ["E402"]
"src/rook/**/__init__.py" = ["F401", "F403"]
"tests/**" = ["D100", "D101", "D102", "D103", "S101"]
[tool.ruff.lint.pycodestyle]
max-doc-length = 180
[tool.ruff.lint.pydocstyle]
convention = "numpy"