-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtox.ini
More file actions
32 lines (26 loc) · 731 Bytes
/
tox.ini
File metadata and controls
32 lines (26 loc) · 731 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
[tox]
minversion = 4.5.1
envlist = clean,py{313,312,311,310},report,flake8,mypy
skip_missing_interpreters = true
[flake8]
max-line-length = 120
exclude = _version.py
ignore =
# "Line break occurred before a binary operator" (see https://www.flake8rules.com/rules/W503.html)
W503
per-file-ignores =
# False positives for "unused imports" in __init__.py
__init__.py: F401
[testenv]
extras = testing
commands = python -m pytest --cov --cov-append {posargs}
[testenv:flake8]
commands = flake8 src/ tests/
[testenv:mypy,py{313,312,311,310}-mypy]
commands = mypy
[testenv:clean]
commands = coverage erase
[testenv:report,py{313,312,311,310}-report]
commands =
coverage html
coverage report --fail-under=100