-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
105 lines (95 loc) · 3.07 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
[build-system]
requires = ["flit_core >=3.4.0"]
build-backend = "flit_core.buildapi"
[project]
name = "hydromt_delft3dfm"
authors = [
{ name = "Rinske Hutten", email = "[email protected]" },
{ name = "Xiaohan Li", email = "[email protected]" },
{ name = "Hélène Boisgontier", email = "[email protected]" },
{ name = "Jelmer Veenstra", email = "[email protected]" },
{ name = "Sebastian Hartgring", email = "[email protected]" },
]
dependencies = [
"hydromt>=0.10.0, <1", # TODO: move to hydromt>=1: https://github.com/Deltares/hydromt_delft3dfm/issues/137
"geopandas>=0.10, !=1.0.0", # gpd 1.0.0 has sjoin bug: https://github.com/geopandas/geopandas/issues/352
"numpy",
"pandas>=2.0.0",
"xarray",
"hydrolib-core>=0.8.0",
"xugrid>=0.9.0",
"meshkernel>=4.3.0",
"pyproj",
"shapely>=2.0.0",
"scipy",
"pyflwdir>=0.5.4",
"networkx",
]
requires-python = ">=3.9"
readme = "README.rst"
classifiers = [
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
"Development Status :: 2 - Pre-Alpha",
"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",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dynamic = ['version', 'description']
[project.optional-dependencies]
dev = [
"black", # linting
"ruff", # linting
"pre-commit", # linting
"pip>=23.1.2", # needed for recursive dependencies
"flit>3.4", # build
"twine", # build
"wheel", # build
]
test = [
"pytest>=2.7.3",
"pytest-cov",
]
docs = [
"nbsphinx", # docs notebook examples
"sphinx",
"sphinx_design",
"pydata-sphinx-theme",
"sphinx_autosummary_accessors",
]
examples = [
"jupyterlab", # run examples in jupyter notebook
"notebook", # jupyter integration
"cartopy", # plot examples
"matplotlib", # plot examples
]
[project.urls]
Documentation = "http://deltares.github.io/hydromt_delft3dfm/latest/"
Source = "https://github.com/Deltares/hydromt_delft3dfm"
[project.entry-points."hydromt.models"]
dflowfm = "hydromt_delft3dfm.dflowfm:DFlowFMModel"
[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 = ["examples", "tests", "docs"]
[tool.ruff.per-file-ignores]
"hydromt_delft3dfm/__init__.py" = ["E402", "F403"]
"hydromt_delft3dfm/workflows/__init__.py" = ["F403"]
[tool.ruff.pydocstyle]
convention = "numpy"
[tool.flit.sdist]
include = ["hydromt_delft3dfm"]
exclude = ["docs", "examples", "envs", "tests", ".github"]
[tool.pytest.ini_options]
addopts = "--durations=0"