Added ruff to pre-commit hooks (#7124)

This commit is contained in:
Clyde Stubbs 2024-07-23 14:12:23 +10:00 committed by GitHub
parent 19a787c235
commit 2cc14055cf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2,6 +2,15 @@
# See https://pre-commit.com for more information # See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks # See https://pre-commit.com/hooks.html for more hooks
repos: repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.5.4
hooks:
# Run the linter.
- id: ruff
args: [--fix]
# Run the formatter.
- id: ruff-format
- repo: https://github.com/psf/black-pre-commit-mirror - repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.4.2 rev: 24.4.2
hooks: hooks: