-
Notifications
You must be signed in to change notification settings - Fork 12
/
pyproject.toml
192 lines (173 loc) · 4.29 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
188
189
190
191
192
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "vallenae"
version = "0.10.1"
description = "Extract and analyze Acoustic Emission measurement data"
authors = [{ name = "Lukas Berbuer", email = "[email protected]" }]
readme = "README.md"
license = { text = "MIT License" }
requires-python = ">=3.7"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries",
]
keywords = [
"vallen",
"acoustic emission",
"amsy",
"waveline",
"data acquisition",
"analysis",
"timepicker",
"sqlite",
"pridb",
"tradb",
"trfdb",
]
dependencies = [
"numpy",
"pandas>=0.24",
"soundfile",
"tqdm",
"typing_extensions",
]
[project.optional-dependencies]
docs = [
"sphinx>=5",
"sphinx-autodoc-typehints",
"sphinx-gallery",
"furo",
"pillow", # required by sphinx-gallery
"myst-parser", # include markdown files
"matplotlib", # used in examples
"numba", # used in location example
"scipy", # used in location and multiprocessing example
]
tests = [
"coverage[toml]>=5", # pyproject.toml support
"pytest>=6", # pyproject.toml support
"pytest-benchmark",
]
tools = [
"mypy>=0.9", # pyproject.toml support
"ruff>=0.5",
"tox>=3.4", # pyproject.toml support
]
dev = [
"vallenae[docs,tests,tools]", # recursive dependency since pip 21.2
]
[project.entry-points.pyinstaller40]
hook-dirs = "vallenae._pyinstaller:get_hook_dirs"
tests = "vallenae._pyinstaller:get_tests"
[project.urls]
Changelog = "https://github.com/vallen-systems/pyVallenAE/blob/master/CHANGELOG.md"
Source = "https://github.com/vallen-systems/pyVallenAE"
Issues = "https://github.com/vallen-systems/pyVallenAE/issues"
[tool.black]
line-length = 100
[tool.ruff]
line-length = 100
[tool.ruff.lint]
select = [
"F", # pyflakes
"E", "W", # pycodestyle
"I", # isort
"N", # pep8 naming
"B", # flake8 bugbear
"A", # flake8 builtins
"C4", # flake8 comprehensions
"G", # flake8 logging format
"PIE", # flake8 pie
"RET", # flake8 return
"SIM", # flake8 simplify
"PT", # flake8 pytest style
"PL", # pylint
"PERF", # perflint
"RUF", # ruff specific rules
]
ignore = [
"PLR0911", # too many return statements
"PLR0913", # too many arguments in function call
"PLR2004", # magic value used in comparison
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = [
"E501", # line too long
"PLR0915", # too many statements
"PT011", # use a more specific exception in pytest.raises
]
"examples/*" = [
"E501", # line too long
]
[tool.coverage.run]
branch = true
parallel = true
source = ["vallenae"]
[tool.coverage.paths]
source = ["src", "*/site-packages"]
[tool.mypy]
ignore_missing_imports = true
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra -q" # test summary for (a)ll except passed
testpaths = ["tests"]
log_cli = true
log_cli_level = "WARNING"
[tool.tox]
legacy_tox_ini = """
[tox]
envlist =
ruff
mypy
py{37, 38, 39, 310, 311, 312}
py{37, 38, 39, 310, 311, 312}-numba
pyinstaller
coverage-report
docs
[testenv:ruff]
skip_install = true
deps = ruff
commands = ruff check .
[testenv:mypy]
skip_install = true
deps = mypy
commands = mypy src/
[testenv]
setenv =
NUMBA_DISABLE_JIT = 1
deps =
numba: numba
extras = tests
commands =
coverage run -m pytest --benchmark-disable
[testenv:coverage-report]
skip_install = true
deps = coverage[toml]>=5
commands =
- coverage combine
coverage report
coverage xml
[testenv:pyinstaller]
deps = pyinstaller>=4
commands = python -m PyInstaller.utils.run_tests --include_only vallenae.
[testenv:docs]
extras = docs
changedir = docs
commands =
sphinx-build -b dummy . _build
sphinx-build -b linkcheck . _build
"""