pre-commit #23
No reviewers
Labels
No labels
Kind/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Fachschaft/nixConfig#23
Loading…
Reference in a new issue
No description provided.
Delete branch "nerf/nixConfig: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?
Consistent code style and code linting. This pull request also introduces nix checks (available with
nix flake check
), that checks thoseconditions. Also introduces a shell (available with
nix develop
that sets up git hooks and pre-commit to run the formatter and checksby hand, as well as automatically on commit).
2634f89d6f
toe5bce573da
e5bce573da
to563e4708f4
WIP: pre-committo pre-commitNot a full review yet.
@ -281,0 +287,4 @@
Like with all FS projects, you are welcome to contribute. Work is done usually by the person that is most annoyed
by the circumstances or by the person that didn't run fast enough. So we are happy if we get help. That doesn't
mean that we don't need to have some level of quality, people after us needs to work with it. It is live infrastructure
and downtime hurts someone (and in the wrong moment even really bad (Matheball ticket sales for example).
missing closing parenthesis
@ -281,0 +292,4 @@
So here are some Guidelines.
## Coding style and linting.
If you run `nix check` there are automated checks in place, please make sure to pass them.
If I run that, I get
ahh of course that should be
nix flake check
@ -281,0 +295,4 @@
If you run `nix check` there are automated checks in place, please make sure to pass them.
There is also a code autoformatter (`alejandra`) incorporated into those. You can also install
them into your local git repository as pre-commit hooks, and setting up a shell that has
even more tooling by running `nix develop`. That will give you a bash in which you can run
More info for reference:
That is weird. To cite the nix reference
That matches the paths from your
nix flake show
but not from the error message of yournix develop
. So I think that is a problem on your side. What is your nix version?There are two old related issues error message bug and change output names
You might try
nix develop .#default
to set the default explicitlyThe first link suggests that this has been resolved in version
2.7.0
.2.18.0
is the current version, I think you should upgrade, did thenix develop .#default
work?563e4708f4
to0446976554
pre-committo WIP: pre-commitI noticed something I might want to change, so marking is as WIP for now.
0446976554
to6fdeaf9f85
WIP: pre-committo pre-commit6fdeaf9f85
to715c10c418
pre-committo WIP: pre-commitWIP: pre-committo pre-commit