-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
44 lines (35 loc) · 930 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
[tox]
skipsdist = True
usedevelop = True
envlist = py{36}-django{1.11,2.0},flake8
[testenv]
install_command = pip install -e ".[dev]" -U {opts} {packages}
deps =
pytest
django1.11: django==1.11
django2.0: django==2.0
basepython =
py36: python3.6
py37: python3.7
commands = pytest --cov
[testenv:flake8]
basepython = python3.6
deps = flake8
commands = flake8 src/
[flake8]
# E501: line > 79 characters
# E731: do not assign a lambda expression, use a def
# E131 continuation line unaligned for hanging indent
ignore = E501, E731, E131
exclude = .git,__pycache__,src/**/migrations/*.py,docs/conf.py,build,dist,tests,src/**/__init__.py
max-line-length = 80
max-complexity = 10
[pep8]
ignore = E501, E731, E131
max-line-length = 80
[pytest]
DJANGO_SETTINGS_MODULE = tests.testproject.settings
env = PYTHONPATH=src/:.:$PYTHONPATH
norecursedirs = .tox
testpaths = tests/
addopts = --maxfail=2 -m "not slow"