-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathtox.ini
52 lines (48 loc) · 1.43 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
# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
isolated_build = true
envlist =
# Making sure that each supported version of Python and each supported
# version of Django is tested but not each combination (quadratic)
# When changing this, remember to change the CI accordingly
py39-django{22,30,31,32,40},
py{37,38,310}-django{32},
lint
[testenv]
usedevelop = True
extras = dev
deps =
django22: Django==2.2.*
django22: psycopg2<2.9 # https://github.com/django/django/commit/837ffcfa681d0f65f444d881ee3d69aec23770be
django30: Django==3.0.*
django30: psycopg2<2.9 # https://github.com/django/django/commit/837ffcfa681d0f65f444d881ee3d69aec23770be
django31: Django==3.1.*
django32: Django==3.2.*
django40: Django==4.0.*
commands =
pytest {posargs}
passenv =
PG*
[testenv:lint]
skip_install = true
basepython = python3
commands =
flake8 demoproject django_genericfilters
black --check demoproject django_genericfilters
isort --check demoproject django_genericfilters
deps =
flake8
black
isort
[testenv:format]
skip_install = true
basepython = python3
commands =
black demoproject django_genericfilters
isort demoproject django_genericfilters
deps =
black
isort