-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
139 lines (124 loc) · 3.41 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
[build-system]
requires = ["setuptools>=64.0.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "nlmod"
dynamic = ["version"]
description = "Python package to build, run and visualize MODFLOW 6 groundwater models in the Netherlands."
license = { file = "LICENSE" }
readme = "README.md"
authors = [
{ name = "O. Ebbens" },
{ name = "R. Caljé" },
{ name = "D.A. Brakenhoff" },
]
maintainers = [
{ name = "O. Ebbens", email = "[email protected]" },
{ name = "R. Calje", email = "[email protected]" },
{ name = "D.A. Brakenhoff", email = "[email protected]" },
]
requires-python = ">= 3.8"
dependencies = [
"flopy>=3.3.6",
"xarray>=0.16.1",
"netcdf4>=1.6.3",
"rasterio>=1.1.0",
"rioxarray",
"affine>=0.3.1",
"geopandas",
"owslib>=0.24.1",
"hydropandas>=0.9.2",
"shapely>=2.0.0",
"pyshp>=2.1.3",
"matplotlib",
"dask",
"colorama",
"joblib",
"bottleneck",
]
keywords = ["hydrology", "groundwater", "modeling", "Modflow 6", "flopy"]
classifiers = [
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'Intended Audience :: Other Audience',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Topic :: Scientific/Engineering :: Hydrology',
]
[project.urls]
homepage = "https://github.com/gwmod/nlmod"
repository = "https://github.com/gwmod/nlmod"
documentation = "https://nlmod.readthedocs.io/en/latest/"
[project.optional-dependencies]
full = [
"nlmod[knmi]",
"gdown",
"geocube",
"rasterstats",
"contextily",
"scikit-image",
"py7zr"
]
knmi = ["h5netcdf", "nlmod[grib]"]
grib = ["cfgrib", "ecmwflibs"]
test = ["pytest>=7", "pytest-cov", "pytest-dependency"]
nbtest = ["nbformat", "nbconvert>6.4.5"]
lint = ["flake8", "isort", "black[jupyter]"]
ci = ["nlmod[full,lint,test,nbtest]", "numpy==1.26.4"]
rtd = [
"nlmod[full]",
"ipython",
"ipykernel",
"ipywidgets",
"nbsphinx",
"sphinx_rtd_theme==1.0.0",
"nbconvert==7.13.0",
"netCDF4<1.7.0",
"numpy==1.26.4"
]
[tool.setuptools.dynamic]
version = { attr = "nlmod.version.__version__" }
[tool.setuptools.packages.find]
where = ["."]
[tool.setuptools]
include-package-data = true
[tool.setuptools.package-data]
"nlmod.data" = ["*.gleg"]
"nlmod.data.geotop" = ["*"]
"nlmod.data.shapes" = ["*"]
"nlmod.data.ahn" = ["*"]
"nlmod.data.bgt" = ["*"]
"nlmod.bin" = ["mp7_2_002_provisional"]
[tool.black]
line-length = 88
[tool.isort]
profile = "black"
[tool.ruff]
line-length = 88
extend-include = ["*.ipynb"]
[tool.ruff.lint]
# See: https://docs.astral.sh/ruff/rules/
select = [
"C4", # flake8-comprehensions
"E", # pycodestyle
"F", # pyflakes
"I", # isort
"PT", # pytest-style
"D", # pydocstyle
"B", # flake8-bugbear
"NPY", # numpy
]
ignore = [
"D401", # Imperative mood for docstring. Be glad we have docstrings at all :P!
"D100", # Missing docstring in module.
"D104", # Missing docstring in public package.
]
[tool.ruff.format]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.pytest.ini_options]
addopts = "--strict-markers --durations=0 --cov-report xml:coverage.xml --cov nlmod -v"
markers = ["notebooks: run notebooks", "slow: slow tests", "skip: skip tests"]