-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
54 lines (49 loc) · 994 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
[tox]
skip_missing_interpreters = true
envlist =
py310,
mypy,
lint,
pytest
skipsdist = true
[base]
[testenv]
deps =
-rrequirements.txt
[testenv:mypy]
basepython = python3
skip_install = true
deps =
-rrequirements.txt
mypy
changedir = {toxinidir}
commands =
mypy --config-file ./mypy.ini --install-types --non-interactive ./pypaths ./tests
[testenv:lint]
basepython = python3
skip_install = true
deps =
black
isort
changedir = {toxinidir}
commands =
black --check --diff --skip-string-normalization -l 80 ./pypaths ./tests
isort --check-only --profile black ./pypaths ./tests
[testenv:pytest]
basepython = python3
skip_install = true
deps =
pytest
changedir = {toxinidir}
commands =
pytest -x -vvvv tests/
[testenv:fixlint]
basepython = python3
skip_install = true
deps =
black
isort
changedir = {toxinidir}
commands =
black --skip-string-normalization -l 80 ./pypaths ./tests
isort --profile black ./pypaths ./tests