-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
148 lines (129 loc) · 3.83 KB
/
Copy pathpyproject.toml
File metadata and controls
148 lines (129 loc) · 3.83 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
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
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
authors = [
{ name = "Matteo Masi", email = "matteo.masi@unifi.it" },
{ name = "Fabio Castelli", email = "fabio.castelli@unifi.it" }
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Hydrology",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dependencies = [
"pandas>=2.0",
"numpy>=2.0",
"scipy>=1.16",
"matplotlib>=3.10",
"pydantic>=2.0",
"pyyaml>=6.0",
"rasterio>=1.4.0",
"geopandas>=1.1.0",
"loguru>=0.7.0",
"pyarrow>=21.0.0",
"xarray>=2023.1.0",
"netcdf4>=1.6.0",
"numba>=0.63.0",
]
description = "MOBIDICpy - Distributed and continuous hydrological balance model"
keywords = ["Hydrology", "Numerical modelling", "Distributed hydrologic modelling"]
license = "Apache-2.0"
name = "mobidicpy"
readme = {file = "README.md", content-type = "text/markdown"}
requires-python = ">=3.11"
version = "0.2.2"
[project.optional-dependencies]
dev = [
"pytest>=7.0",
"pytest-cov>=4.0",
"coverage>=7.0",
"genbadge[coverage]>=1.1.3",
"ruff>=0.2.1",
"bump-my-version>=1.0",
]
calibration = [
"pyemu>=1.4.0",
"HydroErr>=2.0.0",
]
doc = [
"mkdocs >=1.6.0",
"mkdocs-material >=9.6.0",
"mkdocstrings[python] >=0.30.0",
"mkdocs-autorefs >=1.4.0",
"mdx-include >=1.4.1",
"mkdocs-markdownextradata-plugin >=0.2.5",
"mike >=2.0.0",
]
[project.urls]
Repository = "https://github.com/mobidichydro/mobidicpy"
Issues = "https://github.com/mobidichydro/mobidicpy/issues"
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
where = ["."]
include = ["mobidic*"]
exclude = ["tests*", "examples*", "docs*"]
[tool.setuptools.package-data]
"mobidic.data" = ["*.csv"]
[tool.pytest.ini_options]
testpaths = ["tests"]
filterwarnings = [
"ignore:numpy.ndarray size changed:RuntimeWarning",
]
[tool.coverage.run]
branch = true
source = ["mobidic"]
command_line = "-m pytest"
omit = ["examples/*"]
[tool.ruff]
line-length = 120
output-format = "concise"
extend-exclude = ["docs", "*.ipynb"]
[tool.ruff.format]
skip-magic-trailing-comma = false
[tool.ruff.lint]
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
# Enable Pyflakes `E` and `F` codes by default.
select = ["E", "F"]
ignore = [
"ANN204", # Missing return type annotation for special (dunder) method
"FBT", # Using boolean function arguments
"TD", # TODOs
"FIX001", # Resolve FIXMEs
"FIX002", # Resolve TODOs
"B028", # No explicit `stacklevel` keyword argument found in warning
# No docstrings required in the following cases
"D100", # Missing module docstring
"D104", # Missing public package docstring
"D105", # Missing docstring in magic method
"D107", # Missing docstring in `__init__`
]
pydocstyle.convention = "google"
[tool.ruff.lint.per-file-ignores]
# Tests can ignore a few extra rules
"tests/**.py" = [
"ANN201", # Missing return type annotation for public function
"PT011", # Missing `match` parameter in `pytest.raises()`
"S101", # Use of assert is detected
]
[tool.ruff.lint.isort]
known-first-party = ["mobidic"]
force-single-line = true
no-lines-before = ["future","standard-library","third-party","first-party","local-folder"]
[tool.bumpversion]
current_version = "0.2.2"
[[tool.bumpversion.files]]
filename = "mobidic/__init__.py"
[[tool.bumpversion.files]]
filename = "pyproject.toml"
[[tool.bumpversion.files]]
filename = "CITATION.cff"