Skip to content

Commit d86271d

Browse files
Update & unify usage of ruff in pre-commit
1 parent aa11c12 commit d86271d

1 file changed

Lines changed: 11 additions & 13 deletions

File tree

.pre-commit-config.yaml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -32,24 +32,22 @@ repos:
3232
- id: pyupgrade
3333
args: [--py312-plus]
3434

35-
- repo: https://github.com/astral-sh/ruff-pre-commit
36-
rev: v0.3.0
37-
hooks:
38-
# Sort imports.
39-
- id: ruff
40-
name: ruff-sort-imports
41-
args: [--select, I, --fix]
42-
4335
- repo: local
4436
hooks:
45-
- id: ruff-lint-format
46-
name: Ruff Lint & Format
47-
entry: bash -c "uv run ruff check --fix && uv run ruff format"
37+
- id: ruff-lint
38+
name: Python code linting with Ruff
39+
entry: uv run ruff check --fix
40+
language: system
41+
types: [python]
42+
43+
- id: ruff-format
44+
name: Python code formatting with Ruff
45+
entry: uv run ruff format
4846
language: system
49-
types: [ python ]
47+
types: [python]
5048

5149
- id: mypy
52-
name: Validate types with MyPy
50+
name: Python type checking with MyPy
5351
entry: uv run mypy
5452
language: system
5553
types: [python]

0 commit comments

Comments
 (0)