From 042750c94e5e821c8b83b9a0b40c18a10579d67e Mon Sep 17 00:00:00 2001 From: Emma Nora Theuer Date: Thu, 27 Feb 2025 17:28:05 +0100 Subject: [PATCH] Add Basic pre-commit config --- .pre-commit-config.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .pre-commit-config.yaml 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