Add Basic pre-commit config
This commit is contained in:
parent
3d84d7cd83
commit
042750c94e
1 changed files with 16 additions and 0 deletions
16
.pre-commit-config.yaml
Normal file
16
.pre-commit-config.yaml
Normal file
|
@ -0,0 +1,16 @@
|
|||
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
|
Loading…
Reference in a new issue