How to create a Python package in 2022
I wish people would just forget about pre-commit, this thing is especially useless in a setting where a CI&#x2F;CD pipeline exists. It&#x27;s not that hard to write a simple Makefile or shellscript to run linters on push.<p>Pre-commit is one of the most annoying tools that have come into existence in recent years that everyone seems to be cargo-culting. It doesn&#x27;t play well with editors since in order to find the actual binary path, you&#x27;d have to open up a sqlite database to fish out the virtualenv pre-commit created. Pre-commit also increases maintenance burden, since its configuration is completely separate from your usual requirements-dev.txt&#x2F;pyproject.toml&#x2F;setup.cfg etc. If you have dev dependencies in one of these files because making your editors to find the pre-commit created binaries are hard, now you have to keep both versions in sync.<p>I really don&#x27;t see the point of any pre-commit hooks unless you are the one guy that doesn&#x27;t use a modern CI&#x2F;CD platform.