New option: --per-file-ignores by un-pogaz · Pull Request #3675 · codespell-project/codespell · GitHub
Skip to content

New option: --per-file-ignores#3675

Open
un-pogaz wants to merge 3 commits into
codespell-project:mainfrom
un-pogaz:per-file-ignores
Open

New option: --per-file-ignores#3675
un-pogaz wants to merge 3 commits into
codespell-project:mainfrom
un-pogaz:per-file-ignores

Conversation

@un-pogaz

Copy link
Copy Markdown

Close #3673

This implementation use nargs=2 to pass the file glob and the words list with a pair of arguments, rather than try to extract the data from a single complexe string. Also use action="append" so that several --per-file-ignores can be provided in one comand. This need to be a bit tricky to rebuild the resulting dict throught the config file.
Done a larger edit than targeted because of various Ruff warning about too many statements and complexity.

@Kristinita

Copy link
Copy Markdown

@un-pogaz

Copy link
Copy Markdown
Author

Comment thread README.rst Outdated
Comment thread README.rst Outdated
Co-authored-by: Loymdayddaud <145969603+TheGiraffe3@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New setting: per-file-ignores to ignores specific words into specific files

4 participants