-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathtox.ini
62 lines (57 loc) · 1.25 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
[tox]
envlist = py38, lint
skipsdist = True
[flake8]
; D106 = Missing docstring in public nested class
; D212 = Multi-line docstring summary should start at the first line
; W503 = Line break before binary operator
ignore = D106,D212,W503
max-complexity = 10
max-line-length = 120
import-order-style = pycharm
application-import-names = nise
per-file-ignores =
__init__.py: F401
[testenv]
passenv = CI TRAVIS TRAVIS_*
setenv =
PYTHONPATH={toxinidir}
deps =
pipenv
codecov
commands =
pipenv install --dev
coverage run -m unittest discover {toxinidir}/tests/ -v
coverage report --show-missing
[testenv:lint]
deps =
flake8
flake8-docstrings
flake8-import-order
flake8-quotes
pipenv
setenv =
PYTHONPATH={toxinidir}
commands =
flake8 nise --ignore=C901,Q000
pipenv install --dev --ignore-pipfile
[testenv:for_travis]
passenv = CI TRAVIS TRAVIS_*
setenv =
PYTHONPATH={toxinidir}
deps =
pipenv
codecov
flake8
flake8-docstrings
flake8-import-order
flake8-quotes
commands =
pipenv install --dev
flake8 nise --ignore=C901,Q000
coverage run -m unittest discover {toxinidir}/tests/ -v
coverage report --show-missing
[testenv:sanity]
usedevelop = True
deps =
commands = {basepython} {toxinidir}/tests/sanity/import/importer.py {posargs}