Skip to content

Commit

Permalink
Merge pull request #11 from philiporlando/add-black-style-gh-action
Browse files Browse the repository at this point in the history
Add GitHub Action for Black formatter
  • Loading branch information
philiporlando authored Dec 31, 2023
2 parents 3a59998 + 017f3e7 commit 5b239db
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/python-style.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Python Style Checker

on: [push, pull_request]

jobs:
style-check:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
pip install black
- name: Check Python style
run: black --check .

0 comments on commit 5b239db

Please sign in to comment.