-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
93 lines (82 loc) · 2.35 KB
/
pyproject.toml
File metadata and controls
93 lines (82 loc) · 2.35 KB
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
[build-system]
build-backend = "hatchling.build"
requires = ["hatchling>=1.8.0"]
[tool.hatch.build.targets.sdist]
exclude = [
"/.githooks",
"/.github",
"/.mypy_cache",
"/.pytest_cache",
"sonar-project.properties",
]
[tool.hatch.build.targets.wheel]
packages = ["src/nhflotools"]
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.publish.index]
disable = true # Requires confirmation when publishing to pypi.
[project]
authors = [{ name = "Bas des Tombe", email = "bas.des.tombe@pwn.nl" }]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Programming Language :: Python",
"Topic :: Utilities",
]
dependencies = [
"dask",
"flopy",
"geopandas",
"hydropandas",
"matplotlib",
"nlmod>=0.7.3",
"numpy",
"pandas",
"pedon",
"pykrige",
"scipy",
"seaborn",
"shapely",
"tqdm",
"xarray",
]
description = "Tools that support the NHFLO modeling environment."
keywords = ["NHFLO"]
license = { file = "LICENSE.txt" }
maintainers = [{ name = "Bas des Tombe", email = "bas.des.tombe@pwn.nl" }]
name = "nhflotools"
readme = "README.md"
requires-python = ">=3.11"
version = "0.3.0"
[project.optional-dependencies]
lintformat = ["hatch", "ruff==0.11.8"]
test = [
"pytest",
"pytest-env",
"nhflodata @ git+https://github.com/NHFLO/data.git@main",
"nlmod @ git+https://github.com/gwmod/nlmod.git@dev",
]
[tool.hatch.envs.default]
installer = "uv"
python = "3.13"
[tool.hatch.envs.lintformat]
detached = true
features = ["lintformat"]
[tool.hatch.envs.lintformat.scripts]
format = [
"ruff check --fix --unsafe-fixes src/nhflotools/*.py tests",
"ruff format src/nhflotools/*.py tests",
]
lint = [
"ruff check tests/test_pwnlayers.py src/nhflotools/pwnlayers src/nhflotools/geoconverter src/nhflotools/major_surface_waters.py src/nhflotools/nhi_chloride.py src/nhflotools/panden.py src/nhflotools/polder.py src/nhflotools/well.py",
]
lintminimal = [
"ruff check src/nhflotools/pwnlayers src/nhflotools/geoconverter src/nhflotools/major_surface_waters.py src/nhflotools/nhi_chloride.py src/nhflotools/panden.py src/nhflotools/polder.py src/nhflotools/well.py --config \"lint.select=['E4', 'E7', 'E9', 'F']\"",
]
[tool.hatch.envs.test]
features = ["test"]
[tool.hatch.envs.test.scripts]
test = "pytest -v"
[tool.pytest.ini_options]
testpaths = ["tests"]