Skip to content
This repository was archived by the owner on Apr 2, 2025. It is now read-only.

Commit a9de542

Browse files
Phil Varnerc-wygoda
authored andcommitted
rework pre-commit run
1 parent fa129e2 commit a9de542

File tree

3 files changed

+5
-31
lines changed

3 files changed

+5
-31
lines changed

.github/actions/pre-commit/action.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

.github/workflows/pr.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,6 @@ jobs:
88
lint:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v4
12-
- run: pipx install poetry==1.7.1 pre-commit
13-
- uses: actions/setup-python@v5
14-
with:
15-
python-version: "3.12"
16-
cache: poetry
17-
- name: Install dependencies
18-
run: poetry install --with=dev
1911
- name: Run commit checks
2012
uses: ./.github/actions/pre-commit
2113

@@ -33,5 +25,10 @@ jobs:
3325
cache: poetry
3426
- name: Install dependencies
3527
run: poetry install --with=dev
28+
- name: Lint code
29+
if: ${{ matrix.python-version == 3.12 }}
30+
run: |
31+
python -m pip install pre-commit
32+
pre-commit run --all-files
3633
- name: Run tests
3734
run: poetry run nox

.pre-commit-config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ repos:
2121
rev: v1.13.0
2222
hooks:
2323
- id: mypy
24-
args: [--python-version=3.12]
2524
files: ".*\\.py$"
2625
additional_dependencies:
2726
- types-pyRFC3339~=1.1.1

0 commit comments

Comments
 (0)