File: tox.ini

package info (click to toggle)
djangorestframework-filters 1.0.0.dev2-3
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 420 kB
  • sloc: python: 2,855; makefile: 6
file content (71 lines) | stat: -rw-r--r-- 1,633 bytes parent folder | download | duplicates (2)
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
[tox]
envlist =
    py{35,36}-django111,
    py{35,36,37}-django20,
    py{35,36,37}-django21,
    py{35,36,37}-django22,
    py{36,37,38}-django30,
    py{36,37,38}-django31,
    performance, warnings, isort, lint, dist,

[travis]
unignore_outcomes = true

[testenv]
commands = coverage run manage.py test --exclude-tag=perf {posargs}
envdir = {toxworkdir}/venvs/{envname}
setenv =
    PYTHONDONTWRITEBYTECODE=1
deps =
    coverage>=5.0
    django-crispy-forms~=1.0
    djangorestframework~=3.11.0
    django111: django-filter~=2.1.0
    django111: django~=1.11.0
    django20: django~=2.0.0
    django21: django~=2.1.0
    django22: django~=2.2.0
    django30: django~=3.0.0
    django31: django~=3.1.0


[testenv:performance]
commands = python manage.py test --tag=perf {posargs}
deps =
    django
    djangorestframework

[testenv:warnings]
ignore_outcome = True
commands = python -Werror manage.py test --exclude-tag=perf {posargs}
deps =
    https://github.com/django/django/archive/master.tar.gz
    https://github.com/tomchristie/django-rest-framework/archive/master.tar.gz

[testenv:isort]
commands = isort --check-only rest_framework_filters tests {posargs:--diff}
deps = isort

[testenv:lint]
commands = flake8 rest_framework_filters tests {posargs}
deps =
    flake8
    darglint

    flake8-assertive
    flake8-bugbear
    flake8-builtins
    flake8-commas
    flake8-comprehensions
    flake8-docstrings

[testenv:dist]
commands =
    twine check dist/*
    python manage.py test --no-pkgroot --exclude-tag=perf {posargs}
deps =
    django
    djangorestframework
    django-crispy-forms
    readme_renderer
    twine