-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
98 lines (91 loc) · 2.17 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
[tox]
envlist =
lint,
test,
check-migrations,
[testenv:lint]
skipsdist = true
skip_install = true
deps =
flake8
flake8-black
flake8-bugbear
flake8-docstrings
flake8-isort
flake8-quotes
pep8-naming
commands =
flake8 {posargs:uvdat}
[testenv:type]
skipsdist = true
skip_install = true
deps =
mypy
django-stubs
djangorestframework-stubs
commands =
mypy {posargs:uvdat}
[testenv:format]
skipsdist = true
skip_install = true
deps =
black
isort
commands =
isort {posargs:uvdat}
black {posargs:uvdat}
[testenv:test]
passenv =
DJANGO_CELERY_BROKER_URL
DJANGO_DATABASE_URL
DJANGO_MINIO_STORAGE_ACCESS_KEY
DJANGO_MINIO_STORAGE_ENDPOINT
DJANGO_MINIO_STORAGE_SECRET_KEY
DJANGO_HOMEPAGE_REDIRECT_URL
extras =
dev
test
commands =
pip install large-image-converter --find-links https://girder.github.io/large_image_wheels
pytest {posargs:-k "not slow"}
[testenv:check-migrations]
setenv =
DJANGO_CONFIGURATION = TestingConfiguration
passenv =
DJANGO_CELERY_BROKER_URL
DJANGO_DATABASE_URL
DJANGO_MINIO_STORAGE_ACCESS_KEY
DJANGO_MINIO_STORAGE_ENDPOINT
DJANGO_MINIO_STORAGE_SECRET_KEY
DJANGO_HOMEPAGE_REDIRECT_URL
extras =
dev
commands =
pip install large-image-converter --find-links https://girder.github.io/large_image_wheels
{envpython} ./manage.py makemigrations --check --dry-run
[flake8]
max-line-length = 100
show-source = True
ignore =
# closing bracket does not match indentation of opening bracket’s line
E123
# whitespace before ':'
E203,
# line break before binary operator
W503,
# Missing docstring in *
D10,
exclude =
web
.tox
[pytest]
DJANGO_SETTINGS_MODULE = uvdat.settings
DJANGO_CONFIGURATION = TestingConfiguration
addopts = --strict-markers --showlocals --verbose
markers =
slow: mark test as slow
filterwarnings =
# https://github.com/jazzband/django-configurations/issues/190
ignore:the imp module is deprecated in favour of importlib:DeprecationWarning:configurations
# https://github.com/celery/kombu/issues/1339
ignore:SelectableGroups dict interface is deprecated:DeprecationWarning:kombu