This commit is contained in:
parent
1d9dd09138
commit
c8ac1786bd
2 changed files with 12 additions and 5 deletions
|
@ -11,12 +11,11 @@ repos:
|
|||
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: nixpkgs-fmt
|
||||
- id: nix-fmt
|
||||
name: Check nix formatting
|
||||
entry: nix fmt
|
||||
language: system
|
||||
files: .*\.nix$
|
||||
args: [-c]
|
||||
stages: [pre-commit]
|
||||
|
||||
- id: prettier
|
||||
|
@ -24,7 +23,7 @@ repos:
|
|||
entry: prettier
|
||||
language: system
|
||||
files: .*\.(css|scss|js|ts|yaml)$
|
||||
args: [-c]
|
||||
args: [--write]
|
||||
stages: [pre-commit]
|
||||
|
||||
- id: typos
|
||||
|
@ -34,3 +33,11 @@ repos:
|
|||
files: .*
|
||||
exclude: .*\.(png|jpg|jpeg|age)
|
||||
stages: [pre-commit]
|
||||
|
||||
- id: deadnix
|
||||
name: Check for dead nix code
|
||||
entry: deadnix
|
||||
language: system
|
||||
files: .+\.nix$
|
||||
args: ["-e", "-l"]
|
||||
stages: [pre-commit]
|
||||
|
|
|
@ -72,9 +72,9 @@
|
|||
devShells.default = pkgs.mkShell {
|
||||
buildInputs = with pkgs; [
|
||||
pre-commit
|
||||
nixfmt-rfc-style
|
||||
nodePackages.prettier
|
||||
typos
|
||||
deadnix
|
||||
inputs'.agenix.packages.default
|
||||
];
|
||||
shellHook = ''
|
||||
|
|
Loading…
Add table
Reference in a new issue