forked from Fachschaft/nixConfig
Compare commits
3 commits
0446976554
...
6fdeaf9f85
Author | SHA1 | Date | |
---|---|---|---|
6fdeaf9f85 | |||
b48ccf3dfe | |||
0dd73e6adb |
2 changed files with 5 additions and 2 deletions
|
@ -293,7 +293,9 @@ So here are some Guidelines.
|
||||||
|
|
||||||
## Coding style and linting.
|
## Coding style and linting.
|
||||||
If you run `nix flake check` there are automated checks in place, please make sure to pass them.
|
If you run `nix flake 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
|
There is also a code autoformatter (`alejandra`) incorporated into those. If you want to run
|
||||||
|
it you can do so over the development shell or by running `nix fmt`.
|
||||||
|
You can also install
|
||||||
them into your local git repository as pre-commit hooks, and setting up a shell that has
|
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
|
even more tooling by running `nix develop`. That will give you a bash in which you can run
|
||||||
all the checks manually `pre-commit run -a`. This will also run the autoformatter.
|
all the checks manually `pre-commit run -a`. This will also run the autoformatter.
|
||||||
|
|
|
@ -26,7 +26,6 @@
|
||||||
];
|
];
|
||||||
in {
|
in {
|
||||||
check.enable = true;
|
check.enable = true;
|
||||||
pkgs = inputs'.nixpkgs.legacyPackages;
|
|
||||||
settings = {
|
settings = {
|
||||||
# for some reason statix takes it config differently than all the other hooks.
|
# for some reason statix takes it config differently than all the other hooks.
|
||||||
settings.statix = {
|
settings.statix = {
|
||||||
|
@ -45,6 +44,8 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
formatter = pkgs.alejandra;
|
||||||
|
|
||||||
# Per-system attributes can be defined here. The self' and inputs'
|
# Per-system attributes can be defined here. The self' and inputs'
|
||||||
# module parameters provide easy access to attributes of the same
|
# module parameters provide easy access to attributes of the same
|
||||||
# system.
|
# system.
|
||||||
|
|
Loading…
Reference in a new issue