-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
56 lines (51 loc) · 956 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]
skip_missing_interpreters = true
envlist =
py310,
mypy,
lint,
unittests,
skipsdist = true
[base]
[testenv]
deps =
-rrequirements.txt
[testenv:mypy]
basepython = python3
deps =
-rrequirements.txt
mypy
skip_install=true
changedir = {toxinidir}
commands =
mypy --config-file ./mypy.ini --install-types --non-interactive ./
[testenv:lint]
basepython = python3
skip_install=true
deps =
black
isort
changedir = {toxinidir}
commands =
black --check --diff --skip-string-normalization -l 80 ./
isort --check-only --df -m 3 --tc ./
[testenv:unittests]
basepython = python3
skip_install=true
deps =
-rrequirements.txt
passenv = *
setenv = BUILD_DIR = ./
changedir = {toxinidir}
commands =
python3 runtests.py
[testenv:fixlint]
basepython = python3
skip_install=true
deps =
black
isort
changedir = {toxinidir}
commands =
black --skip-string-normalization -l 80 ./
isort -m 3 --tc ./