Skip to content

Commit a008adb

Browse files
Add ruff format to pre-commit
1 parent 33377b8 commit a008adb

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

.pre-commit-config.yaml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
repos:
2-
- repo: https://github.com/pre-commit/pre-commit-hooks
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
33
rev: v2.3.0
44
hooks:
5-
- id: trailing-whitespace
6-
- id: end-of-file-fixer
7-
- id: check-yaml
8-
- id: check-added-large-files
9-
args: ['--maxkb=10000']
10-
- id: check-case-conflict
11-
- id: check-merge-conflict
12-
- id: debug-statements
5+
- id: trailing-whitespace
6+
- id: end-of-file-fixer
7+
- id: check-yaml
8+
- id: check-added-large-files
9+
args: ["--maxkb=10000"]
10+
- id: check-case-conflict
11+
- id: check-merge-conflict
12+
- id: debug-statements
13+
- repo: https://github.com/astral-sh/ruff-pre-commit
14+
rev: v0.13.1
15+
hooks:
16+
- id: ruff-format

requirements_dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@ pytest-rerunfailures==13.0
1313

1414
pre-commit>=3.5.0,<=4.2.0
1515
clang-format==20.1.0
16+
ruff>=0.13.1
1617

1718
psutil==7.0.0

0 commit comments

Comments
 (0)