forked from ejplatform/ej-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
71 lines (61 loc) · 1.14 KB
/
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
60
61
62
63
64
65
66
67
68
69
70
71
[tox]
skipsdist = True
usedevelop = True
envlist = py{36},flake8
[testenv]
install_command = pip install -e ".[dev]" -U {opts} {packages}
basepython =
py36: python3.6
deps =
pytest
commands = py.test src/ --cov
[testenv:flake8]
basepython =
python3.6
deps =
flake8>=3.5.0
commands =
flake8 src/
[pytest]
DJANGO_SETTINGS_MODULE = ej.settings
python_paths = src
norecursedirs =
.tox,
lib
testpaths =
src/
addopts = --nomigrations
env =
D:COUNTRY=usa
[flake8]
# E501: line > 79 characters
# E731: do not assign a lambda expression, use a def
# E131: continuation line unaligned for hanging indent
# W503: line break before binary operator
ignore = E731, E131, W503
env =
PYTHONPATH=src/:$PYTHONPATH
SULFUR_DJANGO=true
exclude =
.git,
.tox,
__pycache__,
lib,
docs/conf.py,
tasks.py,
setup.py,
manage.py,
build,
dist,
local/,
node_modules,
**/migrations/*.py,
**/__init__.py
max-complexity = 8
max-line-length = 120
[pycodestyle]
max-line-length = 120
exclude=.tox,.git,*/migrations/*,*/static/CACHE/*,docs,node_modules
[pep8]
ignore = E501,E731
max-line-length = 80