Skip to content

subscope lists + dry run + exit code #minor #83

subscope lists + dry run + exit code #minor

subscope lists + dry run + exit code #minor #83

Workflow file for this run

name: pre-commit
on:
push:
tags: ["**"]
pull_request:
branches: ["**"]
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.9'
- id: cache-pre-commit-envs
uses: actions/cache@v3
with:
path: ~/.cache/pre-commit
key: ${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
# make sure to also update `pyproject.toml` with the same requirements
- id: install-requirements
run: pip install "pre-commit~=3.7.0"
- name: pre-commit
id: pre-commit
run: |
set -o pipefail
pre-commit run --all-files