Skip to content

Commit

Permalink
add precommit closes #48
Browse files Browse the repository at this point in the history
  • Loading branch information
dnth committed Nov 1, 2024
1 parent 605cefe commit ebb47df
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 ebb47df

Please sign in to comment.