forked from pylint-dev/pylint-django
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
64 lines (59 loc) · 1.97 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
# This configuration file is for Tox. https://tox.readthedocs.io/
# It houses configuration sections for common Python tools, too.
[tox]
envlist =
django_not_installed
django_is_installed
flake8
pylint
readme
py{36}-django{111,20,-master}
py{36,37,38,39}-django{22,30,31,32}
py{38,39}-django40
requires =
pip >=21.0.1
tox
[testenv]
commands =
django_not_installed: bash pylint_django/tests/test_django_not_installed.sh
django_is_installed: pylint --rcfile=tox.ini --load-plugins=pylint_django --disable=E5110 setup.py
flake8: flake8
pylint: pylint --rcfile=tox.ini -d missing-docstring,too-many-branches,too-many-return-statements,too-many-ancestors,fixme --ignore=tests pylint_django setup
readme: bash -c "python setup.py -q sdist && twine check dist/*"
py{36}-django{111,20,-main}: coverage run pylint_django/tests/test_func.py -v
py{36,37,38,39}-django{22,30,31,32}: coverage run pylint_django/tests/test_func.py -v
clean: find . -type f -name '*.pyc' -delete
clean: find . -type d -name __pycache__ -delete
clean: rm -rf build/ .cache/ dist/ .eggs/ pylint_django.egg-info/ .tox/
deps =
django_is_installed: Django
flake8: flake8
pylint: pylint
pylint: Django
readme: twine
readme: wheel
django111: Django>=1.11,<2.0
django20: Django>=2.0,<2.1
django21: Django>=2.1,<2.2
django22: Django>=2.2,<3.0
django30: Django>=3.0,<3.1
django31: Django>=3.1,<3.2
django32: Django>=3.2,<4.0
django40: Django>=4.0,<4.1
django-main: Django
django-main: git+https://github.com/pycqa/astroid@main
django-main: git+https://github.com/pycqa/pylint@main
setenv =
PIP_DISABLE_PIP_VERSION_CHECK = 1
PYTHONPATH = .
allowlist_externals =
django_not_installed: bash
readme: bash
py{36}-django{111,20,-main}: coverage
py{36,37,38,39}-django{22,30,31,32,40}: coverage
clean: find
clean: rm
[flake8]
max-line-length = 120
[FORMAT]
max-line-length=120