Skip to content

Commit eab82d2

Browse files
committed
move ruff from lint workflow to pre-commit
upgrade pre-commit
1 parent 8eb3c4d commit eab82d2

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/lint.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,3 @@ jobs:
2020
with:
2121
python-version: "3.x"
2222
- uses: tox-dev/action-pre-commit-uv@v1
23-
- uses: astral-sh/ruff-action@v3
24-
with:
25-
args: check
26-
src: "."

.pre-commit-config.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
repos:
2+
- repo: https://github.com/astral-sh/ruff-pre-commit
3+
rev: v0.12.3
4+
hooks:
5+
- id: ruff-check
6+
args: [--exit-non-zero-on-fix]
7+
28
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.6.0
9+
rev: v5.0.0
410
hooks:
511
- id: check-added-large-files
612
- id: check-case-conflict

0 commit comments

Comments
 (0)