Skip to content

Commit

Permalink
Add black format check workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
shaoyijia committed Sep 1, 2024
1 parent c0a3174 commit 0528193
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/format-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Check Python formatting with Black

on:
pull_request:
branches:
- main
paths:
- 'knowledge_storm/**'

jobs:
black-format-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.10

- name: Install Black
run: pip install black

- name: Check formatting with Black
run: black --check specific-folder/

0 comments on commit 0528193

Please sign in to comment.