Python Pre-Commit Hooks Setup in a single video!

preview_player
Показать описание
Hey everyone!

A one-stop-shop for setting up and configuring Python Pre-commit git hooks in one video. Adding it to a repo, setting it up and running hooks on each commit.

### 🎞Playlists 🎞###

### 📚Recommended Books 📚###

### 👨🏻‍💻 Social Media 👨🏻‍💻###

### 💻My Gear 💻###

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

Awesome video, mate.
Clean structured, well spoken and nice visual tutorial.
Subbed :)

Itsatarp
Автор

Thanks! :) Looking forward to seeing more content.

mahyar
Автор

thanks for this video, can i ask a question?
i have use it but when i run it with all files it said(( An error has occurred: InvalidConfigError:
.pre-commit-config.yaml is not a file))

raziyehnikookolah
Автор

How do i automate the process of 'pre-commit install' so whenever someone clones my repo, the hooks are already added for them in the .git folder?

jeetukumargupta
Автор

Amazing! This was really helpful. Thank you

abdulrahmanhashem
Автор

Hello Haydn, how can I apply this only to files with a .json extension?

generalzeedot
Автор

i installed pre-commit using pip but when I run pre-commit --version it shows error that "not recognized as the name of a cmdlet...."

ankitr
Автор

When I did the same, it is working but if someone else is trying to commit the pre commit hooks are not working for them. Do they need to install or do something

gareemadhingra
Автор

Hello Haydn, thanks for this super helpful video. Could I ask a question? How do you know which arguments are allowed for each hook? Is there a way to query this from command line?

pushkarkopparla
Автор

Hi Haydn, nice explanation. I have a request for pre-commit hooks with 2 parameters to pass. Could you please help !
1. If the file size being committed is more than CommitMaxFileSizeInMB, git should prevent the file(s) from commit.
2. Comma separated file paths. If the files committed are separated by commas, git should prevent the files from commit.

tennyson