-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
59 lines (53 loc) · 1.04 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
[tox]
envlist = py37, py38, py39, py310, pypy3, pep8, mypy, doc, doctests
[testenv]
deps =
pytest
commands =
pytest {posargs} tests/
[testenv:pep8]
deps =
flake8
flake8-import-order
flake8-blind-except
flake8-builtins
flake8-docstrings
flake8-logging-format
pep8-naming
commands =
flake8 src/ tests/
[flake8]
exclude =
src/*.egg-info
.eggs/
.tox/
conf.py
conftest.py
setup.py
ignore = D107,D211,D400,D403,E251,E265,E266,E402,E731,W504
per-file-ignores =
test_*.py:D101,D102,D103,D105
show-source = true
enable-extensions = G
hang_closing = True
import-order-style = pycharm
application-import-names = quantity
max-complexity = 13
[testenv:mypy]
deps =
mypy
commands =
mypy --strict {posargs} src/
[testenv:doc]
whitelist_externals = make
deps =
sphinx >= 4.0
sphinx_py3doc_enhanced_theme
typing_extensions
commands =
make -C doc clean
make -C doc html
[testenv:doctests]
commands =
python run_doctests.py quantity
python run_doctests.py quantity.money