forked from Deltares/hydromt_wflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
129 lines (116 loc) · 3.17 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
[build-system]
requires = ["flit_core >=3.4.0,<4"]
build-backend = "flit_core.buildapi"
[project]
name = "hydromt_wflow"
authors = [
{ name = "Dirk Eilander", email = "[email protected]" },
{ name = "Hélène Boisgontier", email = "[email protected]" },
{ name = "Joost Buitink", email = "[email protected]" },
{ name = "Brendan Dalmijn", email = "[email protected]" },
]
dependencies = [
"dask",
"geopandas>=0.10",
"hydromt>=0.9.3,<0.10",
"netcdf4",
"numpy",
"pandas",
"pyflwdir>=0.5.7",
"pyproj",
"rioxarray",
"scipy",
"shapely",
"toml",
"xarray",
]
requires-python = ">=3.9"
readme = "README.rst"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Hydrology",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Programming Language :: Python :: 3",
]
dynamic = ['version', 'description']
[project.optional-dependencies]
io = [
"requests",
]
extra = [
"hydroengine",
"gwwapi",
"pcraster",
"pyet",
]
dev = [
"black",
"ruff",
"pre-commit",
"pip>=23.1.2",
]
test = [
"pytest>=2.7.3",
"pytest-cov",
"pytest-mock",
"hydromt_wflow[dev, extra]",
]
doc = [
"nbsphinx",
"sphinx",
"sphinx_design",
"pydata-sphinx-theme",
"sphinx_autosummary_accessors",
"hydromt_wflow[examples,extra]",
]
examples = [
"jupyterlab",
"cartopy",
"nbconvert==7.13.1", # Pin as of (02-2024); 7.14 onwards causes issues with the progressbar in example notebooks. See issue #233 for more info (https://github.com/Deltares/hydromt_wflow/issues/233).
"notebook",
]
full = ["hydromt_wflow[io,extra,dev,test,doc,examples]"]
slim = ["hydromt_wflow[io,extra,examples]"]
[project.urls]
Documentation = "http://deltares.github.io/hydromt_wflow/latest/"
Source = "https://github.com/Deltares/hydromt_wflow"
[project.entry-points."hydromt.models"]
wflow = "hydromt_wflow.wflow:WflowModel"
wflow_sediment = "hydromt_wflow.wflow_sediment:WflowSedimentModel"
[tool.make_env]
channels = ["conda-forge"]
deps_not_in_conda = [
"gwwapi",
"hydroengine",
"sphinx_autosummary_accessors",
"sphinx_design",
"pyet",
]
[tool.black]
line-length = 88
target-version = ['py39']
[tool.ruff]
line-length = 88
# enable pydocstyle (E), pyflake (F) and isort (I), pytest-style (PT)
select = ["E", "F", "I", "PT", "D"]
ignore-init-module-imports = true
ignore = ["D211", "D213", "E741", "D105", "E712"]
exclude = ["docs"]
[tool.ruff.per-file-ignores]
"tests/**" = ["D103", "D100", "D104"]
"hydromt_wflow/__init__.py" = ["E402", "F401", "F403"]
"hydromt_wflow/workflows/__init__.py" = ["F403"]
"tests/conftest.py" = ["E402"]
[tool.ruff.pydocstyle]
convention = "numpy"
[tool.flit.sdist]
include = ["hydromt_wflow"]
exclude = ["docs", "examples", "envs", "tests", "binder", ".github"]
[tool.pytest.ini_options]
filterwarnings = [
"ignore:distutils Version classes are deprecated:DeprecationWarning",
"ignore:The staticmaps property:DeprecationWarning",
"ignore:The staticgeoms property:DeprecationWarning",
]