Skip to content

Commit 652365e

Browse files
authored
Add ruff and flake8 to .pre-commit-config.yaml (#538)
Depends on #537
1 parent 3a2a1df commit 652365e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.pre-commit-config.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,20 @@ repos:
2020
files: \.(cmake|CMakeLists\.txt)$
2121
exclude: ^(3rdparty/|build.*/|install/)
2222

23+
# Ruff Python linter
24+
- repo: https://github.com/charliermarsh/ruff-pre-commit
25+
rev: v0.12.4
26+
hooks:
27+
- id: ruff
28+
args: [--fix]
29+
- id: ruff-format
30+
31+
# Flake8 Python style/lint checker (supplemental to Ruff)
32+
- repo: https://github.com/pycqa/flake8
33+
rev: 7.3.0
34+
hooks:
35+
- id: flake8
36+
2337
# Configuration
2438
default_stages: [pre-commit]
2539
fail_fast: false

0 commit comments

Comments
 (0)