forked from fedora-infra/mote
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
56 lines (48 loc) · 1003 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
51
52
53
54
55
56
[tox]
minversion = 3.8.0
envlist = py{38,39,310},bandit,black,flake8,isort
isolated_build = true
skip_missing_interpreters = true
[testenv]
setenv =
py{38,39,310}: COVERAGE_FILE = .coverage.{envname}
PYTHONPATH={toxinidir}
skip_install = true
sitepackages = false
whitelist_externals = poetry
usedevelop = true
commands =
pip3 install --upgrade poetry
poetry install
mote --version
pytest -vvv -o "addopts=--cov=mote --cov-report=term --cov-report=xml --cov-report=html" tests/
[testenv:bandit]
deps =
bandit >= 1.7.4
commands =
bandit -r mote/ -lll
[testenv:black]
skip_install = true
deps =
black >= 21.11b1
commands =
black --diff mote/ tests/
[black]
line-length = 100
[testenv:flake8]
skip_install = true
deps =
flake8 < 5
commands =
flake8 mote/ tests/
[flake8]
max-line-length = 100
[testenv:isort]
skip_install = true
deps =
isort >= 5.10.1
commands =
isort --diff mote/ tests/
[isort]
profile = black
known_first_party = ["mote"]