File: tox.ini

package info (click to toggle)
python-crispy-bootstrap3 2024.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 500 kB
  • sloc: python: 1,815; makefile: 3
file content (31 lines) | stat: -rw-r--r-- 791 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
[tox]
envlist =
    {py38,py39,py310}-django32-crispy1,
    {py38,py39,py310}-django42-crispy{1,2,-latest},
    {py311}-django{42,50}-crispy{2,-latest},
    lint

[testenv]
deps =
    django32: django>=3.2,<4
    django42: django>=4.2,<5
    django50: django>=5.0,<5.1
    crispy1: django-crispy-forms<=2.0
    crispy2: django-crispy-forms>=2.0,<3
    crispy-latest: https://github.com/django-crispy-forms/django-crispy-forms/archive/main.tar.gz
    -rrequirements/testing.txt
commands = python -W error::DeprecationWarning -W error::PendingDeprecationWarning -m pytest {posargs}
setenv =
    PYTHONDONTWRITEBYTECODE=1

[testenv:lint]
skip_install = true
commands =
    black . --check
    isort . --check --dif
    flake8 .
deps =
    -rrequirements/lint.txt

[flake8]
max-line-length = 88