Skip to content

makader-32bc/git-hooks

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Instructions to start

STEPS:

Install flake8 and black python packages:

pip3 install flake8 black 

go to .git/hooks and create pre-commit file

touch pre-commit

Copy code from the pre-commit file and paste inside .git/hooks/pre-commit

Make the script executable

chmod 777 pre-commit

Run python file with flake8

flake8 app.y

Run python to check black

black --check app.py

Run python to format properly

black app.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published