-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
86 lines (79 loc) · 1.93 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
[tox]
skipsdist=True
envlist = {py36}--django{2.2},syntax
[testenv]
commands =python manage.py collectstatic --noinput
python manage.py test
deps=
django2.2: django>=2.2,<2.3
mock==1.0.1
psycopg2-binary
model-bakery
django-suit==0.2.26
python-decouple==3.0
djangorestframework==3.12.1
django-heroku==0.3.1
whitenoise==5.3.0
drf-yasg2==1.19.4
django-sendgrid-v5
setenv =
DB_USERNAME={env:DB_USERNAME:geninfo_user}
DB_PASSWORD={env:DB_PASSWORD:docking_pw#&@!}
DB_HOST={env:DB_HOST:db}
DB_DATABASE_NAME={env:DB_DATABASE_NAME:geninfo_test}
DJANGO_SETTINGS_MODULE=geninfo.settings.test
[testenv:syntax]
commands =
flake8 geninfo
isort -rc -c .
black geninfo --check
bandit geninfo/*
deps =
flake8==3.8.4
isort
flake8-import-order>=0.9
black
bandit
[testenv:coverage]
commands =
coverage run --omit=geninfo/manage.py geninfo/manage.py test tests
coverage xml
deps =
django2.2: django>=2.2,<2.3
mock==1.0.1
psycopg2-binary
django-suit==0.2.26
python-decouple==3.0
djangorestframework==3.12.1
django-heroku==0.3.1
whitenoise==5.3.0
django-sendgrid-v5
coverage
drf-yasg2==1.19.4
setenv =
DB_USERNAME={env:DB_USERNAME:geninfo_user}
DB_PASSWORD={env:DB_PASSWORD:docking_pw#&@!}
DB_HOST={env:DB_HOST:db}
DB_DATABASE_NAME={env:DB_DATABASE_NAME:geninfo_test}
DJANGO_SETTINGS_MODULE=geninfo.settings.test
whitelist_externals =
bash
[flake8]
ignore = F403,W191,E124,E126,E128,I201
max-line-length = 160
exclude = migrations, manage.py, .git, .tox, build, dist, *.egg-info
application_import_names = geninfo
[isort]
indent=4
combine_star=1
combine_as_imports=1
include_trailing_comma=1
multi_line_output=3
lines_after_imports=2
known_django=django
known_first_party=geninfo
known_future_library=future
default_section=THIRDPARTY
sections=FUTURE,STDLIB,THIRDPARTY,DJANGO,FIRSTPARTY,LOCALFOLDER
skip_glob=*migrations*|*.egg-info
skip=.tox,build,dist