forked from xvitaly/ecasbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
61 lines (50 loc) · 1.4 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
# SPDX-FileCopyrightText: 2017-2023 EasyCoding Team
#
# SPDX-License-Identifier: GPL-3.0-or-later
# =====================================
# ===== General Tox configuration =====
# =====================================
[tox]
envlist = linters
isolated_build = true
skipsdist = false
skip_missing_interpreters = true
# =====================================
# ======== Linters main target ========
# =====================================
[testenv:linters]
skip_install = true
deps =
{[testenv:bandit]deps}
{[testenv:flake8]deps}
{[testenv:pycodestyle]deps}
commands =
{[testenv:bandit]commands}
{[testenv:flake8]commands}
{[testenv:pycodestyle]commands}
# =====================================
# ====== Custom targets sections ======
# =====================================
[testenv:bandit]
skip_install = true
deps = bandit
commands = bandit -r src/ecasbot/ -c .bandit.yml
[testenv:flake8]
skip_install = true
deps = flake8
commands = flake8 --statistics
[testenv:pycodestyle]
skip_install = true
deps = pycodestyle
commands = pycodestyle --show-source --show-pep8
# =====================================
# === Custom configuration sections ===
# =====================================
[flake8]
ignore = E501,H202
exclude = .git,.pytest_cache,.tox,__pycache__,build,dist
max-complexity = 15
[pycodestyle]
statistics = True
ignore = E501,H202
exclude = .git,.pytest_cache,.tox,__pycache__,build,dist