-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathtox.ini
57 lines (52 loc) · 1.01 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
[tox]
envlist =
lint,
[testenv:lint]
skipsdist = true
skip_install = true
deps =
flake8
flake8-black
flake8-blind-except
flake8-bugbear
flake8-docstrings
flake8-import-order
flake8-quotes
pep8-naming
commands =
flake8 {posargs:.}
[testenv:type]
skipsdist = true
skip_install = true
deps =
mypy
django-stubs
djangorestframework-stubs
mypy-boto3-s3
commands =
mypy {posargs:.}
[testenv:format]
skipsdist = true
skip_install = true
deps =
black
commands =
black {posargs:.}
[flake8]
max-line-length = 100
show-source = True
# https://github.com/PyCQA/flake8-import-order
import-order-style = appnexus
application-import-names = dandi, publish
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,
[pytest]
DJANGO_SETTINGS_MODULE = dandi.settings
DJANGO_CONFIGURATION = DevelopmentConfiguration