Skip to content

Commit 72e5d79

Browse files
committed
more lefthook updates
Signed-off-by: John Seekins <john.seekins@spoileralert.com>
1 parent 9292092 commit 72e5d79

2 files changed

Lines changed: 25 additions & 4 deletions

File tree

.config/mise.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ lefthook = "latest"
44
yamllint = "latest"
55
actionlint = "latest"
66
shellcheck = "latest"
7+
markdownlint-cli2 = 'latest'

.lefthook.yml

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,38 @@
1+
# Refer for explanation to following link:
2+
# https://lefthook.dev/configuration/
13
pre-commit:
4+
parallel: true
25
jobs:
6+
- name: markdown linting
7+
run: markdownlint-cli2 --fix --config .markdownlint.json {staged_files}
8+
glob:
9+
- "*.md"
10+
exclude:
11+
- .github/pull_request_template.md
12+
stage_fixed: true
313
- name: yaml linting
414
run: yamllint -c .yamllint-config.yaml .
515
glob: "*.y*ml"
616
- name: Github Action linting
717
run: actionlint
8-
include:
18+
glob:
919
- ".github/workflows/*.y*ml"
1020
- name: Ruff Formatting
1121
run: uv run ruff format -q .
12-
glob: "*.py"
22+
glob:
23+
- "*.py"
24+
stage_fixed: true
1325
- name: Ruff Syntax checking
1426
run: uv run ruff check --fix -q
15-
glob: "*.py"
27+
glob:
28+
- "*.py"
29+
stage_fixed: true
1630
- name: MyPy type validation
1731
run: uv run mypy .
18-
glob: "*.py"
32+
glob:
33+
- "*.py"
34+
35+
output:
36+
- success
37+
- failure
38+
- summary

0 commit comments

Comments
 (0)