Add git hooks for pre-commit flake8

The hooks need to be installed.
The way to do it is like this:

  1. pip install -r requirements.txt (install all requirements)
  2. pre-commit install (install git hooks)

After this every commited file will be checked for style and also fixed if possible
If flake8 don’t like your file the commit will fail and print flake8 errors to fix
If yapf changed your file the commit will fail and the file will need to “git add” again
https://github.com/PythonFreeCourse/calendar/pull/224

2 לייקים