-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtox.ini
71 lines (58 loc) · 1.59 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
# SPDX-FileCopyrightText: 2015-2023 EasyCoding Team
#
# SPDX-License-Identifier: GPL-3.0-or-later
# =====================================
# ===== General Tox configuration =====
# =====================================
[tox]
envlist = py3{10,11},linters
isolated_build = true
skipsdist = false
skip_missing_interpreters = true
# =====================================
# ========= Tests main target =========
# =====================================
[testenv]
passenv = *
deps =
pytest
commands = pytest tests
# =====================================
# ======== 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/wloc/ -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 = 10
[pycodestyle]
statistics = True
ignore = E501,H202
exclude = .git,.pytest_cache,.tox,__pycache__,build,dist