Skip to content

Configure pre commit hooks in CI #2

Configure pre commit hooks in CI

Configure pre commit hooks in CI #2

Workflow file for this run

name: Pre-commit CI
on: [push, pull_request]
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: pip install -r requirements.txt
# This will configure the pre-commit hooks in
# '.pre-commit-config.yaml' file.
- name: Configure pre-commit
run: pre-commit install
- name: Run pre-commit hooks
run: pre-commit run --all-files