-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathtox.ini
50 lines (45 loc) · 909 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
44
45
46
47
48
49
50
[tox]
envlist = py{37,38,39,310},lint,coverage-report
[testenv]
deps =
coverage
pytest
pytest-xdist
flaky
commands =
coverage run --parallel -m pytest -v {posargs}
[testenv:coverage-report]
basepython = python3.10
skip_install = true
deps = coverage
commands =
coverage combine
coverage report
[testenv:lint]
deps =
flake8
pylint
commands =
flake8 --max-line-length 100
pylint --rcfile tox.ini pytest_jsonreport/
[testenv:release]
deps =
wheel
twine
commands =
rm -rf *.egg-info build/ dist/
python setup.py bdist_wheel sdist
twine upload -r pypi dist/*
rm -rf *.egg-info build/ dist/
[pylint]
disable =
missing-docstring,
invalid-name,
unused-argument,
too-few-public-methods,
too-many-public-methods,
protected-access,
no-self-use,
too-many-instance-attributes,
fixme,
consider-using-f-string,