-
Notifications
You must be signed in to change notification settings - Fork 12
/
tox.ini
46 lines (41 loc) · 907 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
[tox]
skipsdist = True
envlist = lint,py36
[testenv]
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
install_command = pip install -U {packages}
setenv =
DCI_SETTINGS_MODULE = tests.settings
TZ = UTC
norecursedirs = .git docs bin scripts
passenv= *
usedevelop = True
whitelist_externals =
sh
commands =
sh ./scripts/start_db.sh
[testenv:py36]
commands =
{[testenv]commands}
py.test -v {posargs: tests}
[testenv:lint]
basepython = python3
skip_install = true
deps = flake8
black
commands =
black --check .
flake8
[flake8]
# E203: whitespace before ':'
max-line-length = 160
ignore = H405,H304,H104,E402,E129,E722,W605,W504,W503,E501,E203
exclude=.venv,.git,.tox,dist,*egg,*.egg-info,build,examples,doc,venv
show-source = True
builtins = long
[testenv:black]
basepython = python3
skip_install = true
deps = black
commands = black .