17 lines
557 B
YAML
17 lines
557 B
YAML
|
repos:
|
||
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||
|
rev: v0.6.2
|
||
|
hooks:
|
||
|
- id: ruff
|
||
|
args: [--fix]
|
||
|
- id: ruff-format
|
||
|
|
||
|
# Pre-commit's built-in hooks for minor fixes
|
||
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||
|
rev: v4.6.0
|
||
|
hooks:
|
||
|
- id: trailing-whitespace # Remove trailing whitespace
|
||
|
- id: end-of-file-fixer # Ensure newline at end of file
|
||
|
- id: check-merge-conflict # Prevent merge conflicts from being committed
|
||
|
- id: detect-private-key # Prevent committing private keys
|