Skip to content

Bump pypa/gh-action-pypi-publish #293

Bump pypa/gh-action-pypi-publish

Bump pypa/gh-action-pypi-publish #293

name: pre-commit-hooks
on:
pull_request:
push:
branches: [main]
permissions:
contents: read
jobs:
pre-commit-hooks:
name: ${{ matrix.name }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- { hook: end-of-file-fixer, name: end-of-files }
- { hook: trailing-whitespace, name: trailing-whitespace }
- { hook: mixed-line-ending, name: mixed-line-endings }
- { hook: fix-byte-order-marker, name: byte-order-marks }
- { hook: requirements-txt-fixer, name: requirements-txt }
- { hook: check-merge-conflict, name: merge-conflicts }
- { hook: check-case-conflict, name: case-conflicts }
- { hook: check-illegal-windows-names, name: illegal-names }
- { hook: check-symlinks, name: lost-symlinks }
- { hook: destroyed-symlinks, name: destroyed-symlinks }
- { hook: check-yaml, name: yaml-files }
- { hook: check-toml, name: toml-files }
- { hook: check-xml, name: xml-files }
- { hook: check-json, name: json-files }
- { hook: detect-private-key, name: private-keys }
- { hook: forbid-submodules, name: submodules }
- { hook: check-vcs-permalinks, name: vcs-permalinks }
- { hook: check-executables-have-shebangs, name: exec-shebangs }
- { hook: check-shebang-scripts-are-executable, name: shebang-execs }
- { hook: debug-statements, name: debug-statements }
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Set up Python 3.14
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.14"
- name: Install pre-commit
run: |
python -m pip install --upgrade pip
pip install pre-commit
- name: Run ${{ matrix.name }} hook
env:
HOOK: ${{ matrix.hook }}
run: pre-commit run --all-files "$HOOK"