mirror of
https://github.com/encode/django-rest-framework.git
synced 2026-01-07 09:10:55 +03:00
Cleanup pre-commit config by moving codespell configuration to pyproject.toml (#9864)
This commit is contained in:
parent
d881b27811
commit
3f190b7ddc
|
|
@ -26,16 +26,10 @@ repos:
|
|||
additional_dependencies:
|
||||
- black==25.9.0
|
||||
- repo: https://github.com/codespell-project/codespell
|
||||
# Configuration for codespell is in .codespellrc
|
||||
# Configuration for codespell is in pyproject.toml
|
||||
rev: v2.4.1
|
||||
hooks:
|
||||
- id: codespell
|
||||
args: [
|
||||
"--builtin", "clear,rare,code,names,en-GB_to_en-US",
|
||||
"--ignore-words", "codespell-ignore-words.txt",
|
||||
"--skip", "*.css",
|
||||
]
|
||||
exclude: locale|kickstarter-announcement.md|coreapi-0.1.1.js
|
||||
additional_dependencies:
|
||||
# python doesn't come with a toml parser prior to 3.11
|
||||
- "tomli; python_version < '3.11'"
|
||||
|
|
|
|||
|
|
@ -4,4 +4,7 @@ IAM
|
|||
endcode
|
||||
deque
|
||||
thead
|
||||
lets
|
||||
lets
|
||||
fo
|
||||
malcom
|
||||
ser
|
||||
|
|
@ -107,8 +107,9 @@ known_first_party = [ "rest_framework", "tests" ]
|
|||
|
||||
[tool.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"
|
||||
skip = "*/kickstarter-announcement.md,*.js,*.map,*.po,*.css,locale"
|
||||
ignore-words = "codespell-ignore-words.txt"
|
||||
builtin = "clear,rare,code,names,en-GB_to_en-US"
|
||||
|
||||
[tool.pyproject-fmt]
|
||||
max_supported_python = "3.14"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user