Skip to content

Add pre-commit configuration for linting and formatting (#6) #1

Add pre-commit configuration for linting and formatting (#6)

Add pre-commit configuration for linting and formatting (#6) #1

Workflow file for this run

name: Run pre-commit in blueprint
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
blueprint-pre-commit:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.11.7
- name: Install pre-commit hooks
run: |
pip install -r requirements.txt
- name: Run pre-commit hooks
run: |
pre-commit run --all-files