Skip to content

Merge pull request #780 from hartwork/dependabot/pip/faker-19.6.1 #2495

Merge pull request #780 from hartwork/dependabot/pip/faker-19.6.1

Merge pull request #780 from hartwork/dependabot/pip/faker-19.6.1 #2495

# Copyright (C) 2021 Sebastian Pipping <[email protected]>
# Licensed under GNU Affero GPL v3 or later
name: Run pre-commit on all files
on:
- pull_request
- push
jobs:
run_pre_commit:
name: Run pre-commit on all files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
- name: Set up Python 3.11
uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # v4.7.0
with:
python-version: 3.11
- name: Install pre-commit
run: |-
pip install \
--disable-pip-version-check \
--no-warn-script-location \
--user \
pre-commit
echo "PATH=${HOME}/.local/bin:${PATH}" >> "${GITHUB_ENV}"
- name: Install pre-commit hooks
run: |-
pre-commit install --install-hooks
- name: Run pre-commit on all files
run: |-
pre-commit run --all-files --show-diff-on-failure