Pre-commit Hooks #208
SagiPolaczek
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello Fusers!
Recently we (thanks @ishita1805 ) added the support of pre-commit hooks to ease the use of
black,flake8andmypy.The pre-commit hook scripts are useful for identifying and fix simple issues format before submission to code review. So next time you won't be needed to remember to
blackthe code before pushing that commit.Installation:
First make sure you have the pre-commit module:
Now Install the git hook scripts:
Usage:
The hook script will run automatically when running a commit.
Example for a successful commit:
Example for a failure:
Happy Researching 🔬
Beta Was this translation helpful? Give feedback.
All reactions