Skip to content

Commit 16a3429

Browse files
authored
chore: unify ruff version in pyproject.toml and pre-commit-config.yaml (#1241)
1 parent e4e7a79 commit 16a3429

3 files changed

Lines changed: 16 additions & 11 deletions

File tree

.pre-commit-config.yaml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
repos:
2-
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
# Ruff version.
4-
rev: v0.9.0
5-
hooks:
6-
# Run the linter.
7-
- id: ruff
8-
args: [ --fix ]
9-
# Run the formatter.
10-
- id: ruff-format
2+
- repo: local
3+
hooks:
4+
- id: ruff-check
5+
name: ruff check
6+
entry: uv run ruff check
7+
language: system
8+
types_or: [python, pyi]
9+
args: [--fix, --show-fixes]
10+
11+
- id: ruff-format
12+
name: ruff format
13+
entry: uv run ruff format
14+
language: system
15+
types_or: [python, pyi]

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ dev = [
4848
"pytest-cov>=6.2,<8.0",
4949
"pytest-xdist~=3.8",
5050
"python-dateutil~=2.9",
51-
"ruff~=0.12",
51+
"ruff~=0.15",
5252
"types-python-dateutil~=2.9",
5353

5454
# for release

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)