Skip to content

Commit 4706cdd

Browse files
committed
pre-commit autoupdate + actions/[email protected]
Fixes https://github.com/pylint-dev/pylint-pytest/actions/runs/20699276843 Signed-off-by: Stavros Ntentos <[email protected]>
1 parent 1bf53a3 commit 4706cdd

2 files changed

Lines changed: 16 additions & 11 deletions

File tree

.github/workflows/checks.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
hashFiles('pyproject.toml', 'requirements/**.txt') }}" >> $GITHUB_OUTPUT
4343
- name: Restore Python virtual environment
4444
id: cache-venv
45-
uses: actions/cache@v4.0.2
45+
uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
4646
with:
4747
path: .venv
4848
key: >-
@@ -55,7 +55,7 @@ jobs:
5555
hashFiles('.pre-commit-config.yaml') }}" >> $GITHUB_OUTPUT
5656
- name: Restore pre-commit environment
5757
id: cache-precommit
58-
uses: actions/cache@v4.0.2
58+
uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
5959
with:
6060
path: ${{ env.PRE_COMMIT_CACHE }}
6161
key: >-
@@ -80,14 +80,14 @@ jobs:
8080
check-latest: true
8181
- name: Restore Python virtual environment
8282
id: cache-venv
83-
uses: actions/cache@v4.0.2
83+
uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
8484
with:
8585
path: .venv
8686
fail-on-cache-miss: true
8787
key: ${{ runner.os }}-${{ steps.python.outputs.python-version }}-${{ needs.prepare-base.outputs.python-key }}
8888
- name: Restore pre-commit environment
8989
id: cache-precommit
90-
uses: actions/cache@v4.0.2
90+
uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
9191
with:
9292
path: ${{ env.PRE_COMMIT_CACHE }}
9393
fail-on-cache-miss: true

.pre-commit-config.yaml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ci:
44

55
repos:
66
- repo: https://github.com/pre-commit/pre-commit-hooks
7-
rev: v4.6.0
7+
rev: v6.0.0
88
hooks:
99
- id: end-of-file-fixer
1010
exclude: ^.idea/
@@ -34,23 +34,28 @@ repos:
3434
- '4'
3535
- --offset
3636
- '2'
37+
- repo: https://github.com/asottile/pyupgrade
38+
rev: v3.21.2
39+
hooks:
40+
- id: pyupgrade
3741
- repo: https://github.com/astral-sh/ruff-pre-commit
38-
rev: v0.6.8
42+
rev: v0.14.10
3943
hooks:
40-
- id: ruff
44+
- id: ruff-format
45+
- id: ruff-check
4146
args:
4247
- --fix
4348
exclude: tests/input/
4449
- repo: https://github.com/psf/black
45-
rev: 24.8.0
50+
rev: 25.12.0
4651
hooks:
4752
- id: black
4853
- repo: https://github.com/asottile/blacken-docs
49-
rev: 1.18.0
54+
rev: 1.20.0
5055
hooks:
5156
- id: blacken-docs
5257
additional_dependencies:
53-
- black==24.8.0
58+
- black==25.12.0
5459
- repo: https://github.com/pre-commit/pygrep-hooks
5560
rev: v1.10.0
5661
hooks:
@@ -74,7 +79,7 @@ repos:
7479
language: pygrep
7580
types: [python]
7681
- repo: https://github.com/pre-commit/mirrors-mypy
77-
rev: v1.11.2
82+
rev: v1.19.1
7883
hooks:
7984
- id: mypy
8085
exclude: tests/input/

0 commit comments

Comments
 (0)