forked from jazzband/sorl-thumbnail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.cfg
83 lines (69 loc) · 2.52 KB
/
setup.cfg
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
[wheel]
universal = 1
[bdist_wheel]
universal = 1
;; flake8 analyzes and detect varios errors in the source code.
[flake8]
# D105 - Missing docstring in magic method `__func__`
ignore = D105
max-line-length = 100
exclude = .git,
.tox,
docs/,
*/migrations/*,
tests/settings/
tests/thumbnail_tests/compat.py,
sorl/thumbnail/__init__.py,
sorl/thumbnail/admin/__init__.py,
sorl/thumbnail/compat.py
max_complexity = 15
;; Coverage.py, Code coverage testing for Python.
[cov:run]
source = sorl
omit = */sorl-thumbnail/sorl/__init__.py
*/sorl/thumbnail/__init__.py
*/sorl/thumbnail/conf/__init__.py
*/sorl/thumbnail/admin/compat.py
*/sorl/thumbnail/admin/__init__.py
*/sorl/thumbnail/compat.py
[cov:report]
exclude_lines = pragma: no cover
if __name__ == .__main__.:
;; The pytest framework
[tool:pytest]
python_files = test_*.py *tests.py
norecursedirs = .* tmp* __pycache__
testpaths = tests
django_find_project = false
;; Tox is a generic virtualenv management to run tests in different configurations.
[tox]
skipsdist = True
envlist = {py27,py33,py34,py35}-django18-{pil,imagemagick,graphicsmagick,redis,dynamodb,wand,pgmagick,dbm,vipsthumbnail},
{py27,py34,py35}-django110-{pil,imagemagick,graphicsmagick,redis,dynamodb,wand,pgmagick,dbm,vipsthumbnail},
{py27,py34,py35,py36}-django111-{pil,imagemagick,graphicsmagick,redis,dynamodb,wand,pgmagick,dbm,vipsthumbnail}
[testenv]
changedir = {toxinidir}/tests
deps = pytest
pytest-cov
coverage <= 3.7.1
pytest-django
Pillow
redis: redis
dynamodb: boto
pgmagick: pgmagick
wand: wand
django18: Django>=1.8,<1.9
django19: Django>=1.9,<1.10
django110: Django>=1.10a1,<1.11
django111: Django>=1.11a,<1.12
setenv = PYTHONPATH = {toxinidir}:{toxinidir}
pil: DJANGO_SETTINGS_MODULE=tests.settings.pil
imagemagick: DJANGO_SETTINGS_MODULE=tests.settings.imagemagick
graphicsmagick: DJANGO_SETTINGS_MODULE=tests.settings.graphicsmagick
vipsthumbnail: DJANGO_SETTINGS_MODULE=tests.settings.vipsthumbnail
redis: DJANGO_SETTINGS_MODULE=tests.settings.redis
dynamodb: DJANGO_SETTINGS_MODULE=tests.settings.dynamodb
wand: DJANGO_SETTINGS_MODULE=tests.settings.wand
pgmagick: DJANGO_SETTINGS_MODULE=tests.settings.pgmagick
dbm: DJANGO_SETTINGS_MODULE=tests.settings.dbm
commands = py.test -rw --cov-config setup.cfg --cov sorl