Add Basic pre-commit config

This commit is contained in:
Emma Nora Theuer 2025-02-27 17:28:05 +01:00
parent 3d84d7cd83
commit 042750c94e
Signed by: emma
GPG key ID: 9565B852BFB0E11E

16
.pre-commit-config.yaml Normal file
View 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