Skip to content

Commit

Permalink
added pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton-Shutik committed Nov 15, 2024
1 parent 277e6a8 commit cbf4a3a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
default_install_hook_types:
- pre-commit
- prepare-commit-msg
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.7.4
hooks:
# Run the linter.
- id: ruff
args: [ --fix ]
# Run the formatter.
- id: ruff-format

0 comments on commit cbf4a3a

Please sign in to comment.