4 Tools to Format & Check your Code with Pre-Commit | Flask and Python Backend #6

Опубликовано: 11 Апрель 2022
на канале: The Dev World - by Sergio Lema
2,290
52

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


На этой странице сайта вы можете посмотреть видео онлайн 4 Tools to Format & Check your Code with Pre-Commit | Flask and Python Backend #6 длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь The Dev World - by Sergio Lema 11 Апрель 2022, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 2,290 раз и оно понравилось 52 зрителям. Приятного просмотра!