Skip to content

Commit

Permalink
add ruff pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinBubel committed Oct 27, 2024
1 parent 1fcb408 commit 4db53c6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.7.1
hooks:
# Run the linter.
- id: ruff
types_or: [ python, pyi ]
args: [ --fix ]
# Run the formatter.
- id: ruff-format
types_or: [ python, pyi ]

0 comments on commit 4db53c6

Please sign in to comment.