generated from ImperialCollegeLondon/pip-tools-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
165 lines (151 loc) · 3.82 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
[build-system]
build-backend = "hatchling.build"
requires = [
"hatch-vcs",
"hatchling",
]
[project]
name = "swmmanywhere"
description = "SWMManywhere software"
readme = "README.md"
authors = [
{ name = "Barnaby Dobson", email = "[email protected]" },
{ name = "Diego Alonso-Álvarez", email = "[email protected]" },
{ name = "Taher Chegini", email = "[email protected]" },
]
requires-python = ">=3.10"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: GIS",
"Typing :: Typed",
]
dynamic = [
"version",
]
dependencies = [
"cdsapi",
"cytoolz",
"folium",
"geopandas>=1",
"geopy",
"joblib",
"jsonschema",
"loguru",
"matplotlib",
"netcdf4",
"networkx>=3",
"numpy>=2",
"osmnx>=1.9.3",
"pandas",
"planetary-computer",
"pyarrow",
"pydantic",
"pyflwdir",
"pystac-client",
"pyswmm",
"pywbt>=0.2.2",
"pyyaml",
"rasterio",
"rioxarray",
"scipy",
"shapely",
"tqdm",
"xarray",
]
optional-dependencies.dev = [
"mypy",
"pip-tools",
"pre-commit",
"pytest",
"pytest-cov",
"pytest-mock",
"pytest-mypy",
"ruff",
]
optional-dependencies.doc = [
"mkdocs",
"mkdocs-autorefs",
"mkdocs-bibtex",
"mkdocs-coverage",
"mkdocs-include-markdown-plugin",
"mkdocs-jupyter",
"mkdocs-material",
"mkdocs-material-extensions",
"mkdocstrings[python]",
"pypandoc",
]
urls.Documentation = "https://imperialcollegelondon.github.io/SWMManywhere/"
urls.Issues = "https://github.com/ImperialCollegeLondon/SWMManywhere/issues"
urls.Source = "https://github.com/ImperialCollegeLondon/SWMManywhere"
[tool.hatch.build.targets.wheel]
only-include = [ "src" ]
sources = [ "src" ]
[tool.hatch.metadata]
license = "BSD-3-clause" # Or your primary license name
license-files = [ "LICENSE", "src/netcomp/LICENSE.txt" ]
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "_version.py"
[tool.ruff]
lint.select = [ "D", "E", "F", "I" ] # pydocstyle, pycodestyle, Pyflakes, isort
lint.per-file-ignores."docs/notebooks/*" = [ "D100" ]
lint.per-file-ignores."src/netcomp/*" = [ "D", "F" ] # Ignore all checks for netcomp
lint.per-file-ignores."tests/*" = [ "D100", "D104" ]
lint.isort.known-first-party = [ "swmmanywhere", "netcomp" ]
lint.isort.required-imports = [ "from __future__ import annotations" ]
lint.pydocstyle.convention = "google"
[tool.codespell]
skip = "src/swmmanywhere/defs/iso_converter.yml,*.inp,docs/paper/*"
ignore-words-list = "gage,gages,Carrer"
[tool.pytest.ini_options]
addopts = "-v --cov=src/swmmanywhere --cov-report=xml --doctest-modules --ignore=src/swmmanywhere/logging.py"
markers = [
"downloads: mark a test as requiring downloads",
]
[tool.coverage.report]
exclude_lines = [
"if TYPE_CHECKING:",
]
omit = [
"**/__init__.py",
]
ignore_errors = true
[tool.coverage.paths]
source = [ "src", "*/site-packages" ]
omit = [
"**/__init__.py",
]
[tool.coverage.run]
branch = true
source = [
"swmmanywhere",
]
omit = [
"**/__init__.py",
]
[tool.mypy]
disallow_any_explicit = false
disallow_any_generics = false
warn_unreachable = true
warn_unused_ignores = false
disallow_untyped_defs = false
exclude = [ ".venv/" ]
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_defs = false
[tool.refurb]
ignore = [
184, # Because some frankly bizarre suggestions
109, # Because pyyaml doesn't support tuples
]