Skip to content

Commit

Permalink
Add a pre-commit hook, using ruff for both linter and formatter, #7
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Milk committed Dec 10, 2023
1 parent 981a2fd commit 8df1934
Showing 1 changed file with 10 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.1.7
hooks:
# Run the linter.
- id: ruff
args: [ --fix ]
# Run the formatter.
- id: ruff-format

0 comments on commit 8df1934

Please sign in to comment.