build: use lefthook for pre-commit #5248
Reference in New Issue
Block a user
No description provided.
Delete Branch "misc/pre-commit"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
update docs
update nix-shell to auto install
rework custom pre-commit hooks to integrate better
add dockerfile for lefthook and integrate into drone
add some more hooks for formatting and linting some files
5658b6edb4tocbae249287081e99b02fto41ced411b9777143422atoc0b59bed2fc0b59bed2ftod6e45ce0bcd6e45ce0bcto53369cf69c53369cf69ctoc060f560cdc060f560cdtobf5553f8aabf5553f8aato407c51e552So, this seems to work locally.
It fails in ci as this pr reformats .html files, and hence triggers the critical failure for adding .html files to repo.
This should not be a problem in future, and I think should just be ignored, and this pr merged over the failure.
It does add some extra install deps to the build process, but I think it is okay.
build: use lefthook for pre-committo WIP: build: use lefthook for pre-commitI went over the changes once - looking good.
c98e6dc7bdto7a594844fc7a594844fctof4d78d8cc8f4d78d8cc8tob0612524f3b0612524f3to85265b69aa85265b69aato8ae48eb3ed8ae48eb3edto65144188066514418806to3658122e993658122e99todda233f3c1dda233f3c1tof14a2a6044f14a2a6044to31ba7a1b49a855543ffato19f738abc619f738abc6to32ea77f0ee9e5faaebd8to70f516e15070f516e150toac86923c87ac86923c87toa413ea684da413ea684dtof45789a678f45789a678to1ffa4c6f071ffa4c6f07toda94f4145681ccc39242toc03a02b371WIP: build: use lefthook for pre-committo build: use lefthook for pre-commitc03a02b371to1868bffbe31868bffbe3toab6cc8a3f0ab6cc8a3f0to439aed1fd7@@ -20,4 +26,2 @@</xsl:element></xsl:element><xsl:element name="td"><xsl:value-of select="@amount"/> €my guess is, there was a good reason for adding the
 Mhere.My guess is that it is easier to type the escape code than copy and paste a non breaking space.
Also I think historically some of the build scripts and tooling could not handle this kind of thing well, but with the rewrite that is no longer an issue.
I will deploy it to test to see the changes.
My guess is that it is easier to type the escape code than copy and paste a non breaking space.
Also I think historically some of the build scripts and tooling could not handle this kind of thing well, but with the rewrite that is no longer an issue.
After a deploy on test there are no visible changes:
https://test.fsfe.org/donate/thankgnus-2025.en.html
https://fsfe.org/donate/thankgnus-2025.en.html
I think it is fine.
439aed1fd7toc2636d841ec2636d841eto330c5bc519