forked from Amsterdam/keycloak_oidc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
59 lines (53 loc) · 864 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
[tox]
envlist = pytest,flake8,isort
skipsdist = True
[testenv]
envdir = {toxworkdir}/test
sitepackages = True
deps =
pytest
pytest-cov
pytest-django
coverage
flake8
isort
model_mommy
djangorestframework
commands =
pip install -e .
flake8: flake8 .
isort: isort
pytest: pytest --cov=. --cov-report term --no-cov-on-fail {posargs:} --tb=short
[flake8]
max-complexity = 8
max-line-length = 120
exclude =
.git,
.eggs,
dist,
.tox,
dist,
build,
__pycache__
[pytest]
DJANGO_SETTINGS_MODULE = tests.settings
python_files =
test.py
tests.py
test_*.py
[isort]
line_length = 120
skip = .tox
not_skip = __init__.py
multi_line_output = 3
[coverage:run]
branch = True
omit =
.eggs/*
.tox/*
setup.py
[coverage:report]
fail_under = 80
skip_covered = True
show_missing = True
sort = Cover