Skip to content

Commit

Permalink
introducing github action for python formatting
Browse files Browse the repository at this point in the history
Signed-off-by: 2byrds <[email protected]>
  • Loading branch information
2byrds committed Jul 19, 2024
1 parent c83904d commit 6953241
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/python-formatting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Enforce Python Code Formatting

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
format-check:
runs-on: ubuntu-latest

steps:
- name: Check out the repository
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Install black
run: pip install black

- name: Run black
run: black --check .

0 comments on commit 6953241

Please sign in to comment.