Skip to content

Commit

Permalink
ci: Add pre-commit check (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickkenney9801 authored Nov 25, 2024
1 parent 76d101e commit c8e1004
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
name: Build
name: Lint / Pre-commit
run-name: lint pre-commit performed by @${{ github.triggering_actor }}

on:
push:
branches:
- main
pull_request:
- '**'
branches: [ main ]
pull_request:
branches: [ main ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Only the latest workflow run is allowed to run for each PR / branch
concurrency:
Expand Down Expand Up @@ -33,3 +36,5 @@ jobs:
if: steps.cache-venv.outputs.cache-hit != 'true'
- name: Run Ruff Linter 🚨
run: . ./.venv/bin/activate && make lint
- name: Run pre-commit hooks
run: . ./.venv/bin/activate && make hooks && make pre-commit

0 comments on commit c8e1004

Please sign in to comment.