Skip to content

Commit

Permalink
Add pre-commit config for ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
kynan committed Jan 18, 2025
1 parent d72d57b commit c97453b
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.9.2
hooks:
# Run the linter.
- id: ruff
types_or: [ python, pyi ]
# Run the formatter.
- id: ruff-format
types_or: [ python, pyi ]
args: [--check]

0 comments on commit c97453b

Please sign in to comment.