-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy pathtox.ini
More file actions
41 lines (36 loc) · 764 Bytes
/
tox.ini
File metadata and controls
41 lines (36 loc) · 764 Bytes
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
[tox]
skipsdist = True
envlist = py39, py310, py314, lint, mypy
[testenv]
deps = pytest
commands =
pip install -e .
pytest -vv {posargs}
[testenv:lint]
deps =
flake8
flake8-bugbear
black
isort>=5
commands =
flake8 --max-line-length=100 --ignore=E203,W503
black --diff --check --quiet .
isort --diff --check --quiet .
[testenv:mypy]
deps =
mypy>=1.18.2
pytest
commands =
mypy --strict -m pyp --python-version 3.9
mypy --strict -m pyp --python-version 3.14
mypy . --python-version 3.14
[coverage:report]
exclude_lines =
raise AssertionError
def unparse\(
if __name__ == "__main__":
[testenv:coverage]
deps = pytest-cov
commands =
pip install -e .
pytest --cov=pyp --cov-config=tox.ini