forked from artefactual/archivematica-storage-service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
62 lines (55 loc) · 1.56 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
[tox]
skipsdist = True
minversion = 2.7.0
envlist = {py27,py36}{,-flake8}, checkformigrations
skip_missing_interpreters = true
[testenv:checkformigrations]
basepython = python2
skip_install = true
deps = -rrequirements/test.txt
whitelist_externals = bash
commands = bash ./scripts/checkformigrations.sh
setenv =
PYTHONPATH = ./storage_service
DJANGO_SETTINGS_MODULE = storage_service.settings.test
DJANGO_SECRET_KEY = 1234
[testenv:py27]
basepython = python2
skip_install = true
deps = -rrequirements/test.txt
commands =
py.test
setenv =
PYTHONPATH = ./storage_service
DJANGO_SETTINGS_MODULE = storage_service.settings.test
DJANGO_SECRET_KEY = 1234
[testenv:py36]
basepython = python36
skip_install = true
deps = -rrequirements/test.txt
commands =
py.test
setenv =
PYTHONPATH = ./storage_service
DJANGO_SETTINGS_MODULE = storage_service.settings.test
DJANGO_SECRET_KEY = 1234
[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 = E501, E128, E722, E741, W504
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:
; E501 = line too long
; E128 = continuation line under-indented for visual indent