Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we keep this comment ?

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'"
Expand Down
5 changes: 4 additions & 1 deletion codespell-ignore-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@ IAM
endcode
deque
thead
lets
lets
fo
malcom
ser
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Copy link
Contributor Author

@p-r-a-v-i-n p-r-a-v-i-n Jan 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since we have dedicate file keep these words. i removed ignore-words-list from here. add those in codespell-ignore-words.txt.

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"
Expand Down
Loading