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

Display durations for hooks #1227

Closed
blueyed opened this issue Nov 22, 2019 · 1 comment
Closed

Display durations for hooks #1227

blueyed opened this issue Nov 22, 2019 · 1 comment

Comments

@blueyed
Copy link

blueyed commented Nov 22, 2019

Using pre-commit often takes 5+s, which is kind of a bummer for gcma ("git commit --amend" "$@" ).

Therefore I'd like to be aware/notified about the slowest hooks, to potentially improve/remove them then.

It would be nice if pre-commit would display durations by default already - given that each hook takes a line of terminal output already it should be ok to add it there.

For reference: I am dispaying total durations already with 77aab5e ("quiet by default").

@asottile
Copy link
Member

Dupe #1144

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants