forked from APSL/puput
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
49 lines (39 loc) · 1.03 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
[tox]
envlist = py{38,39,310,311}-dj{30,31,32,40,41}, flake8, black
[gh-actions]
python =
3.8: py38-dj{30,31,32,40,41}, flake8, black
3.9: py39-dj{30,31,32,40,41}
3.10: py310-dj{30,31,32,40,41}
3.11: py311-dj{30,31,32,40,41}
[flake8]
max-line-length = 120
[testenv]
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}
DJANGO_SETTINGS_MODULE = tests.testapp.settings
commands =
pytest --create-db --no-migrations
deps =
pytest==7.1.2
pytest-django==4.1.0
requests==2.28.1
model-bakery==1.5.0
ipdb==0.13.9
django-el-pagination>=3.2.4
django-social-share>=1.3.0
django-colorful>=1.3
tapioca-disqus==0.1.2
dj30: Django>=3.0,<3.1
dj31: Django>=3.1,<3.2
dj32: Django>=3.2,<3.3
dj40: Django>=4.0,<4.1
dj41: Django>=4.1,<4.2
[testenv:flake8]
basepython = python3.8
deps = flake8==4.0.1
commands = flake8 puput tests --exclude=migrations
[testenv:black]
basepython = python3.8
deps = black==22.3.0
commands = black puput tests -l 120 --check --extend-exclude=/migrations/