From 1cfca6a88c010af1859b60938312df4db4a96968 Mon Sep 17 00:00:00 2001 From: Jesse Zong Date: Wed, 27 Mar 2024 22:01:25 -0400 Subject: [PATCH] Update pre-commit to actually work --- .pre-commit-config.yaml | 15 ++++++++------- backend/Pipfile | 1 + 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a626a833..44abf537 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,10 +1,11 @@ repos: - repo: https://github.com/pennlabs/pre-commit-hooks - rev: stable + rev: a91c550e051920dcb36e123fe8e2edac66ebf937 hooks: - - id: isort - - id: flake8 - - repo: https://github.com/psf/black - rev: 22.3.0 - hooks: - - id: black + - id: black + args: [-l100] + - id: isort + args: [] + - id: flake8 + args: [--config, backend/setup.cfg] + - id: detect-private-key \ No newline at end of file diff --git a/backend/Pipfile b/backend/Pipfile index 37d46dd3..a97ef81b 100644 --- a/backend/Pipfile +++ b/backend/Pipfile @@ -15,6 +15,7 @@ rope = "*" pytest = "*" tblib = "*" coverage = "*" +pre-commit = "*" [packages] beautifulsoup4 = "*"