-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
47 lines (40 loc) · 802 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
[tox]
envlist=py{3.8,3.9,3.10},flake8,isort
skip_missing_interpreters = true
isolated_build = true
[testenv]
deps =
coverage>=5.2
pytest>=6.0.1
commands =
coverage run --source=duper -m pytest
coverage report
[testenv:flake8]
basepython = python
deps =
flake8==4.0.1
flake8-comprehensions
commands =
flake8 duper tests
[testenv:isort]
deps =
isort==5.10.1
commands =
{envpython} -m isort --check-only --diff .
[testenv:black]
deps =
black==22.3.0
commands =
{envpython} -m black --check --line-length 80 .
[testenv:mypy]
basepython = python
deps =
mypy==0.910
commands =
mypy --install-types --non-interactive --ignore-missing-imports duper tests
[flake8]
max-line-length = 80
extend-ignore = E203
[isort]
profile = black
multi_line_output = 3