Skip to content
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 respect --from-ref / --to-ref #103

Closed
KangOl opened this issue Dec 3, 2020 · 1 comment · Fixed by #109
Closed

pre-commit hook does not respect --from-ref / --to-ref #103

KangOl opened this issue Dec 3, 2020 · 1 comment · Fixed by #109
Assignees
Labels
bug Something isn't working
Milestone

Comments

@KangOl
Copy link

KangOl commented Dec 3, 2020

When running darker through pre-commit, it ignores the --from-ref and --to-ref arguments.

These 2 commands should behave the same.

pre-commit run darker --from-ref HEAD~1 --to-ref HEAD
darker --revision HEAD~1..HEAD

The pre-commit arguments are exposed via the environment variables PRE_COMMIT_FROM_REF and PRE_COMMIT_TO_REF

@akaihola
Copy link
Owner

akaihola commented Dec 4, 2020

Thanks @KangOl for your bug report! We'll definitely fix this for the next release.

Heads up @sherbie @samoylovfp @Pacu2 @CorreyL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants