-
-
Notifications
You must be signed in to change notification settings - Fork 25
/
.pre-commit-hooks.yaml
29 lines (26 loc) · 1.22 KB
/
.pre-commit-hooks.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# https://pre-commit.com/#creating-new-hooks
- id: nitpick
name: "nitpick fix (auto fixing files)"
description: "Fix configuration files (TOML/INI/JSON/etc.) directly, according to the Nitpick style"
entry: nitpick fix
language: python
- id: nitpick-suggest
name: "nitpick init --suggest (auto fixing files)"
description: "Suggest new Nitpick styles based on the files in the project root (skipping Git ignored files)"
entry: nitpick init --fix --suggest
language: python
# This hook should NOT be run for changed Git files, otherwise they will be considered style URLS
# and will be added to [tool.nitpick]style in pyproject.toml
pass_filenames: false
always_run: true
# This hook is kept for compatibility (or if one wants to be explicit): "nitpick" does the same as "nitpick-fix" now
- id: nitpick-fix
name: "nitpick fix (auto fixing files)"
description: "Fix configuration files (TOML/INI/JSON/etc.) directly, according to the Nitpick style"
entry: nitpick fix
language: python
- id: nitpick-check
name: "nitpick check (check files only)"
description: "Only check configuration files (TOML/INI/JSON/etc.) and print the violations, according to the Nitpick style"
entry: nitpick check
language: python