Fix the files pattern in Poetry pre-commit hooks#4907
Fix the files pattern in Poetry pre-commit hooks#4907neersighted merged 1 commit intopython-poetry:masterfrom
Conversation
|
I tested this myself and can confirm the issue and that the fix is working. As the author of the PR #2511 which introduced this I dunno why this went undetected. EDIT: pre-commit version 2.13 on linux |
|
Thank you for your check. |
26651c8 to
da632ad
Compare
|
Why was black failing on Edit: probably this PR has been rebased. Thanx |
|
A quirk of pre-commit -- an earlier PR did not touch Might be a bug in pre-commit.ci (not sure if it's expected or not), but it's certainly an edge case. |
|
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Pull Request Check List
Resolves: #2511 (comment)
Affected hooks:
What a surprise. Poetry-based pre-commit hooks are going to be backed into Poetry itself! 🎉
I've just given them a spin this way:
but it didn't work. The output is:
It looks like
poetry.lockdoesn't match thefilespattern and skips the files.This quick PR fix this problem.
Tests pointing at my PR with
pre-commit 2.16.0on a *nix enviroment:Hope this helps