-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
35 lines (31 loc) · 768 Bytes
/
tox.ini
File metadata and controls
35 lines (31 loc) · 768 Bytes
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]
package_name = src
[testenv]
usedevelop=True
passenv = USERNAME
deps = -r test-requirements.txt
whitelist_externals = autopep8
commands =
pip --version
pip install -r requirements.txt -r test-requirements.txt
isort .
autopep8 -iraavj 0 {[tox]package_name}
- flake8 {[tox]package_name} tests
- pylint -rn {[tox]package_name} tests --rcfile=tox.ini
pytest --cov-report html:coverage \
--cov-report term \
--cov {[tox]package_name}/ \
--junitxml=testdata/results.xml \
{posargs}
[flake8]
max-line-length=120
ignore=
T101 # fixme
[pylint]
max-line-length=120
disable=
fixme,
missing-function-docstring,
missing-class-docstring,
missing-module-docstring,
broad-except