forked from mtgjson/mtgjson
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
36 lines (28 loc) · 935 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
[tox]
envlist = isort-inplace, black-inplace, mypy, lint, unit
[testenv]
setenv = PYTHONPATH = {toxinidir}
deps =
-r {toxinidir}/requirements.txt
-r {toxinidir}/requirements_test.txt
[testenv:isort-inplace]
description = Sort imports
commands = isort --profile black mtgjson5/
[testenv:isort-check]
description = dry-run isort to see if imports need resorting
commands = isort --profile black --check-only mtgjson5/
[testenv:black-inplace]
description = Run black and edit all files in place
commands = black mtgjson5/
[testenv:black-check]
description = Run black and edit all files in place
commands = black --check mtgjson5/
[testenv:mypy]
description = mypy static type checking only
commands = mypy {posargs:mtgjson5/}
[testenv:lint]
description = Run linting tools
commands = pylint mtgjson5/ --rcfile=.pylintrc
[testenv:unit]
description = Run unit tests with coverage and mypy type checking
commands = pytest tests/