Skip to content

Commit 7eb45d1

Browse files
committed
config(pre-commit): Exclude *.age files
1 parent 1e5405e commit 7eb45d1

File tree

1 file changed

+22
-18
lines changed

1 file changed

+22
-18
lines changed

checks/pre-commit.nix

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -49,27 +49,31 @@
4949
check.enable = false;
5050

5151
# Enable commonly used formatters
52-
settings.hooks = {
53-
# Basic whitespace formatting
54-
end-of-file-fixer.enable = true;
55-
editorconfig-checker.enable = true;
52+
settings = {
53+
excludes = [ "^.*\.age$" ];
5654

57-
# *.nix formatting
58-
nixfmt-rfc-style.enable = true;
55+
hooks = {
56+
# Basic whitespace formatting
57+
end-of-file-fixer.enable = true;
58+
editorconfig-checker.enable = true;
5959

60-
# *.rs formatting
61-
rustfmt.enable = true;
60+
# *.nix formatting
61+
nixfmt-rfc-style.enable = true;
6262

63-
# *.{js,jsx,ts,tsx,css,html,md,json} formatting
64-
prettier = {
65-
enable = true;
66-
args = [
67-
"--check"
68-
"--list-different=false"
69-
"--log-level=warn"
70-
"--ignore-unknown"
71-
"--write"
72-
];
63+
# *.rs formatting
64+
rustfmt.enable = true;
65+
66+
# *.{js,jsx,ts,tsx,css,html,md,json} formatting
67+
prettier = {
68+
enable = true;
69+
args = [
70+
"--check"
71+
"--list-different=false"
72+
"--log-level=warn"
73+
"--ignore-unknown"
74+
"--write"
75+
];
76+
};
7377
};
7478
};
7579
};

0 commit comments

Comments
 (0)