forked from Deltares/hydromt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
152 lines (139 loc) · 5.68 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
[build-system]
requires = ["flit_core >=3.4.0,<4"]
build-backend = "flit_core.buildapi"
[project]
name = "hydromt"
authors = [
{ name = "Dirk Eilander", email = "dirk.eilander@deltares.nl" },
{ name = "Hélène Boisgontier", email = "helene.boisgontier@deltares.nl" },
{ name = "Sam Vente", email = "sam.vente@deltares.nl" },
]
dependencies = [
"affine", # Spatial rasterers affine transformations (bbox pixel coalision)
"bottleneck", # Spearmen rank computation
"click", # CLI configuration
"dask", # lazy computing
"fsspec", # general file systems utilities
"geopandas>=0.10", # pandas but geo, wraps fiona and shapely
"importlib_metadata", # entrypoints backport
"mercantile", # tile handling
"netcdf4", # netcfd IO
"numba", # speed up computations (used in e.g. stats)
"numpy>=1.23, <2", # pin necessary to ensure compatability with C headers
"packaging", # compare versions of hydromt
"pandas", # Dataframes
"pooch", # data fetching
"pydantic~=2.4", # Validation
"pyflwdir>=0.5.4", # Hight models and derivatives
"pyogrio>=0.6", # io for geopandas dataframes
"pyproj", # projections for Coordinate reference systems
"pystac", # STAC integration
"pyyaml", # yaml interface
"rasterio", # raster wrapper around gdal
"requests", # donwload stuff
"rioxarray", # wraps rasterio and xarray. Almost superceded by hydromt/raster.py
"scipy", # scientific utilities
"shapely>=2.0.0", # geometry transforms
"tomli", # parsing toml files
"tomli-w", # writing toml files
"universal_pathlib>=0.2", # provides path compatability between different filesystems
"xarray", # ndim data arrays
"xmltodict", # xml parser also used to read VRT
"zarr", # zarr
]
requires-python = ">=3.9"
readme = "README.rst"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Hydrology",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
]
dynamic = ['version', 'description']
[project.optional-dependencies]
io = [
"gcsfs>=2023.12.1", # google cloud file system
"openpyxl", # excel IO
"fastparquet", # parquet IO
"pillow", # image IO
"rio-vrt", # write VRT files
"s3fs", # S3 file system
]
extra = [
"matplotlib", # plotting; required for slippy tiles
"pyet", # calc evapotraspiration, quite well used, used in all wflow models but domain specific
"xugrid>=0.9.0", # xarray wrapper for mesh processing
]
dev = [
"black", # linting
"flit", # needed to publish to pypi
"pip>=23.1.2", # needed for recursive dependencies
"pre-commit", # linting
"ruff", # linting
"twine", # needed to publish to pypi
]
test = [
"pytest>=2.7.3", # testing framework
"pytest-cov", # test coverage
"pytest-mock", # mocking
"pytest-timeout", # darn hanging tests
"xugrid",
]
doc = [
"hydromt[examples,extra]", # examples are included in the docs
"nbsphinx", # build notebooks in docs
"pydata-sphinx-theme>=0.15.2", # theme
"sphinx_autosummary_accessors", # doc layout
"sphinx", # build docks
"sphinx_design", # doc layout
"sphinx-click", # click integration
]
examples = [
"cartopy", # plotting examples
"jupyterlab", # run examples in jupyter notebook
"notebook", # jupyter integration
]
full = ["hydromt[io,extra,dev,test,doc,examples]"]
slim = ["hydromt[io,extra,examples]"]
[project.urls]
Documentation = "https://deltares.github.io/hydromt"
Source = "https://github.com/Deltares/hydromt"
[project.scripts]
hydromt = "hydromt.cli.main:main"
[tool.ruff]
line-length = 88
target-version = "py39"
# enable pydocstyle (E), pyflake (F) and isort (I), pytest-style (PT), bugbear (B)
select = ["E", "F", "I", "PT", "D", "B"]
ignore-init-module-imports = true
ignore = ["D211", "D213", "D206", "E501", "E741", "D105", "E712", "B904"]
exclude = ["docs"]
[tool.ruff.per-file-ignores]
"tests/**" = ["D100", "D101", "D102", "D103", "D104"]
"hydromt/__init__.py" = ["E402", "F401", "F403"]
"hydromt/workflows/__init__.py" = ["F403"]
"hydromt/stats/__init__.py" = ["F403"]
"hydromt/models/__init__.py" = ["F403", "F401", "F405"]
"hydromt/_compat.py" = ["F401"]
"tests/conftest.py" = ["E402"]
[tool.ruff.pydocstyle]
convention = "numpy"
[tool.flit.sdist]
include = ["hydromt"]
exclude = ["docs", "examples", "envs", "tests", "binder", ".github"]
[tool.pytest.ini_options]
addopts = "--ff "
testpaths = ["tests"]
filterwarnings = [
"ignore:distutils Version classes are deprecated:DeprecationWarning",
"ignore:getargs:DeprecationWarning", # The 'u' format is deprecated. Use 'U' instead.
"ignore:The *staticgeoms:DeprecationWarning",
"ignore:The *staticmaps:DeprecationWarning",
"ignore:The set_staticmaps:DeprecationWarning",
"ignore:Adding a predefined data catalog:DeprecationWarning",
"ignore:Shapely 2.0 is installed:UserWarning",
"ignore:rasterio.errors.NotGeoreferencedWarning", # upstream issue with rasterio, see https://github.com/rasterio/rasterio/issues/2497
"ignore:.*isinstance:numba.core.errors.NumbaExperimentalFeatureWarning", # soon to be solved upstream. see https://github.com/numba/numba/pull/8911
]