-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathtox.ini
60 lines (56 loc) · 1.47 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
[tox]
envlist =
style
complexity
security
drf{34,35,36}-py{27,34,35}-django110
drf{37,38,39}-py{27,34,35,36,37}-django{110,111}
drf{37,38,39}-py{34,35,36,37}-django20
drf{37,38,39}-py{35,36,37}-django21
[testenv]
setenv =
DJANGO_SETTINGS_MODULE = tests.unit.settings
PYTHONPATH = {toxinidir}
PYTHONWARNINGS = all
PYTHONDONTWRITEBYTECODE = 1
passenv =
TRAVIS
TRAVIS_*
deps =
django110: Django>=1.10,<1.11
django111: Django>=1.11,<1.12
django20: Django>=2.0,<2.1
django21: Django>=2.1,<2.2
drf34: djangorestframework>=3.4,<3.5
drf35: djangorestframework>=3.5,<3.6
drf36: djangorestframework>=3.6,<3.7
drf37: djangorestframework>=3.7,<3.8
drf38: djangorestframework>=3.8,<3.9
drf39: djangorestframework>=3.9,<3.10
py27: mock
coveralls
pytest
pytest-cov
pytest-django
pytest-xdist
commands =
py.test --cov rest_framework_recaptcha --cov-config .coveragerc --cov-report= {posargs}
coveralls
[testenv:style]
basepython = python3.6
extras = development
commands =
isort -rc rest_framework_recaptcha/.
black -l 79 --py36 --check rest_framework_recaptcha
flake8 rest_framework_recaptcha
[testenv:complexity]
basepython = python3.6
extras = development
commands =
xenon --max-absolute B --max-modules A --max-average A rest_framework_recaptcha
[testenv:security]
basepython = python3.6
extras = development
commands =
bandit -r rest_framework_recaptcha/.
safety check