forked from model-bakers/model_bakery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
58 lines (51 loc) · 1.11 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
53
54
55
56
57
58
[tox]
envlist =
py37-django{32}-{postgresql,sqlite}
py38-django{32,40,41,42}-{postgresql,sqlite}
py39-django{32,40,41,42}-{postgresql,sqlite}
py310-django{32,40,41,42}-{postgresql,sqlite}
py311-django{41,42}-{postgresql,sqlite}
flake8,isort,pydocstyle,black,mypy
[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
3.11: py311
[testenv]
setenv =
PYTHONPATH={toxinidir}
postgresql: TEST_DB=postgis
postgresql: PGUSER=postgres
postgresql: PGPASSWORD=postgres
sqlite: TEST_DB=sqlite
sqlite: USE_TZ=True
deps =
pillow
pytest
pytest-django
django32: Django==3.2
django40: Django>=4.0,<4.1
django41: Django>=4.1,<4.2
django42: Django>=4.2a1,<5
postgresql: psycopg2-binary
commands =
pytest
[testenv:flake8]
deps=flake8
commands=flake8 model_bakery {posargs}
[testenv:isort]
deps=isort
commands=isort model_bakery --check-only {posargs}
[testenv:black]
deps=black
commands=black . --check
[testenv:mypy]
deps=mypy
commands=python -m mypy model_bakery
[testenv:pydocstyle]
deps =
pydocstyle
toml
commands=pydocstyle