From 5133902b58b29ca540d49aa20c289985546f4461 Mon Sep 17 00:00:00 2001 From: Franziska Wegner <57569315+franziska-wegner@users.noreply.github.com> Date: Fri, 29 Dec 2023 03:36:13 -0800 Subject: [PATCH] Add Pre-Commit Hooks (#63) This PR adds a set of precommit hooks to the framework to validate commits. We add the .pre-commit-config.yaml to the main directory for that. --- .pre-commit-config.yaml | 19 +++++++++++++++++++ 1 file changed, 19 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 00000000..1d3b3d43 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,19 @@ +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.5.0 + hooks: + - id: check-added-large-files + - id: check-ast + - id: check-case-conflict + - id: check-json + - id: check-symlinks + - id: check-xml + - id: check-yaml + - id: detect-private-key + - id: end-of-file-fixer + - id: no-commit-to-branch + args: [--branch, staging, --branch, main] + - id: pretty-format-json + args: [--autofix, --indent, 4] + - id: requirements-txt-fixer + - id: trailing-whitespace