forked from django-json-api/django-rest-framework-json-api
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.cfg
67 lines (61 loc) · 1.28 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
[aliases]
test = pytest
[wheel]
universal = 1
[flake8]
max-line-length = 88
extend-ignore =
# whitespace before ':' - disabled as not PEP8 compliant
E203,
# line too long (managed by black)
E501
exclude =
build/lib,
.eggs
.tox,
env
.venv
[isort]
multi_line_output = 3
include_trailing_comma = True
force_grid_wrap = 0
use_parentheses = True
ensure_newline_before_comments = True
line_length = 88
known_first_party = rest_framework_json_api
# This is to "trick" isort into putting example below DJA imports.
known_localfolder = example
skip=
build/lib,
.eggs
.tox,
env
.venv
[coverage:run]
source =
example
rest_framework_json_api
[coverage:report]
omit =
.tox/*
.eggs/*
example/urls.py
show_missing = True
exclude_lines =
pragma: no cover
pragma: todo cover
def __str__
def __unicode__
def __repr__
[tool:pytest]
DJANGO_SETTINGS_MODULE=example.settings.test
filterwarnings =
error::DeprecationWarning
error::PendingDeprecationWarning
# TODO remove in next major version of DJA 5.0.0
# this deprecation warning filter needs to be added as AuthorSerializer is used in
# too many tests which introduced the type field name in tests
ignore:Field name 'type'
testpaths =
example
tests