-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
35 lines (33 loc) · 953 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
[tox]
envlist = coverage,py3
skipsdist = True
[base]
deps =
-rrequirements.txt
coverage
attrs >= 19.1.0
hypothesis >= 4.28.2
mypy >= 0.720
flake8 >= 3.7.8
pylint >= 2.3.1
[testenv:coverage]
commands =
flake8 --ignore=E731,W503 hs110exporter.py
flake8 --ignore=E731,W503,W0212 test_hs110exporter.py
# pydocstyle --add-ignore=D100,D101,D102,D103,D104,D105,D204,D301 hs110exporter.py
pylint --rcfile .pylintrc --disable=W1401 hs110exporter
pylint --rcfile .pylintrc --disable=W0212,R0913,R0201,W1401 test_hs110exporter
mypy hs110exporter.py
## coverage run -m unittest
coverage run test_hs110exporter.py
coverage report -m --omit='.tox/*' --fail-under=90
coverage html --omit='.tox/*'
[testenv]
deps =
{[base]deps}
commands =
# python3 -m unittest -v
python3 hs110exporter.py -h
[flake8]
exclude = .git,__pycache__,.tox,.mypy_cache,.hypothesis,htmlcov,img
max-line-length = 92