forked from toolforge/quarry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
31 lines (25 loc) · 696 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
[tox]
envlist = py37-{flake8,pytest,black,mypy}
skipsdist = True
[flake8]
exclude = bin,lib,include,.venv,.tox,dist,doc,build,*.egg
max-line-length = 120
[mypy]
ignore_missing_imports = True
warn_redundant_casts = True
warn_unused_ignores = True
warn_unreachable = True
warn_unused_configs = True
[testenv:py37-flake8]
commands = flake8
deps = -rtest-requirements.txt
[testenv:py37-pytest]
commands = python -m pytest --cov=quarry -ra {posargs}
deps = -rtest-requirements.txt
-rrequirements.txt
[testenv:py37-black]
commands = black -l 80 -t py37 --check --diff quarry/web/
deps = black
[testenv:py37-mypy]
commands = mypy quarry --config-file tox.ini
deps = -rtest-requirements.txt