-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pre-commit hook does not work for .pyi files #402
Labels
T: enhancement
New feature or request
Comments
👋 hi again :) probably best for black to stick to |
I tend to agree with @asottile here. Sounds like once pre-commit/pre-commit#607 is done, we should add |
cooperlees
pushed a commit
that referenced
this issue
Dec 31, 2020
Since pre-commit 2.9.0 (2020-11-21), the types_or key can be used to match multiple disparate file types. For more upstream details, see: pre-commit/pre-commit#607 Add the minimum_pre_commit_version to require pre-commit 2.9.0+. Fixes #402
noxan
pushed a commit
to noxan/black
that referenced
this issue
Jun 6, 2021
Since pre-commit 2.9.0 (2020-11-21), the types_or key can be used to match multiple disparate file types. For more upstream details, see: pre-commit/pre-commit#607 Add the minimum_pre_commit_version to require pre-commit 2.9.0+. Fixes psf#402
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Because of this issue pre-commit/identify#51
For now I can solve this by overriding
files
andtypes
in.pre-commit-config.yaml
:I would recommend that
black
usefiles
instead oftypes
until this issue is resolved inidentify
andpre-commit
.Operating system: osx
Python version: 3.6
Black version: 18.6b4
Does also happen on master: yep
The text was updated successfully, but these errors were encountered: