Skip to content

Commit

Permalink
workflow: add python workflow to enforce formatting (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverBzH authored Jan 22, 2024
1 parent 073c4fd commit 631139a
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Python Format

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
format:
name: Check Python formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set Up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install
run: |
pip install --upgrade pip
pip install black=="23.12.1"
- run: black --check scripts/ --exclude pica

0 comments on commit 631139a

Please sign in to comment.