-
Notifications
You must be signed in to change notification settings - Fork 8
/
tox.ini
53 lines (45 loc) · 918 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
[tox]
envlist = bandit,black,isort,flake8,mypy,python3.7,python3.11
[gh-actions]
python =
3.7: python3.7
3.11: python3.11
[testenv]
deps =
-rrequirements.txt
-rrequirements-dev.txt
usedevelop = true
commands =
pytest \
--cov-config .coveragerc --cov=pyarn --cov-report term
[testenv:black]
description = black checks [Mandatory]
skip_install = true
deps =
# Pin the version of black to avoid a newer version causing tox to fail
black==22.6.0
commands =
black --check --diff pyarn tests
[testenv:isort]
skip_install = true
deps =
isort[colors]
commands =
isort --check --diff --color pyarn tests
[testenv:flake8]
skip_install = true
deps =
flake8==3.9.2
commands =
flake8
[testenv:bandit]
skip_install = true
deps =
bandit
commands =
bandit -r pyarn
[testenv:mypy]
deps =
mypy
commands =
mypy --install-types --non-interactive pyarn tests