-
Notifications
You must be signed in to change notification settings - Fork 279
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
Add precommit hooks for flake8, isort and black (YTEP0037 5/6) #2600
Add precommit hooks for flake8, isort and black (YTEP0037 5/6) #2600
Conversation
14ff91a
to
233f91a
Compare
I've done precommit hooks before but only for my personal repos. What is the process for installing these locally? After you clone, do you run |
Yes that’s it. I don’t think it needs to be mandatory though, just a nice option to offer to contributors if we start asking them to use black. |
0bb60a2
to
084039c
Compare
eda82be
to
33eda76
Compare
note that we already merged the corresponding documentation before this ! |
33eda76
to
3853049
Compare
I'm merging this because it's covered in YTEP-0037 and it makes things a lot easier for folks to get stuff to pass. |
PR Summary
As support to #2592 and #2596, add a precommit hook configuration file to allow devs to install isort, black and flake8 as hooks locally.