File: tox.ini

package info (click to toggle)
python-django-rest-framework-guardian 0.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 136 kB
  • sloc: python: 267; makefile: 7; sh: 6
file content (43 lines) | stat: -rw-r--r-- 822 bytes parent folder | download
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
[tox]
envlist =
    py310-django{42,50,51,52},
    py311-django{42,50,51,52},
    py312-django{42,50,51,52},
    py313-django{51,52},
    dist,lint

[testenv]
commands = coverage run manage.py test {posargs: --no-input -v 2}
usedevelop = True
setenv =
    PYTHONDONTWRITEBYTECODE = 1
deps =
    coverage[toml]
    django42: Django~=4.2.0
    django50: Django~=5.0.0
    django51: Django~=5.1.0
    django52: Django~=5.2.0

[testenv:dist]
commands =
    python manage.py test {posargs: --no-input -v 2}
    python -m build
    twine check dist/*
usedevelop = False
setenv =
    PYTHONDONTWRITEBYTECODE =
deps =
    build
    twine

[testenv:lint]
commands =
    isort src tests --check-only --diff
    flake8 src tests
deps =
    isort
    flake8
    flake8-pyproject
    flake8-bugbear
    flake8-commas
    flake8-quotes