diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..88bd9c2 --- /dev/null +++ b/.pre-commit-config.yaml @@ -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