-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtox.ini
More file actions
33 lines (28 loc) · 747 Bytes
/
tox.ini
File metadata and controls
33 lines (28 loc) · 747 Bytes
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
[tox]
minversion = 2.0
envlist = black,pep8
skipsdist = True
[testenv]
usedevelop = True
basepython = python3.7
install_command = pip install {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
PYTHONWARNINGS=default::DeprecationWarning
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
[testenv:pep8]
commands =
isort --check-only --diff -rc -sl .
# run black in check mode and fail if it would change something
black --line-length 79 --check --diff ./
flake8 {posargs}
[testenv:black]
commands =
isort -rc -sl .
black --line-length 79 ./
[flake8]
show-source = True
# builtins = _
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build