Skip to content

Commit

Permalink
pre-commit: added pre-commit-feature with ruff linter
Browse files Browse the repository at this point in the history
Signed-off-by: Cagri Yonca <[email protected]>
  • Loading branch information
CagriYonca committed Oct 24, 2024
1 parent b7d66d1 commit 8afae10
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.7.0
hooks:
# Run the linter.
- id: ruff
args: [ --fix ]
# Run the formatter.
- id: ruff-format
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ dev = [
"pytest",
"pytest-cov",
"pytest-mock",
"pre-commit>=3.0.0",
"ruff"
]

[project.urls]
Expand Down

0 comments on commit 8afae10

Please sign in to comment.