Skip to content

Commit 5e60c0c

Browse files
committed
Triple lint the YAML
1 parent 328d6f7 commit 5e60c0c

2 files changed

Lines changed: 53 additions & 0 deletions

File tree

.github/workflows/lint.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Lint
2+
3+
on: [push, pull_request, workflow_dispatch]
4+
5+
env:
6+
FORCE_COLOR: 1
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
lint:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-python@v5
18+
with:
19+
python-version: "3.x"
20+
cache: pip
21+
- uses: pre-commit/action@v3.0.1

.pre-commit-config.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.5.0
4+
hooks:
5+
- id: check-added-large-files
6+
- id: check-case-conflict
7+
- id: check-merge-conflict
8+
- id: check-yaml
9+
exclude: windows-release/azure-pipelines.yml
10+
- id: debug-statements
11+
- id: end-of-file-fixer
12+
- id: forbid-submodules
13+
- id: trailing-whitespace
14+
15+
- repo: https://github.com/python-jsonschema/check-jsonschema
16+
rev: 0.28.1
17+
hooks:
18+
- id: check-dependabot
19+
- id: check-github-workflows
20+
21+
- repo: https://github.com/rhysd/actionlint
22+
rev: v1.6.27
23+
hooks:
24+
- id: actionlint
25+
26+
- repo: meta
27+
hooks:
28+
- id: check-hooks-apply
29+
- id: check-useless-excludes
30+
31+
ci:
32+
autoupdate_schedule: quarterly

0 commit comments

Comments
 (0)