Merge pull request #390 from FoamyGuy/remove_hacktober_issues #446
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SPDX-FileCopyrightText: 2021 Michael Schroeder | |
# | |
# SPDX-License-Identifier: MIT | |
name: Run pre-commit | |
on: [pull_request, push] | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Python 3 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3 | |
- name: Versions | |
run: | | |
python3 --version | |
- name: Checkout Current Repo | |
uses: actions/checkout@v3 | |
- name: Pip install requirements | |
run: | | |
pip install --force-reinstall -r requirements.txt | |
- name: Pip install pre-commit | |
run: | | |
pip install pre-commit | |
- name: Run pre-commit hooks | |
run: | | |
pre-commit run --all-files |