@evilmartians/lefthook 1.13.5 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -22,7 +22,7 @@ A Git hooks manager for Node.js, Ruby, Python and many other types of projects.
22
22
  With **Go** (>= 1.25):
23
23
 
24
24
  ```bash
25
- go install github.com/evilmartians/lefthook@v1.13.5
25
+ go install github.com/evilmartians/lefthook@v2.0.0
26
26
  ```
27
27
 
28
28
  * or as a go tool
@@ -110,7 +110,9 @@ pre-commit:
110
110
  jobs:
111
111
  - name: lint backend
112
112
  glob: "*.rb" # glob filter
113
- exclude: '(^|/)(application|routes)\.rb$' # regexp filter
113
+ exclude:
114
+ - "*/application.rb"
115
+ - "*/routes.rb"
114
116
  run: bundle exec rubocop --force-exclusion {all_files}
115
117
  ```
116
118
 
@@ -275,6 +277,5 @@ Check [examples][examples]
275
277
  [config-run]: https://lefthook.dev/configuration/run.html
276
278
  [config-scripts]: https://lefthook.dev/configuration/Scripts.html
277
279
  [config-tags]: https://lefthook.dev/configuration/tags.html
278
- [config-skip_output]: https://lefthook.dev/configuration/skip_output.html
279
280
  [config-output]: https://lefthook.dev/configuration/output.html
280
281
  [usage-local-config]: https://lefthook.dev/examples/lefthook-local.html
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evilmartians/lefthook",
3
- "version": "1.13.5",
3
+ "version": "2.0.0",
4
4
  "description": "Simple git hooks manager",
5
5
  "main": "bin/index.js",
6
6
  "files": [
package/schema.json CHANGED
@@ -10,6 +10,12 @@
10
10
  "files": {
11
11
  "type": "string"
12
12
  },
13
+ "root": {
14
+ "type": "string"
15
+ },
16
+ "fail_text": {
17
+ "type": "string"
18
+ },
13
19
  "skip": {
14
20
  "oneOf": [
15
21
  {
@@ -43,12 +49,6 @@
43
49
  "type": "string"
44
50
  }
45
51
  },
46
- "env": {
47
- "additionalProperties": {
48
- "type": "string"
49
- },
50
- "type": "object"
51
- },
52
52
  "file_types": {
53
53
  "items": {
54
54
  "type": "string"
@@ -68,9 +68,6 @@
68
68
  "type": "string"
69
69
  }
70
70
  },
71
- "root": {
72
- "type": "string"
73
- },
74
71
  "exclude": {
75
72
  "oneOf": [
76
73
  {
@@ -79,14 +76,20 @@
79
76
  {
80
77
  "type": "array"
81
78
  }
82
- ]
79
+ ],
80
+ "items": {
81
+ "type": "string"
82
+ }
83
+ },
84
+ "env": {
85
+ "additionalProperties": {
86
+ "type": "string"
87
+ },
88
+ "type": "object"
83
89
  },
84
90
  "priority": {
85
91
  "type": "integer"
86
92
  },
87
- "fail_text": {
88
- "type": "string"
89
- },
90
93
  "interactive": {
91
94
  "type": "boolean"
92
95
  },
@@ -241,6 +244,15 @@
241
244
  "runner": {
242
245
  "type": "string"
243
246
  },
247
+ "root": {
248
+ "type": "string"
249
+ },
250
+ "files": {
251
+ "type": "string"
252
+ },
253
+ "fail_text": {
254
+ "type": "string"
255
+ },
244
256
  "glob": {
245
257
  "oneOf": [
246
258
  {
@@ -254,14 +266,18 @@
254
266
  "type": "string"
255
267
  }
256
268
  },
257
- "root": {
258
- "type": "string"
259
- },
260
- "files": {
261
- "type": "string"
262
- },
263
- "fail_text": {
264
- "type": "string"
269
+ "exclude": {
270
+ "oneOf": [
271
+ {
272
+ "type": "string"
273
+ },
274
+ {
275
+ "type": "array"
276
+ }
277
+ ],
278
+ "items": {
279
+ "type": "string"
280
+ }
265
281
  },
266
282
  "tags": {
267
283
  "items": {
@@ -290,16 +306,6 @@
290
306
  "stage_fixed": {
291
307
  "type": "boolean"
292
308
  },
293
- "exclude": {
294
- "oneOf": [
295
- {
296
- "type": "string"
297
- },
298
- {
299
- "type": "array"
300
- }
301
- ]
302
- },
303
309
  "skip": {
304
310
  "oneOf": [
305
311
  {
@@ -426,7 +432,7 @@
426
432
  "type": "object"
427
433
  }
428
434
  },
429
- "$comment": "Last updated on 2025.09.27.",
435
+ "$comment": "Last updated on 2025.10.01.",
430
436
  "properties": {
431
437
  "min_version": {
432
438
  "type": "string",
@@ -450,7 +456,7 @@
450
456
  "type": "string",
451
457
  "description": "Provide an rc file - a simple sh script"
452
458
  },
453
- "skip_output": {
459
+ "output": {
454
460
  "oneOf": [
455
461
  {
456
462
  "type": "boolean"
@@ -458,18 +464,19 @@
458
464
  {
459
465
  "type": "array"
460
466
  }
461
- ]
467
+ ],
468
+ "description": "Manage verbosity by skipping the printing of output of some steps"
462
469
  },
463
- "output": {
470
+ "colors": {
464
471
  "oneOf": [
465
472
  {
466
473
  "type": "boolean"
467
474
  },
468
475
  {
469
- "type": "array"
476
+ "type": "object"
470
477
  }
471
478
  ],
472
- "description": "Manage verbosity by skipping the printing of output of some steps"
479
+ "description": "Enable disable or set your own colors for lefthook output"
473
480
  },
474
481
  "extends": {
475
482
  "items": {
@@ -485,17 +492,6 @@
485
492
  "assert_lefthook_installed": {
486
493
  "type": "boolean"
487
494
  },
488
- "colors": {
489
- "oneOf": [
490
- {
491
- "type": "boolean"
492
- },
493
- {
494
- "type": "object"
495
- }
496
- ],
497
- "description": "Enable disable or set your own colors for lefthook output"
498
- },
499
495
  "skip_lfs": {
500
496
  "type": "boolean",
501
497
  "description": "Skip running Git LFS hooks (enabled by default)"