-
Notifications
You must be signed in to change notification settings - Fork 17
/
tox.ini
44 lines (39 loc) · 879 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
41
42
43
44
[tox]
skipsdist=True
envlist=lint,py38-dj{32,42}
[testenv]
basepython=python3.8
deps=
dj32: Django>=3.2,<3.3
dj42: Django>=4.2,<4.3
install_command=pip install -e ".[testing]" -U {opts} {packages}
setenv=
DJANGO_SETTINGS_MODULE=ccdb5_api.tox
commands=
coverage erase
coverage run manage.py test {posargs}
coverage report -m
coverage html
[testenv:lint]
basepython=python3.8
deps=
flake8
isort == 5.9.3
commands=
flake8 ccdb5_api complaint_search
isort --check-only --diff ccdb5_api complaint_search
[isort]
line_length=78
include_trailing_comma=1
lines_after_imports=2
multi_line_output=3
skip=.tox,migrations
use_parentheses=1
known_django=django
known_future_library=future
known_third_party=mock
default_section=THIRDPARTY
sections=FUTURE,STDLIB,DJANGO,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
[travis]
python=
3.8: py38-dj32, lint