From 98cbd7850516c0b19254296a23cc90ca35d31729 Mon Sep 17 00:00:00 2001 From: Emily Rockman Date: Wed, 24 Jan 2024 13:41:48 -0600 Subject: [PATCH] fix pre-commit --- .github/workflows/ci_code_quality.yml | 6 +++++- .pre-commit-config.yaml | 16 +++++++++------- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci_code_quality.yml b/.github/workflows/ci_code_quality.yml index b3d944d5..50694261 100644 --- a/.github/workflows/ci_code_quality.yml +++ b/.github/workflows/ci_code_quality.yml @@ -49,5 +49,9 @@ jobs: shell: bash run: pip3 install hatch + - name: Install pre-commit + shell: bash + run: pip3 install pre-commit + - name: Run Pre-commit Hooks - run: hatch run lint:pre-commit run --show-diff-on-failure --color=always --all-files + run: pre-commit run --show-diff-on-failure --color=always --all-files diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 19029339..3a346b18 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,10 +18,12 @@ repos: exclude_types: - "markdown" - id: check-case-conflict - # - id: linter - # name: linter - # entry: hatch run lint:all - # language: system - # types: [python] - # pass_filenames: false - # verbose: true +- repo: local + hooks: + - id: linter + name: linter + entry: hatch run lint:all + language: system + types: [python] + pass_filenames: false + verbose: true