-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
178 lines (152 loc) · 4.25 KB
/
Copy pathpyproject.toml
File metadata and controls
178 lines (152 loc) · 4.25 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
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
[build-system]
requires = ["setuptools>=61.2"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
where = ["src"]
include = ["pybend*"]
exclude = ['tests*']
[project]
name = "pybend"
version = "1.0.0"
description = "The Python package pyBenD is dedicated to process channel centerline data of meandering systems to measure and analyze meander morphology and dynamics."
authors = [{name = "Martin Lemay", email = "martinlemay@mines-paris.org"}]
license = {text = "MIT licence"}
classifiers = [
"Intended Audience :: Developers",
"Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License ",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Scientific/Engineering :: GIS",
]
keywords = [
"Meander",
"Geomorphology",
]
dependencies = [
"numpy >= 2.1.0",
"pandas >= 2.2.2",
"scipy >= 1.14.1",
"typing_extensions >= 4.12",
"shapely >= 2.0.6",
"networkx >= 3.4.2",
"matplotlib >= 3.9.2",
"dtw-python >= 1.5.3",
"psutil >= 6.1.0" ,
"seaborn >= 0.13.2",
"statsmodels >= 0.14.4",
]
requires-python = ">= 3.12.2"
[project.optional-dependencies]
build = [
"build ~= 1.2"
]
dev = [
"pylint",
"mypy",
"black",
"ruff",
"sphinx",
"sphinx-rtd-theme",
"sphinx-autodoc-typehints"
]
test = [
"pytest",
]
[project.readme]
file = "README.md"
content-type = "text/markdown"
[tool.bumpversion]
current_version = "1.0.0"
[[tool.bumpversion.files]]
filename = "pyproject.toml"
search = 'version = "{current_version}"'
[tool.ruff]
target-version = "py312"
extend-exclude = ["tests/data", "docs/", "notebooks/"]
# Same as Black.
line-length = 79
indent-width = 4
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
# "UP", # pyupgrade deactivate since python39
"B", # flake8-bugbear
"SIM", # flake8-simplify
"ANN", # flake8-annotations
"C4", # flake8-comprehensions
"I", # isort
"D", # pydocstyle
]
ignore = [
# "E501", # line too long, handled by black
"B008", # do not perform function calls in argument defaults
"C901", # too complex
"W191", # indentation contains tabs
"D100",
"D101",
"D104", # Missing docstring in public package in __init__.py files
"UP007",
]
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.lint.flake8-annotations]
allow-star-arg-any = true
#[tool.ruff.lint.pyupgrade]
# Preserve types, even if a file imports `from __future__ import annotations`.
#keep-runtime-typing = true
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"
[tool.pytest.ini_options]
addopts = "--import-mode=importlib"
console_output_style = "count"
pythonpath = [".", "src"]
python_classes = "Test"
python_files = "test*.py"
python_functions = "test*"
testpaths = ["tests"]
norecursedirs = "bin"
filterwarnings = ["ignore::DeprecationWarning:pybend.*", "ignore::DeprecationWarning:multiprocessing.*",]
[tool.coverage.run]
branch = true
source = ["pybend"]
[tool.mypy]
# Specify the target platform details in config, so your developers are
# free to run mypy on Windows, Linux, or macOS and get consistent
# results.
python_version = "3.12"
files = "."
exclude = "build/*"
# strict = true
warn_unreachable = true
implicit_reexport = true
show_error_codes = true
show_column_numbers = true
disable_error_code = "misc, import-untyped"
# Overrides for currently untyped modules
[[tool.mypy.overrides]]
module = [
"docs.*",
"docs.ext.*",
"tests.unit.*",
]
ignore_errors = true
[project.urls]
Homepage = "https://github.com/martin-lemay/pyBenD"
Documentation = "https://mlemay-pybend.readthedocs.io/en/latest/index.html"
Repository = "https://github.com/martin-lemay/pyBenD.git"