forked from pylint-dev/pylint-django
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
57 lines (53 loc) · 1.76 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
# 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{34,35,36}-django111
py{34,35,36,37}-django20
[testenv]
commands =
django_not_installed: bash -c \'pylint --load-plugins=pylint_django setup.py | grep django-not-available\'
django_is_installed: pylint --load-plugins=pylint_django setup.py
flake8: flake8
pylint: pylint --rcfile=tox.ini -d missing-docstring --ignore=tests pylint_django setup
readme: python setup.py check --restructuredtext --strict
py{34,35,36,37}-django{111,20}: 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>=2.0,<2.1
readme: readme_renderer
django111: Django>=1.11,<2.0
django20: Django>=2.0,<2.1
py{37}: https://github.com/PyCQA/astroid/tarball/master#egg=astroid-master
py{37}: https://github.com/PyCQA/pylint/tarball/master#egg=pylint-master
py{34,35,36,37}: coverage
py{34,35,36,37}: djangorestframework
py{34,35,36,37}: django-model-utils
py{34,35,36,37}: django-tables2
py{34,35,36,37}: factory-boy
py{34,35,36,37}: psycopg2
py{34,35,36,37}: pylint-plugin-utils
py{34,35,36,37}: pytest
setenv =
PIP_DISABLE_PIP_VERSION_CHECK = 1
PYTHONPATH = .
whitelist_externals =
django_not_installed: bash
clean: find
clean: rm
[travis:env]
DJANGO =
1.11: django111
2.0: django20
[flake8]
max-line-length = 120