Skip to content
This repository has been archived by the owner on Jan 19, 2023. It is now read-only.

Pass in differential arguments? #9

Closed
chrisspen opened this issue Aug 9, 2019 · 2 comments
Closed

Pass in differential arguments? #9

chrisspen opened this issue Aug 9, 2019 · 2 comments
Labels

Comments

@chrisspen
Copy link

By default, this hook runs Yapf on the entire codebase instead of only the files that have changed.

Is there any way to configure it differently? For example, by passing in a list of the Python files to Yapf changed since the last commit, so it doesn't waste it's time re-processing unchanged files?

@asottile
Copy link
Member

asottile commented Aug 9, 2019

hmm that's not how pre-commit works, can you show a reproduction?

pre-commit will only pass the staged changed files to the hook on commit

@asottile
Copy link
Member

closing due to inactivity

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

2 participants