Commit 4d56242
committed
Simplify internal
Consolidates previous work from #533 and #536.
- Removes `before` and `after` from the `raw` config. These are not valid
pre-commit configuration options and should not be here.
- Removes code to filter out `before` and `after` from the `raw` config.
There's nothing to filter out if they're not in the config in the
first place.
- Set `id` to the attr name of the hook, instead of the `name`. This
corrects a mistake made in the module transition (#397). Technically,
a breaking change, but we haven't had feedback from the initial
mistake.
- Expose `id` in options.before/after code1 parent 4c8e75e commit 4d56242
2 files changed
+33
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
28 | 57 | | |
29 | 58 | | |
30 | | - | |
31 | 59 | | |
| 60 | + | |
32 | 61 | | |
33 | 62 | | |
34 | 63 | | |
| |||
202 | 231 | | |
203 | 232 | | |
204 | 233 | | |
205 | | - | |
206 | 234 | | |
207 | 235 | | |
208 | 236 | | |
209 | 237 | | |
210 | 238 | | |
211 | | - | |
212 | | - | |
| 239 | + | |
213 | 240 | | |
214 | 241 | | |
215 | 242 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
| |||
34 | 33 | | |
35 | 34 | | |
36 | 35 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
| 36 | + | |
54 | 37 | | |
55 | | - | |
| 38 | + | |
56 | 39 | | |
57 | 40 | | |
58 | 41 | | |
| |||
0 commit comments