Skip to content

Fixed error

Fixed error #825

Workflow file for this run

name: Validate with pre-commit
on:
push:
pull_request:
schedule:
- cron: "0 1 * * SUN"
workflow_dispatch:
jobs:
precommit:
runs-on: "ubuntu-latest"
name: Pre-commit
steps:
- name: Check out the repository
uses: actions/checkout@v4
- name: Setup Python
uses: "actions/setup-python@v5"
with:
python-version: "3.12"
- name: Upgrade pip
run: |
pip install --constraint=.github/workflows/constraints.txt pip
pip --version
- name: Install Python modules
run: |
pip install --constraint=.github/workflows/constraints.txt pre-commit black flake8 reorder-python-imports
- name: Run pre-commit on all files
run: |
pre-commit run --all-files --show-diff-on-failure --color=always