-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtox.ini
40 lines (34 loc) · 913 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
[tox]
envlist = py{36,37,38},checkformigrations,linting,coverage
skipsdist = True
[testenv]
skip_install = true
deps = -rrequirements/test.txt
setenv =
LANG = C.UTF-8
DJANGO_ALLOWED_HOSTS = *
DJANGO_DEBUG = True
DJANGO_SECRET_KEY = secret_key
ES_HOSTS = localhost:9200
CELERY_BROKER_URL = redis://localhost:6379
SS_HOSTS = http://test:[email protected]:62081
commands =
nodeenv --python-virtualenv
npm install
coverage run manage.py test
[testenv:checkformigrations]
whitelist_externals = bash
commands = bash ./scripts/checkformigrations.sh
[testenv:linting]
deps = pre-commit
commands = pre-commit run --all-files --show-diff-on-failure
[testenv:coverage]
commands = coverage report
[flake8]
exclude = .git, .tox, __pycache__
ignore = E203, E501, W503
[isort]
default_section = THIRDPARTY
known_first_party = scope,search
force_single_line = true
line_length = 88