-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
36 lines (28 loc) · 887 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={lints,tests,devs}
[flake8]
# https://black.readthedocs.io/en/stable/compatible_configs.html#flake8
exclude = .git,.tox,.venv,__pycache__,*.egg-info,build,dist,old
max-line-length = 88
# E203, W503: suggested by black
# E731: lambda bad
extend-ignore = E203, W503, E731
max-returns = 8
max-arguments = 8
[isort]
force_single_line = True
[testenv]
passenv=
HOME
setenv=
PYTHONPATH = {toxinidir}/src/python
deps =
lints: -r requirements/linting.txt
tests: -r requirements/testing.txt
commands_pre=
python -c 'import sys; print(f"\{sys.executable} at \{sys.version.split()[0]}")'
commands=
lints: black --check src/python
lints: flake8 src/python
lints: mypy --ignore-missing-imports --install-types --non-interactive src/python
tests: py.test {posargs} --doctest-modules --doctest-glob="*.test" --doctest-glob="*.tests" src/python