From d5bef203d2083b9fa7e603091ea71c06c74f3343 Mon Sep 17 00:00:00 2001 From: Timid Robot Zehta Date: Mon, 8 Apr 2024 14:47:14 -0700 Subject: [PATCH] update pre-commit to use pipenv and drop pre-commit ci --- .github/workflows/static_analysis.yml | 12 ++++++------ .pre-commit-config.yaml | 14 +------------- 2 files changed, 7 insertions(+), 19 deletions(-) diff --git a/.github/workflows/static_analysis.yml b/.github/workflows/static_analysis.yml index cda58912..c149027d 100644 --- a/.github/workflows/static_analysis.yml +++ b/.github/workflows/static_analysis.yml @@ -18,18 +18,18 @@ jobs: with: python-version: '3.11' - - name: Install Python dependencies + - name: Install pipenv run: | pip install --upgrade pip - pip install black 'black[jupyter]' flake8 isort - pip install pre-commit + pip install pipenv # https://github.com/actions/checkout - name: Checkout quantifying uses: actions/checkout@v4 - with: - path: quantifying + + - name: Install Python dependencies + # Install _only_ [dev-packages] + run: pipenv sync --categories dev-packages --system - name: pre-commit run: pre-commit run --show-diff-on-failure --color=always --all-files - working-directory: ./quantifying diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8716fc26..35dd2bf2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,22 +3,10 @@ default_language_version: python: python3.11 -ci: - autofix_commit_msg: | - [pre-commit.ci] auto fixes from pre-commit.com hooks - - for more information, see https://pre-commit.ci - autofix_prs: true - autoupdate_branch: '' - autoupdate_commit_msg: '[pre-commit.ci] pre-commit autoupdate' - autoupdate_schedule: weekly - skip: [] - submodules: false - repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.1.0 + rev: v4.6.0 hooks: - id: check-added-large-files - id: check-ast