-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
101 lines (89 loc) · 1.68 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# tox (https://tox.readthedocs.io/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist =
pylint
pycodestyle
flake8
security
format
twinecheck
py
[testenv]
description = testing linting and formating
deps =
coverage
pylint
pytest
pytest-clarity
pytest-cov
pytest-pylint
pytest-icdiff
pytest-instafail
pytest-randomly
commands =
pytest --cov=QStyler --cov=tests --ff
coverage xml
coverage html
[testenv:format]
basepython = python3
deps =
black
yapf
autopep8
isort
toml
commands =
yapf -r -i QStyler tests
black QStyler tests
isort QStyler tests
autopep8 -r QStyler tests
[testenv:flake8]
basepython = python3
deps =
pyflakes
flake8[mccabe]
commands =
flake8 QStyler --max-complexity 20
flake8 tests --max-complexity 20
[testenv:security]
basepython = python3
deps =
bandit[toml]
commands =
bandit -r -c pyproject.toml QStyler tests
[testenv:pydocstyle]
basepython = python3
deps =
pyroma
pydocstyle
pycodestyle
commands =
pydocstyle QStyler tests
pycodestyle QStyler tests
pyroma .
[testenv:pylint]
basepython = python3
deps =
pylint
pytest
commands =
pylint QStyler tests
[testenv:twinecheck]
basepython = python3
deps =
twine
build
commands =
python -m build --sdist
twine check dist/*
[pydocstyle]
ignore = D200, D210, D212, D213, D413, D407, D406, D203
[pycodestyle]
ignore = E741, E731, E203
[mccabe]
ignore = MC0001
[flake8]
ignore = F401, E731