Skip to content

Commit bdfa2d2

Browse files
committed
Add ruff pre-commit hook
1 parent bf6ed38 commit bdfa2d2

File tree

3 files changed

+1886
-1469
lines changed

3 files changed

+1886
-1469
lines changed

.pre-commit-config.yaml

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

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ lint = ["mypy>=1.4.1", "ruff>=0.13.1"]
4040
test = ["pytest>=7.4.4", "pytest-cov>=4.1.0"]
4141
release = [{ include-group = "build" }, { include-group = "docs" }]
4242
dev = [
43+
"pre-commit>=2.21.0",
4344
{ include-group = "test" },
4445
{ include-group = "lint" },
4546
{ include-group = "build" },

0 commit comments

Comments
 (0)