forked from marksweb/django-bleach
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
79 lines (70 loc) · 1.6 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
[tox]
envlist =
{py36,py37,py38}-django{22,31},
flake8,
docs,
coverage,
upload_coverage
[testenv]
changedir = testproject
commands =
python -Wd manage.py test django_bleach
setenv =
PYTHONDONTWRITEBYTECODE=1
deps =
bleach
django22: Django>=2.2,<3.0
djagno31: Django>=3.1,<3.2
mock
extras =
test
[testenv:coverage]
changedir = testproject
deps =
coverage
mock
commands =
coverage erase
coverage run --rcfile ../.coveragerc manage.py test --failfast django_bleach
coverage report --rcfile ../.coveragerc
coverage html --rcfile ../.coveragerc
coverage xml --rcfile ../.coveragerc
[testenv:flake8]
basepython = python
deps =
flake8
flake8-broken-line
flake8-bugbear
flake8-builtins
flake8-coding
flake8-commas
flake8-comprehensions
flake8-eradicate
flake8-quotes
flake8-tidy-imports
pep8-naming
commands =
{envpython} -m flake8 {toxinidir}/django_bleach
[testenv:docs]
changedir = docs
deps =
sphinx
sphinx-rtd-theme
commands =
sphinx-build -W -b html -d {envtmpdir}/doctrees . {toxinidir}/docs/_build/html
[testenv:upload_coverage]
deps = codacy-coverage
passenv =
CODACY_PROJECT_TOKEN
commands =
python-codacy-coverage -r coverage.xml
[flake8]
exclude = *.egg-info,.git,.settings,.tox,build,dist,docs,requirements,tmp,*migrations*,tests,data
ignore = E800, W503, C812, C813, C815, C818, C819, C408
max-line-length = 119
# flake8-quotes
inline-quotes = double
# flake8-coding
no-accept-encodings = True
# flake8-tidy-imports
banned-modules = __future__ = this project supports python3 only