-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
73 lines (68 loc) · 1.26 KB
/
tox.ini
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
; Automated Testing.
[tox]
envlist =
test
cov
skip_missing_interpreters = True
isolated_build = True
[testenv:test]
setenv =
PYTHONDONTWRITEBYTECODE=1
COVERAGE_FILE=.coverage
passenv = *
extras =
test
commands =
pytest tests/ --cov --cov-branch --cov-report=term-missing --disable-warnings
show_missing = True
[testenv:reformat]
description = reformat code
basepython = python3.9
deps =
isort
black
commands =
black .
isort .
skip_install = true
skip_gitignore = true
[testenv:cov]
deps = coverage
commands =
coverage report
coverage xml
depends =
cov: test
skip_install = true
[testenv:lint]
basepython = python3.9
description = check code style
deps =
reformat
flake8
flake8-bugbear
flake8-docstrings
flake8-rst-docstrings
flake8-rst
flake8-typing-imports
flake8-builtins
pep8-naming
flake8-comprehensions
flake8-bandit
flake8-eradicate
flake8-pytest-style
flake8-print
flake8-simplify
flake8-variables-names
flake8-markdown
pygments
black
pylint
mypy
commands =
isort . --check
black . --fast --check
flake8 pre_commit_hooks
pylint pre_commit_hooks
mypy pre_commit_hooks --show-traceback --show-error-codes
skip_install = true