diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c37da7449..8939dd3db 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -25,3 +25,9 @@ repos: exclude: ^(?!docs).*$ additional_dependencies: - black==23.1.0 +- repo: https://github.com/codespell-project/codespell + # Configuration for codespell is in .codespellrc + rev: v2.2.6 + hooks: + - id: codespell + exclude: locale|kickstarter-announcement.md|coreapi-0.1.1.js diff --git a/docs/community/release-notes.md b/docs/community/release-notes.md index 71f29e5c0..043c19879 100644 --- a/docs/community/release-notes.md +++ b/docs/community/release-notes.md @@ -946,7 +946,7 @@ See the [release announcement][3.6-release]. * description.py codes and tests removal. ([#4153][gh4153]) * Wrap guardian.VERSION in tuple. ([#4149][gh4149]) * Refine validator for fields with kwargs. ([#4146][gh4146]) -* Fix None values representation in childs of ListField, DictField. ([#4118][gh4118]) +* Fix None values representation in children of ListField, DictField. ([#4118][gh4118]) * Resolve TimeField representation for midnight value. ([#4107][gh4107]) * Set proper status code in AdminRenderer for the redirection after POST/DELETE requests. ([#4106][gh4106]) * TimeField render returns None instead of 00:00:00. ([#4105][gh4105]) diff --git a/setup.cfg b/setup.cfg index 487d99db9..e7e288816 100644 --- a/setup.cfg +++ b/setup.cfg @@ -29,3 +29,8 @@ 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