Skip to content
This repository was archived by the owner on Oct 13, 2025. It is now read-only.

Commit eeff907

Browse files
committed
Add pre-commit for ruff and ruff-format
1 parent ffc29e8 commit eeff907

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.pre-commit-config.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# See https://pre-commit.com for more information
2+
# See https://pre-commit.com/hooks.html for more hooks
3+
repos:
4+
- repo: https://github.com/astral-sh/ruff-pre-commit
5+
rev: v0.8.1
6+
hooks:
7+
- id: ruff-format
8+
- id: ruff
9+
args: [--fix]

ruff.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
target-version = "py39"
2+
3+
[lint]
4+
select = ["C4", "F", "I", "ISC", "UP"]

0 commit comments

Comments
 (0)