Skip to content

Commit

Permalink
ci: Enforce Black formatting
Browse files Browse the repository at this point in the history
Add Github Actions workflow to enforce Black formatting rules
  • Loading branch information
robberwick committed Nov 17, 2024
1 parent a34eb04 commit 7041962
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/black.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Formatting

on: [push, pull_request]

jobs:
black:
runs-on: ubuntu-latest
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
steps:
- uses: actions/checkout@v4
- uses: psf/black@stable
with:
options: "--check --verbose"
src: "./src ./tests"

0 comments on commit 7041962

Please sign in to comment.