Add Ruff linter and formatter to pre-commit configuration
This commit is contained in:
parent
3988f0a6fc
commit
784123b9e1
@ -19,4 +19,12 @@ repos:
|
|||||||
hooks:
|
hooks:
|
||||||
# Compile requirements
|
# Compile requirements
|
||||||
- id: pip-compile
|
- id: pip-compile
|
||||||
args: [ pyproject.toml, -o, requirements.txt ]
|
args: [ pyproject.toml, -o, requirements.txt ]
|
||||||
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||||
|
# Ruff version.
|
||||||
|
rev: v0.11.12
|
||||||
|
hooks:
|
||||||
|
# Run the linter.
|
||||||
|
- id: ruff
|
||||||
|
# Run the formatter.
|
||||||
|
- id: ruff-format
|
||||||
Loading…
x
Reference in New Issue
Block a user