forked from marksweb/django-bleach
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
67 lines (58 loc) · 1.43 KB
/
tox.ini
File metadata and controls
67 lines (58 loc) · 1.43 KB
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
[tox]
envlist =
{py38,p39,p310}-django{22,32,4},
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
djagno32: Django>=3.2,<3.3
djagno4: Django>=4.0,<4.1
mock
extras =
test
[testenv:coverage]
changedir = testproject
deps =
-rtestproject/requirements.txt
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 =
-rtestproject/requirements.txt
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, C101
max-line-length = 119
# flake8-quotes
inline-quotes = double
# flake8-tidy-imports
banned-modules = __future__ = this project supports python3 only