Flake environment with pre-commit hook; CI to enforce them. #2
No reviewers
Labels
No labels
0 points
0.5 points
1 point
13 points
2 points
21 points
3 points
34 points
5 points
55 points
8 points
ambition
application-offering
ambition
configure-applications
ambition
front-end
ambition/install-applications
ambition
security
ambition
switch-host
ambition
update-applications
ambition
user-management
api service
blocked
component: fediversity panel
component: nixops4
documentation
estimation high: >3d
estimation low: <2h
estimation mid: <8h
infinite points
productisation
project-management
question
role: application developer
role: application operator
role: hosting provider
role: maintainer
security
technical debt
testing
type unclear
type: bug
type: deliverable
type: key result
type: objective
type: task
type: user story
user experience
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.
Works. 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.
0bcaf844a4toa888540580