-
Notifications
You must be signed in to change notification settings - Fork 30
/
tox.ini
59 lines (52 loc) · 997 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
55
56
57
58
59
[tox]
minversion = 3.14.1
skipsdist = true
envlist = format-check, lint, typecheck, test
[testenv]
basepython = python3
[testenv:test]
deps =
ansicolors
dataclasses
pytest
typing_extensions
commands =
pytest -v {posargs}
passenv =
SKIP_PANTSD_TESTS
# These are to support directing test environments to the correct OpenSSL on OSX.
LDFLAGS
CPPFLAGS
# We use Pyenv to configure which Python versions are used and it needs HOME to report the
# pyenv root
PYENV_BIN
PYENV_ROOT
HOME
[testenv:format-run]
deps =
isort
black
commands =
isort tests/ --apply
black .
[testenv:format-check]
deps =
{[testenv:format-run]deps}
commands =
isort tests/ --check-only
black . --check
[testenv:lint]
deps =
flake8
commands =
flake8 .
[testenv:typecheck]
deps =
mypy
types-dataclasses
commands =
mypy --config-file build-support/mypy.ini tests/
[flake8]
max_line_length: 100
extend_ignore =
E203,E501