-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
175 lines (146 loc) · 3.99 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
## Build system related stuff
[build-system]
requires = ["setuptools>=61.0.0", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
where = ["src"]
include = ["fiat*"]
[tool.setuptools.dynamic]
version = {attr = "fiat.version.__version__"}
## Project related stuff
[project]
name = "delft_fiat"
dynamic = ['version']
authors = [
{name = "B.W. Dalmijn", email = "[email protected]"},
{name = "F.C. de Groen", email = "[email protected]"},
{name = "S.A. Rautenbach", email = "[email protected]"},
{name = "P. Athanasiou", email = "[email protected]"},
]
maintainers = [
{name = "B.W. Dalmijn", email = "[email protected]"},
]
description = "Delft Fast Impact Assessment Tool"
readme = "README.md"
license = {text = "MIT"}
requires-python = ">=3.10"
dependencies = [
"gdal>=3.5",
"numpy",
"regex",
"tomli",
]
keywords = ["FIAT", "Assessment", "Damage"]
classifiers = [
# How mature is this project? Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
'Development Status :: 4 - Beta',
# Indicate who your project is intended for
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
# Topic of the package
'Topic :: Scientific/Engineering :: Hydrology',
'Topic :: Scientific/Engineering :: GIS',
# Pick your license as you wish (should match "license" above)
'License :: OSI Approved :: MIT License',
# Language
'Natural Language :: English',
# OS
'Operating System :: OS Independent',
# Specify the Python versions you support here. In particular, ensure
# that you indicate whether you support Python 2, Python 3 or both.
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
]
[project.optional-dependencies] # Optional
all = [
"setuptools>=61.0.0",
]
build = [
"pyinstaller>=6.0.0",
"delft_fiat[all,extra]",
]
dev = [
"cython",
"pre-commit",
"ruff",
"delft_fiat[all,docs,extra,test]",
]
docs = [
"jupyter",
"jupyter-cache",
"matplotlib",
"pandas",
"quartodoc>=0.7.6",
"delft_fiat[all,extra]",
]
extra = [
"libgdal-netcdf",
"tomli-w",
]
test = [
"pytest>=2.7.3",
"pytest-cov",
"pytest-dependency",
"pytest-mock",
"responses",
"delft_fiat[all,extra]",
]
[project.urls]
"Homepage" = "https://deltares.github.io/Delft-FIAT/stable/"
"Bug Reports" = "https://github.com/Deltares/Delft-FIAT/issues"
"Source" = "https://github.com/Deltares/Delft-FIAT"
[project.scripts]
fiat = "fiat.cli.main:main"
[tool.make_env]
channels = ["conda-forge"]
conda_only = ["libgdal-netcdf"]
deps_not_in_conda = ["pytest-dependency"]
## Some stuff for pytest and coverage
[tool.pytest.ini_options]
testpaths = [
"test",
]
[tool.coverage.run]
branch = true
source = ["./src"]
omit = ["*/gui/*"]
[tool.coverage.report]
# Regexes for lines to exclude from consideration
exclude_also = [
# Don't complain about missing debug-only code:
"def __repr__",
"if self\\.debug",
# Don't complain if tests don't hit defensive assertion code:
"raise AssertionError",
"raise NotImplementedError",
# Don't complain if non-runnable code isn't run:
"if 0:",
"if __name__ == .__main__.:",
# Don't complain about abstract methods, they aren't run:
"@(abc\\.)?abstractmethod",
]
ignore_errors = true
[tool.coverage.html]
directory = ".cov"
[tool.ruff]
line-length = 88
exclude = ["docs"]
[tool.ruff.lint]
select = ["E", "F", "I", "PT", "D"]
ignore = ["B904", "D105", "D211", "D213", "D301", "E712", "E741"]
[tool.ruff.lint.per-file-ignores]
"test/**" = ["D100", "D101", "D102", "D103", "D104"]
"test/conftest.py" = ["E402"]
"src/fiat/__init__.py" = ["E402", "F401", "F403"]
"src/fiat/cli/__init__.py" = ["F403"]
"src/fiat/gis/__init__.py" = ["F403"]
"src/fiat/methods/__init__.py" = ["F403"]
"src/fiat/models/__init__.py" = ["F403"]
[tool.ruff.lint.pydocstyle]
convention = "numpy"