forked from artefactual/archivematica-storage-service
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
39 lines (34 loc) · 966 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
[tox]
skipsdist = True
minversion = 2.7.0
envlist = linting, py{27,36}, migrations
skip_missing_interpreters = true
[testenv:linting]
basepython = python3
deps = pre-commit
commands = pre-commit run --all-files --show-diff-on-failure
[testenv]
basepython = python2
skip_install = true
deps = -rrequirements/test.txt
commands =
py.test {posargs}
setenv =
PYTEST_ADDOPTS = {env:PYTEST_ADDOPTS:}
PYTHONPATH = ./storage_service
DJANGO_SETTINGS_MODULE = storage_service.settings.test
DJANGO_SECRET_KEY = 1234
BOTO_CONFIG=/dev/null
[testenv:py36]
basepython = python3
deps = -rrequirements/test-py3.txt
[testenv:migrations]
basepython = python3
deps = -rrequirements/test-py3.txt
commands = django-admin makemigrations --check --dry-run
[flake8]
exclude = .tox, .git, __pycache__, .cache, build, dist, *.pyc, *.egg-info, .eggs
application-import-names = flake8
select = C, E, F, W, B, B950
ignore = E203, E402, E501, W503
max-line-length = 80