Skip to content

Commit 540cf71

Browse files
committed
[Enh] Add pre-commit config
1 parent acb66b3 commit 540cf71

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.pre-commit-config.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
repos:
2+
- repo: https://github.com/astral-sh/ruff-pre-commit
3+
# Ruff version.
4+
rev: v0.11.2
5+
hooks:
6+
# Run the linter.
7+
- id: ruff
8+
args: [ --fix, --ignore=F811]
9+
# Run the formatter.
10+
- id: ruff-format
11+

0 commit comments

Comments
 (0)