-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
43 lines (39 loc) · 892 Bytes
/
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
[tox]
envlist = py3{8,9,10,11,12},pypy3,lint,docs
[testenv]
usedevelop = True
deps =
-r requirements/dev.txt
commands =
pytest -q -x --doctest-modules --cov-report term-missing \
--cov wheezy.html
[testenv:lint]
basepython = python3
skip_install = True
deps =
autoflake
black
flake8
flake8-bugbear
flake8-import-order
flake8-mutable
isort
pep8-naming
commands =
autoflake --in-place --remove-unused-variables --remove-all-unused-imports \
--recursive src/ setup.py
isort --profile black --combine-as --case-sensitive src/ setup.py
black -ql79 src/ setup.py
flake8 doc src setup.py
[testenv:docs]
deps = -r requirements/docs.txt
commands = sphinx-build -a -b html doc/ doc/_build/
[flake8]
show-source = True
max-complexity = 7
# Codes: https://www.flake8rules.com/
ignore =
# whitespace before ':'
E203
# line break before binary operator
W503