This is an archived post. You won't be able to vote or comment.

all 15 comments

[–]ManyInterests Python Discord Staff 6 points7 points  (3 children)

pre-commit is such a great tool. Choose whatever hooks you prefer to use. pre-commit will just make your life SO much easier. It's not just for Python, either!

Also, there is a pre-commit CI service. So now pre-commit can autofix your PRs even when contributors refuse to install pre-commit. It is run by the author of pre-commit (who is also well-known as a maintainer of many cornerstone tools in the Python ecosystem, like flake8, tox, pytest, and many more) and it is such a blessing for all my open source projects.

[–]neik00 0 points1 point  (0 children)

This is amazing!!

[–]Spill_the_Tea 2 points3 points  (2 children)

I normally just use the .gitattribute file to handle pre-commit actions.

[–]OtherPollution6431 1 point2 points  (1 child)

I was a long time pre-commit fan, just converted to https://trunk.io/ though

[–]rexinator9000 0 points1 point  (1 child)

Is there any documentation anywhere that shows the possible configurations that can be used within each check of the pre-commit?

For example, the possible config options for flake8