From 715380baae712125b2f42b060200b83a4a98fa84 Mon Sep 17 00:00:00 2001 From: Peter Onyisi Date: Sat, 16 Nov 2024 16:38:45 +0000 Subject: [PATCH] Add precommit --- .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 00000000..dc023a4f --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,16 @@ +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: "v5.0.0" + hooks: + - id: check-case-conflict + - id: check-merge-conflict + - id: debug-statements + - id: end-of-file-fixer + - id: mixed-line-ending + - id: name-tests-test + args: ["--pytest-test-first"] + - id: trailing-whitespace + - repo: https://github.com/pycqa/flake8 + rev: "7.1.1" + hooks: + - id: flake8