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