Skip to content

Commit

Permalink
Add ruff with pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
pablormier committed Apr 29, 2024
1 parent 92dbe81 commit 98a5571
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.4.2
hooks:
# Run the linter.
- id: ruff
types_or: [ python, pyi, jupyter ]
args: [ --fix ]
# Run the formatter.
- id: ruff-format
types_or: [ python, pyi, jupyter ]

0 comments on commit 98a5571

Please sign in to comment.