CoralLeiCN commited on
Commit
268a881
·
1 Parent(s): ba1bd1e

Add pre-commit configuration for Ruff linter and formatter

Browse files
Files changed (1) hide show
  1. .pre-commit-config.yaml +10 -0
.pre-commit-config.yaml ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ repos:
2
+ - repo: https://github.com/astral-sh/ruff-pre-commit
3
+ # Ruff version.
4
+ rev: v0.12.2
5
+ hooks:
6
+ # Run the linter.
7
+ - id: ruff-check
8
+ args: [ --fix ]
9
+ # Run the formatter.
10
+ - id: ruff-format