From 740d9d7b11b695f3b6e7f8636a844ad7f58a1102 Mon Sep 17 00:00:00 2001 From: Adam DeHovitz Date: Tue, 27 Jan 2026 05:58:41 -1000 Subject: [PATCH] Replace pre-commit/action with direct pre-commit invocation The pre-commit/action is not from an enterprise-owned, GitHub-owned, or verified marketplace source. Replace it by installing and running pre-commit directly, using only GitHub-owned actions. --- .github/workflows/tests.yaml | 17 +++++++++++------ .pre-commit-config.yaml | 2 +- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 304f107..a2b75e5 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -10,12 +10,17 @@ jobs: pre-commit: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - with: - python-version: '3.10' - - uses: pre-commit/action@v3.0.1 - + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: "3.10" + - name: Install pre-commit + run: | + python -m pip install --upgrade pip + pip install pre-commit + - name: Run pre-commit + run: pre-commit run --all-files + tests: name: Run tests for Python ${{ matrix.python-version }} runs-on: ubuntu-latest diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2f5c354..42eae3b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,4 +7,4 @@ repos: - id: ruff-check args: [ --fix ] # Run the formatter. - - id: ruff-format \ No newline at end of file + - id: ruff-format