In this video I show how to configure pre-commit in a Python project to format and check the code. I will show 4 tools which will run automatically with the Git hooks.
This is the sixth video of a serie where I show how to build a backend with Flask and Python : • Flask
Content:
How to configure pre-commit with the Git hooks. This way, the pre-commit actions will be run before each commit;
How to configure isort into pre-commit. What is isort and how it works;
How to add black to pre-commit. How black format your code;
How to add mypy to pre-commit. What is mypy and what is the static type check;
How to add flake8 and configure it in pre-commit. Which checks does flake8;
How to configure those tools in the pyproject.toml file.
Repository: https://github.com/serlesen/backend-f...
My NEW eBook: https://bit.ly/46AOCU5
Python Courses: https://coddy.tech/courses/python_fun...
Blog: https://bit.ly/47ornJL
LinkedIn: https://bit.ly/41Nn61q
Icons:
Check by Zahroe from NounProject.com
Cross by alvianwijaya from NounProject.com
On this page of the site you can watch the video online 4 Tools to Format & Check your Code with Pre-Commit | Flask and Python Backend #6 with a duration of hours minute second in good quality, which was uploaded by the user The Dev World - by Sergio Lema 11 April 2022, share the link with friends and acquaintances, this video has already been watched 2,290 times on youtube and it was liked by 52 viewers. Enjoy your viewing!