forked from artefactual/archivematica
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
51 lines (45 loc) · 1.65 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
[tox]
skipsdist = True
minversion = 2.7.0
envlist = {py27,py36}{,-flake8}, mcpserver
[testenv]
skip_install = True
setenv =
DJANGO_SETTINGS_MODULE = settings.test
PYTHONPATH = src/archivematicaCommon/lib:src/dashboard/src
commands =
pip install -q -r src/archivematicaCommon/requirements/test.txt
pip install -q -r src/MCPClient/requirements/test.txt
pip install -q -r src/dashboard/src/requirements/test.txt
py.test --ignore=src/MCPServer {posargs}
python src/MCPClient/lib/ensure_no_mutable_globals.py
[testenv:mcpserver]
skip_install = True
setenv =
DJANGO_SETTINGS_MODULE = settings.test
PYTHONPATH = src/archivematicaCommon/lib:src/MCPServer/lib:src/dashboard/src
commands =
pip install -q -r src/archivematicaCommon/requirements/test.txt
pip install -q -r src/dashboard/src/requirements/test.txt
pip install -q -r src/MCPServer/requirements/test.txt
py.test --ignore=src/dashboard/tests --ignore=src/MCPClient/tests --ignore=src/archivematicaCommon/tests {posargs}
[testenv:py27-flake8]
basepython = python2.7
envdir = {toxworkdir}/py27
deps = flake8
commands = flake8 .
[testenv:py36-flake8]
basepython = python3.6
envdir = {toxworkdir}/py36
deps = flake8
commands = flake8 .
[flake8]
exclude = .tox, .git, __pycache__, .cache, build, dist, *.pyc, *.egg-info, .eggs
application-import-names = flake8
ignore = E402, E501, E722, E741, W504, W605
max-line-length = 160
; Report: $ .tox/flake8/bin/flake8 --isolated -qq --statistics --count --max-line-length=160
; List errors: $ .tox/flake8/bin/flake8 --isolated --max-line-length=160
; Ignored errors:
; E402 = module level import not at top of file
; E501 = line too long