Skip to content
Open
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
15 changes: 15 additions & 0 deletions .codespellrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[codespell]
# Ref: https://github.com/codespell-project/codespell#using-a-config-file
skip = .git,*.svg,*.css,*.min.*,*.ai,locale,package-lock.json,vendor,migrations,CHANGELOG.rst,common,media/javascript,*/search/tests/data/*,.codespellrc
check-hidden = true
# Ignore camelCase and PascalCase identifiers, URLs, and very long lines (minified)
# Also: specific patterns in test fixtures and docs examples
ignore-regex = \b[a-z]+[A-Z]\w*\b|\b[A-Z][a-z]+[A-Z]\w*\b|https?://\S+|.{300,}|"pyton\b|\|(ative|ment)\||"Hel" will match\b|ative: ''|help_text *=.*|\bOre\b|\bWile E\. Coyote\b|\bre-(used?|using|declare)\b|\bpre-selected\b
# fo,te - ISO 639 language codes (Faroese, Telugu)
# astroid - Python AST library name
# requestor - used in RTD codebase
# syntaxt - Django model field, changing requires DB migration
# DED - Django Elasticsearch DSL abbreviation
# indx - intentional non-matching search query in tests
# ore - used in example diff output
ignore-words-list = fo,te,astroid,requestor,syntaxt,DED,indx,ore
6 changes: 6 additions & 0 deletions pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ repos:
# Run the formatter.
- id: ruff-format

- repo: https://github.com/codespell-project/codespell
# Configuration for codespell is in .codespellrc (symlinked from common/)
rev: v2.4.1
hooks:
- id: codespell

- repo: https://github.com/errata-ai/vale
rev: v3.13.0
hooks:
Expand Down