-
Notifications
You must be signed in to change notification settings - Fork 313
/
pyproject.toml
187 lines (174 loc) · 4.43 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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
[build-system]
requires = [
"setuptools >=61",
]
build-backend = "setuptools.build_meta"
[project]
name = "flopy"
description = "FloPy is a Python package to create, run, and post-process MODFLOW-based models"
authors = [
{name = "FloPy Team", email = "[email protected]"},
]
maintainers = [
{name = "Joseph D. Hughes", email = "[email protected]"},
]
keywords = ["MODFLOW", "groundwater", "hydrogeology"]
license = {text = "CC0"}
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"License :: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: Hydrology",
]
requires-python = ">=3.9"
dependencies = [
"numpy>=1.20.3",
"matplotlib >=1.4.0",
"pandas >=2.0.0"
]
dynamic = ["version", "readme"]
[project.optional-dependencies]
dev = ["flopy[lint,test,optional,doc]", "tach"]
lint = ["cffconvert", "codespell[toml] >=2.2.2", "ruff"]
test = [
"flopy[lint]",
"coverage !=7.6.5",
"flaky",
"filelock",
"jupyter",
"jupyter_client >=8.4.0", # avoid datetime.utcnow() deprecation warning
"jupytext",
"modflow-devtools",
"pytest !=8.1.0",
"pytest-benchmark",
"pytest-cov",
"pytest-dotenv",
"pytest-xdist",
"pyzmq >=25.1.2",
"syrupy",
"virtualenv"
]
optional = [
"affine",
"descartes",
"fiona",
"geojson",
"geopandas",
"imageio",
"netcdf4",
"pymetis ; platform_system != 'Windows'",
"pyproj",
"pyshp",
"pyvista",
"rasterio",
"rasterstats",
"scipy",
"shapely >=2.0",
"vtk",
"xmipy",
]
doc = [
"flopy[optional]",
"ipython[kernel]",
"jupytext",
"myst-parser",
"nbconvert <7.14.0",
"nbsphinx",
"PyYAML",
"rtds-action",
"sphinx ==7.1.2",
"sphinx-rtd-theme >=1",
]
[project.scripts]
get-modflow = "flopy.utils.get_modflow:cli_main"
[project.urls]
Documentation = "https://flopy.readthedocs.io"
"Release Notes" = "https://github.com/modflowpy/flopy/blob/develop/docs/version_changes.md"
"Bug Tracker" = "https://github.com/modflowpy/flopy/issues"
"Source Code" = "https://github.com/modflowpy/flopy"
[tool.setuptools]
include-package-data = true
zip-safe = false
[tool.setuptools.dynamic]
version = {attr = "flopy.version.__version__"}
readme = {file = ["docs/PyPI_release.md", "LICENSE.md"], content-type = "text/markdown"}
[tool.setuptools.packages.find]
include = ["flopy", "flopy.*"]
[tool.setuptools.package-data]
"flopy.mf6.data" = ["dfn/*.dfn"]
"flopy.plot" = ["mplstyle/*.mplstyle"]
[tool.ruff]
line-length = 88
include = [
"pyproject.toml",
"flopy/**/*.py",
"autotest/**/*.py",
"examples/**/*.py",
"scripts/**/*.py",
".docs/**/*.py",
]
extend-include = [
"examples/**/*.ipynb"
]
[tool.ruff.format]
exclude = [
"flopy/mf6/**/*.py",
]
[tool.ruff.lint]
select = [
"C4", # flake8 comprehensions
"D409", # pydocstyle - section-underline-matches-section-length
"E", # pycodestyle error
"F", # Pyflakes
"I001", # isort - unsorted-imports
# "ISC001", # implicitly concatenated string literals
"RUF", # Ruff-specific rules
]
ignore = [
"E402", # module level import not at top of file
"E712", # Avoid equality comparisons to `True`
"E722", # do not use bare `except`
"E721", # use `is`/`is not` for type comparisons
"E741", # ambiguous variable name
"F401", # unused import
"F403", # unable to detect undefined names (star imports)
"F524", # `.format` missing argument(s) for placeholder(s)
"F811", # Redefinition of unused variable
"F841", # local variable assigned but never used
"RUF005", # collection literal concatenation
"RUF012", # mutable class default
"RUF017", # quadratic-list-summation
]
[tool.ruff.lint.per-file-ignores]
".docs/**/*.py" = ["E501"]
"flopy/mf6/**/*.py" = ["C4", "E", "F", "ISC", "RUF"]
[tool.codespell]
skip = "cliff.toml,./examples/data/*"
ignore-words-list = [
"alltime",
"dum",
"inout",
"intot",
"delt",
"gage",
"gages",
"datbase",
"wel",
"nam",
"lke",
"ist",
"ninj",
"drob",
"thck",
"vor",
"yur",
"localy",
"vertx",
"nd",
]