Skip to content

Commit 4648e62

Browse files
Add linting workflow using Black for code formatting
1 parent d9cb24e commit 4648e62

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/pre-commit.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: pre-commit
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
black-format:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v3
10+
- uses: actions/setup-python@v3
11+
- name: Install black
12+
run: pip install black
13+
- name: Run black
14+
run: black .

0 commit comments

Comments
 (0)