Skip to content

deps-dev: update packaging requirement from >=22.0 to >=26.3 #386

deps-dev: update packaging requirement from >=22.0 to >=26.3

deps-dev: update packaging requirement from >=22.0 to >=26.3 #386

Workflow file for this run

name: pre-commit
on:
pull_request:
push:
branches: [master, main]
permissions:
contents: read
jobs:
# The job id is the required status check "pre-commit" on main; keep it.
#
# These steps are what pre-commit/action v3.0.1 runs, written out: its
# last release pins actions/cache@v4, which targets the deprecated Node 20
# runtime, and it has had no release since.
pre-commit:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.11"
- name: Install pre-commit
run: python -m pip install --disable-pip-version-check pre-commit==4.6.2
- name: Cache pre-commit environments
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ~/.cache/pre-commit
key: pre-commit-3|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
- name: Run pre-commit
run: pre-commit run --show-diff-on-failure --color=always --all-files