Skip to content

Commit 919dd40

Browse files
committed
Updat CI and pre-commit
1 parent d0208da commit 919dd40

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

.github/workflows/lint.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ jobs:
1414

1515
steps:
1616
- uses: actions/checkout@v4
17+
with:
18+
persist-credentials: false
1719
- uses: actions/setup-python@v5
1820
with:
1921
python-version: "3.x"
20-
- uses: pre-commit/action@v3.0.0
22+
- uses: tox-dev/action-pre-commit-uv@v1

.pre-commit-config.yaml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,27 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.5.0
3+
rev: v5.0.0
44
hooks:
5+
- id: check-added-large-files
56
- id: check-case-conflict
67
- id: check-merge-conflict
78
- id: check-yaml
89
- id: end-of-file-fixer
10+
- id: forbid-submodules
911
- id: trailing-whitespace
1012

11-
- repo: https://github.com/pre-commit/mirrors-prettier
12-
rev: v3.1.0
13+
- repo: https://github.com/python-jsonschema/check-jsonschema
14+
rev: 0.29.4
15+
hooks:
16+
- id: check-github-workflows
17+
18+
- repo: https://github.com/rhysd/actionlint
19+
rev: v1.7.4
20+
hooks:
21+
- id: actionlint
22+
23+
- repo: https://github.com/rbubley/mirrors-prettier
24+
rev: v3.3.3
1325
hooks:
1426
- id: prettier
1527
args: [--prose-wrap=always, --print-width=88]

0 commit comments

Comments
 (0)