-
-
Notifications
You must be signed in to change notification settings - Fork 31
/
tox.ini
115 lines (104 loc) · 2.06 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
[tox]
isolated_build = true
envlist =
python3.8,
python3.9,
python3.10,
python3.11,
python3.12,
black,
flake8,
linters
skip_missing_interpreters = true
[gh-actions]
python =
3.8: python3.8
3.9: python3.9
3.10: python3.10
3.11: python3.11
3.12: python3.12
[testenv]
passenv =
LANG
LEGACY_DB
deps =
-rrequirements_dev.txt
commands = pytest -v --cov=src/mysql_to_sqlite3 --cov-report=xml
[testenv:black]
basepython = python3
skip_install = true
deps =
black
commands = black src/mysql_to_sqlite3 tests/
[testenv:isort]
basepython = python3
skip_install = true
deps =
isort
commands =
isort --check-only --diff .
[testenv:flake8]
basepython = python3
skip_install = true
deps =
flake8
flake8-colors
flake8-docstrings
flake8-import-order
flake8-typing-imports
pep8-naming
commands =
flake8 src/mysql_to_sqlite3
[testenv:pylint]
basepython = python3
skip_install = true
deps =
pylint
-rrequirements_dev.txt
disable = C0209,C0301,C0411,R,W0107,W0622
commands =
pylint --rcfile=tox.ini src/mysql_to_sqlite3
[testenv:bandit]
basepython = python3
skip_install = true
deps =
bandit
commands =
bandit -r src/mysql_to_sqlite3 -c .bandit.yml
[testenv:mypy]
basepython = python3
skip_install = true
deps =
mypy>=1.3.0
-rrequirements_dev.txt
commands =
mypy src/mysql_to_sqlite3
[testenv:linters]
basepython = python3
skip_install = true
deps =
{[testenv:black]deps}
{[testenv:isort]deps}
{[testenv:flake8]deps}
{[testenv:pylint]deps}
{[testenv:bandit]deps}
{[testenv:mypy]deps}
commands =
{[testenv:black]commands}
{[testenv:isort]commands}
{[testenv:flake8]commands}
{[testenv:pylint]commands}
{[testenv:bandit]commands}
{[testenv:mypy]commands}
[flake8]
ignore = I100,I201,I202,D203,D401,W503,E203,F401,F403,C901,E501
exclude =
*__init__.py
*__version__.py
.tox
max-complexity = 10
max-line-length = 88
import-order-style = pycharm
application-import-names = flake8
[pylint]
disable = C0209,C0301,C0411,R,W0107,W0622