mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-25 02:53:58 +03:00
fb03dd977e
* Do not ignore .codespellrc from git * Add rudimentary codespell config * Add pre-commit definition for codespell * more custom skips for codespell - long lines, lines with ú etc * [DATALAD RUNCMD] Do interactive fixing of some ambigous typos === Do not change lines below === { "chain": [], "cmd": "codespell -w -i 3 -C 2 ./docs/community/release-notes.md", "exit": 0, "extra_inputs": [], "inputs": [], "outputs": [], "pwd": "." } ^^^ Do not change lines above ^^^ * BF: pre-commit needs to duplicate some of the skips for codespell Known issue -- yet to be addressed: https://github.com/codespell-project/codespell/issues/3196 * Move codespell configuration into setup.cfg
37 lines
918 B
INI
37 lines
918 B
INI
[metadata]
|
|
license_files = LICENSE.md
|
|
|
|
[tool:pytest]
|
|
addopts=--tb=short --strict-markers -ra
|
|
testspath = tests
|
|
filterwarnings = ignore:CoreAPI compatibility is deprecated*:rest_framework.RemovedInDRF317Warning
|
|
|
|
[flake8]
|
|
ignore = E501,W503,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
|
|
|
|
[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
|