-
Notifications
You must be signed in to change notification settings - Fork 228
/
tox.ini
65 lines (59 loc) · 1.37 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
59
60
61
62
63
64
65
[tox]
envlist =
lint,
py37-dj32,
py{38,39}-dj{32,40},
py310-dj{32,40,41},
py311-dj{41,42,50},
py312-dj{42,50},
pypy310-dj40
[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312
pypy-3.10: pypy310
[testenv]
passenv = *
allowlist_externals = *
# This is required for gdal to install
setenv =
CPLUS_INCLUDE_PATH=/usr/include/gdal
C_INCLUDE_PATH=/usr/include/gdal
deps =
pytest
pytest-django
dj32: Django>=3.2,<3.3
dj40: Django>=4.0,<4.1
dj41: Django>=4.1,<4.2
dj42: Django>=4.2.8,<5.0
dj50: Django>=5.0,<5.1
djmain: git+https://github.com/django/django
mysqlclient
py{37,38,39,310,311,312}: psycopg2-binary
; gdal=={env:GDAL_VERSION:2.4}
pypy310: psycopg2cffi>=2.7.6
before_after==1.0.0
jinja2>=2.10
dill
commands =
pytest []
env CACHEOPS_PREFIX=1 pytest []
env CACHEOPS_INSIDEOUT=1 pytest []
env CACHEOPS_DB=mysql pytest []
env CACHEOPS_DB=postgresql pytest []
; env CACHEOPS_DB=postgis pytest []
; Test invalidate command
./manage.py invalidate tests.post
./manage.py invalidate tests
./manage.py invalidate all
[flake8]
max-line-length = 100
ignore = E126,E127,E131,E226,E261,E265,E266,E302,E305,E401,E402,F403,F405,E731,W503
exclude = cross.py,.tox/*
[testenv:lint]
deps = flake8
commands = flake8