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
Nesta página do site você pode assistir ao vídeo on-line 4 Tools to Format & Check your Code with Pre-Commit | Flask and Python Backend #6 duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário The Dev World - by Sergio Lema 11 Abril 2022, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 2,290 vezes e gostou 52 espectadores. Boa visualização!