Skip to content

Commit 8afae10

Browse files
committed
pre-commit: added pre-commit-feature with ruff linter
Signed-off-by: Cagri Yonca <[email protected]>
1 parent b7d66d1 commit 8afae10

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.pre-commit-config.yaml

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

pyproject.toml

+2
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ dev = [
6363
"pytest",
6464
"pytest-cov",
6565
"pytest-mock",
66+
"pre-commit>=3.0.0",
67+
"ruff"
6668
]
6769

6870
[project.urls]

0 commit comments

Comments
 (0)