File: tox.ini

package info (click to toggle)
python-jsonfield 3.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 180 kB
  • sloc: python: 739; makefile: 15
file content (50 lines) | stat: -rw-r--r-- 1,067 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
44
45
46
47
48
49
50
[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,warnings

[testenv]
commands = coverage run -p 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

[testenv:warnings]
commands = python -Werror manage.py test {posargs: --no-input -v 2}
deps =
    https://github.com/django/django/archive/master.tar.gz

[testenv:migration-example]
commands = python manage.py test {posargs: --no-input -v 2}
changedir = migration-example/
deps = django