Flake environment with pre-commit hook; CI to enforce them. #2
No reviewers
Labels
No labels
blocked
project-management
question
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Fediversity/Fediversity#2
Loading…
Reference in a new issue
No description provided.
Delete branch "pre-commit-and-ci"
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?
This PR introduces a basic flake environment and a basic CI. The flake contains very little; basically only a pre-commit hook for Nix formatting and Nix dead code detection. The CI only enforces those. This is meant as a building stone for other later PRs.
services/
subdirectory 1fb69a76bfWorks. Shameless plug, because I think pre-commit is quite slow and needlessly complex: I've wrote a very thin Nix layer around setting Git hooks directly, which can be combined with treefmt-nix. Maybe for one day. (My thing still needs options to do more hooks than just pre-commit)
Ooh, that would be nice, because I agree with the statement that “pre-commit is quite slow and needlessly complex”. I will not merge the PR right away because, somehow, the CI is not triggering, and I don't understand why. It might be just a Forgejo repository configuration issue, because it previously worked in Fediversity/simple-nixos-fediverse#25. I will investigate.
0bcaf844a4
toa888540580