2016-07-18 18:08:44 +03:00
|
|
|
[metadata]
|
2022-08-10 15:47:39 +03:00
|
|
|
license_files = LICENSE.md
|
2017-05-16 13:18:33 +03:00
|
|
|
|
2018-06-23 01:14:26 +03:00
|
|
|
[tool:pytest]
|
2021-04-16 19:47:21 +03:00
|
|
|
addopts=--tb=short --strict-markers -ra
|
2024-04-26 19:02:19 +03:00
|
|
|
testpaths = tests
|
2023-06-13 09:55:22 +03:00
|
|
|
filterwarnings = ignore:CoreAPI compatibility is deprecated*:rest_framework.RemovedInDRF317Warning
|
2018-05-08 15:28:16 +03:00
|
|
|
|
2017-05-16 13:18:33 +03:00
|
|
|
[flake8]
|
2022-09-21 14:19:33 +03:00
|
|
|
ignore = E501,W503,W504
|
2017-07-11 00:22:55 +03:00
|
|
|
banned-modules = json = use from rest_framework.utils import json!
|
2018-02-14 23:12:14 +03:00
|
|
|
|
|
|
|
[isort]
|
|
|
|
skip=.tox
|
|
|
|
atomic=true
|
|
|
|
multi_line_output=5
|
2020-08-17 23:26:56 +03:00
|
|
|
extra_standard_library=types
|
2019-05-02 03:42:10 +03:00
|
|
|
known_third_party=pytest,_pytest,django,pytz,uritemplate
|
|
|
|
known_first_party=rest_framework,tests
|
2018-05-08 16:02:45 +03:00
|
|
|
|
|
|
|
[coverage:run]
|
|
|
|
# NOTE: source is ignored with pytest-cov (but uses the same).
|
|
|
|
source = .
|
|
|
|
include = rest_framework/*,tests/*
|
|
|
|
branch = 1
|
2018-06-25 00:56:31 +03:00
|
|
|
|
2018-05-08 16:02:45 +03:00
|
|
|
[coverage:report]
|
|
|
|
include = rest_framework/*,tests/*
|
2018-06-25 00:56:31 +03:00
|
|
|
exclude_lines =
|
|
|
|
pragma: no cover
|
|
|
|
raise NotImplementedError
|
2024-02-28 14:01:49 +03:00
|
|
|
|
|
|
|
[codespell]
|
|
|
|
# Ref: https://github.com/codespell-project/codespell#using-a-config-file
|
|
|
|
skip = */kickstarter-announcement.md,*.js,*.map,*.po
|
|
|
|
ignore-words-list = fo,malcom,ser
|