-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
169 lines (152 loc) Β· 4.05 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "imod"
dynamic = ["version"]
requires-python = ">=3.10"
authors = [{ name = "Deltares", email = "imod.info@deltares.nl" }, ]
maintainers = [{ name = "Deltares", email = "imod.info@deltares.nl" }]
description = "Make massive MODFLOW models!"
readme = "README.rst"
license = { file = "LICENSE" }
keywords = ["imod", "modflow", "groundwater modeling"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Hydrology",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Scientific/Engineering"
]
dependencies = [
"affine",
"cftime >=1",
"dask",
"fastcore",
"filelock",
"Jinja2",
"loguru",
"matplotlib",
"numba",
"numpy",
"pandas",
"pooch",
"pydantic",
"scipy",
"tomli >= 1.1.0",
"tomli_w",
"toolz",
"tqdm",
"xarray >=2023.08.0",
"xugrid >=0.9.0",
]
[project.urls]
Homepage = "https://github.com/Deltares/imod-python"
Documentation = "https://deltares.github.io/imod-python/"
Repository = "https://github.com/Deltares/imod-python.git"
"Bug Tracker" = "https://github.com/Deltares/imod-python/issues"
Changelog = "https://github.com/Deltares/imod-python/blob/master/docs/api/changelog.rst"
[project.optional-dependencies]
all = [
"bottleneck",
"contextily >=1",
"cytoolz",
"geopandas",
"pyvista",
"rasterio >=1",
"rioxarray",
"shapely >=1.8",
"zarr",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
]
[tool.ruff.lint]
select = ["C4", "E", "F", "I", "NPY201", "PD"]
ignore = [
"E501", # line-too-long. This rule can't be fullfilled by the ruff formatter. The same behavior as black.
"PD003",
"PD004",
"PD901",
"PD011",
"PD013",
"PD015",
]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.lint.per-file-ignores]
"./docs/conf.py" = ["F401"]
"__init__.py" = ["F401"]
"conftest.py" = ["F401"]
"test_examples.py" = ["F401"]
"examples/*" = ["E402"]
[tool.mypy]
files = [
"imod/logging/**/**.py",
"imod/mf6/**/**.py",
"imod/msw/**/**.py",
"imod/prepare/**/**.py",
"imod/select/**/**.py",
"imod/typing/**/**.py",
"imod/util/**/**.py",
]
follow_imports = "normal"
strict = true
# These shouldn't be too much additional work, but may be tricky to
# get passing if you use a lot of untyped libraries
disallow_any_generics = false
# These next few are various gradations of forcing use of type annotations
disallow_untyped_calls = false
disallow_incomplete_defs = false
disallow_untyped_defs = false
# This one isn't too hard to get passing, but return on investment is lower
no_implicit_reexport = false
# This one can be tricky to get passing if you use a lot of untyped libraries
warn_return_any = false
[[tool.mypy.overrides]]
module = ["imod.msw.*"]
check_untyped_defs = false
[[tool.mypy.overrides]]
module = [
"affine.*",
"bottleneck.*",
"cftime.*",
"contextily.*",
"dateutil.*",
"flopy.*",
"fastcore.*",
"geopandas.*",
"matplotlib.*",
"mpl_toolkits.*",
"numba.*",
"osgeo.*",
"pandas.*",
"pooch.*",
"pyproj.*",
"rasterio.*",
"scipy.*",
"shapely.*",
"tomllib.*",
"tqdm.*",
"vtk.*",
"xugrid.*",
]
ignore_missing_imports = true
[tool.pytest.ini_options]
markers = [
"example: marks test as example (deselect with '-m \"not example\"')",
"user_acceptance: marks user acceptance tests (deselect with '-m \"not user_acceptance\"')",
"unittest_jit: marks unit tests that should be jitted (deselect with '-m \"not unittest_jit\"')"
]
[tool.hatch.version]
path = "imod/__init__.py"
[tool.hatch.build.targets.sdist]
only-include = ["imod"]