Skip to content

Commit 1da96f0

Browse files
committed
Add Python code format workflow
1 parent a5e8663 commit 1da96f0

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/check-format.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Check Python code format
2+
3+
on: [push]
4+
5+
jobs:
6+
linter_name:
7+
name: runner / isort & black formatter
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v6
11+
- name: Check files using the isort import sorter
12+
uses: isort/isort-action@v1
13+
with:
14+
configuration: "--profile black --check-only"
15+
requirements-files: "requirements.txt"
16+
- name: Check files using the black formatter
17+
uses: psf/black@stable
18+
with:
19+
options: "--check"
20+
src: "."

0 commit comments

Comments
 (0)