Increase Python code quality with pre-commit

preview_player
Показать описание
In this video we show you how we use pre-commit to automatically run black, flake8, isort and pyupgrade before committing any code.

This is a serious time saver and will make your code cleaner / more consistent.

The yaml file we showed and are using in our latest projects:

---
Check out our brand new Flashcards here:

And if you want to work with us as your coaches, check out the PDM program here:

To not miss any future video, hit subscribe here:

Subtitles created with IronScribe, our new transcription service:

Thanks for watching!
Рекомендации по теме
Комментарии
Автор

Nice! Another step less to worry about. Is there an advantage to this over running these scripts on file save?

davidjnevin
Автор

I have a small question if we don't maintain the releases and tags, How we can implement the same?

vinodkumar-rcvm
Автор

Nice, I use pylint + sonarqube for this check before commit

Maxim
Автор

we can also use to Makefile no ?
Instead pre-commit

kirillmelnikov
visit shbcf.ru