Skip to content

Conversation

@Nidhijha-10
Copy link

@Nidhijha-10 Nidhijha-10 commented Dec 9, 2025

This PR improves the documentation for how Black handles exclude patterns when
used with pre-commit. Since pre-commit passes file paths directly to Black,
Black's normal exclude rules do not apply unless --force-exclude is used.

The updated section explains:

@cobaltt7 cobaltt7 added the skip news Pull requests that don't need a changelog entry. label Dec 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news Pull requests that don't need a changelog entry.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document using pre-commit and how --force-exclude can help

2 participants