-
Notifications
You must be signed in to change notification settings - Fork 20
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 with stages: [commit]
#144
Comments
Hi, @LeskoIam, thanks for reporting this. Are you able to reproduce this problem when running docstr-coverage manually (outside of pre-commit hooks)? |
Hi @HunterMcGushion and thanks for looking into this! I can reproduce this by manually running the hook, e.g.:
A few details
# .pre-commit-config.yaml
repos:
- repo: meta
hooks:
- id: identity
- repo: https://github.com/HunterMcGushion/docstr_coverage
rev: v2.3.2
hooks:
- id: docstr-coverage
args: ["--verbose", "3", "--percentage-only"]
verbose: true
stages: [commit]
|
Hey! I forked the repo and added test for single .py file in directory which is passing without a problem. So I think the problem is with pre-commit package. I'll try to add specific tests for pre-commit hooks. |
When using docstr-coverage with pre-commit and using
stages: [commit]
e.g.:.docstr.yaml
even though *.py files are present in commit
docstr-coverage passes with warning
Any input on this? Thank you!
The text was updated successfully, but these errors were encountered: