Skip to content

Move all codespell configuration in pyproject.toml - #9864

Merged
browniebroke merged 1 commit into
encode:mainfrom
p-r-a-v-i-n:cleanup
Jan 5, 2026
Merged

browniebroke merged 1 commit into
encode:mainfrom
p-r-a-v-i-n:cleanup

Conversation

@p-r-a-v-i-n

Copy link
Copy Markdown
Contributor

Since we already have some configuration for codespell in pyproject.toml. and another configuration in pre-commit-config.yml.

moving codespell configuration to one centralized file would simply things and it will keep the pre-commit-config.yml clean

Comment thread pyproject.toml
[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"

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

Copy link
Copy Markdown
Contributor Author

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.

Comment thread .pre-commit-config.yaml
- 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
Copy Markdown
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 ?

@p-r-a-v-i-n p-r-a-v-i-n changed the title Move codespell configuration to pyproject.toml Cleanup pre-commit config by moving codespell configuration to pyproject.toml Jan 3, 2026
@browniebroke browniebroke changed the title Cleanup pre-commit config by moving codespell configuration to pyproject.toml Move all codespell configuration in pyproject.toml Jan 5, 2026
@browniebroke
browniebroke merged commit 3f190b7 into encode:main Jan 5, 2026
7 checks passed
@p-r-a-v-i-n
p-r-a-v-i-n deleted the cleanup branch January 5, 2026 15:49
HosseinSayyedMousavi pushed a commit to HosseinSayyedMousavi/django-rest-framework that referenced this pull request Oct 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants