mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 17:47:04 +03:00
67b5093ca5
* Use `--strict-markers` instead of `--strict`, as per this warning: ``` /.../_pytest/config/__init__.py:1183: PytestDeprecationWarning: The --strict option is deprecated, use --strict-markers instead. ``` * Remove config option 'testspath' - pytest is logging a warning about this being unknown: ``` /.../_pytest/config/__init__.py:1233: PytestConfigWarning: Unknown config option: testspath ``` I can't find any reference to it in the pytest docs or changelog.
30 lines
621 B
INI
30 lines
621 B
INI
[metadata]
|
|
license_file = LICENSE.md
|
|
|
|
[tool:pytest]
|
|
addopts=--tb=short --strict-markers -ra
|
|
|
|
[flake8]
|
|
ignore = E501,W504
|
|
banned-modules = json = use from rest_framework.utils import json!
|
|
|
|
[isort]
|
|
skip=.tox
|
|
atomic=true
|
|
multi_line_output=5
|
|
extra_standard_library=types
|
|
known_third_party=pytest,_pytest,django,pytz,uritemplate
|
|
known_first_party=rest_framework,tests
|
|
|
|
[coverage:run]
|
|
# NOTE: source is ignored with pytest-cov (but uses the same).
|
|
source = .
|
|
include = rest_framework/*,tests/*
|
|
branch = 1
|
|
|
|
[coverage:report]
|
|
include = rest_framework/*,tests/*
|
|
exclude_lines =
|
|
pragma: no cover
|
|
raise NotImplementedError
|