Skip to content

Commit deb4e99

Browse files
timjTallJimbo
authored andcommitted
Add black/isort action
1 parent d0f0606 commit deb4e99

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/formatting.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: check Python formatting
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
lint:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- name: Set up Python
16+
uses: actions/setup-python@v2
17+
with:
18+
python-version: 3.8
19+
20+
- name: Install isort and black
21+
run: pip install isort black
22+
23+
- name: Run isort
24+
run: isort --check-only python/ tests/
25+
26+
- name: Run black
27+
run: black --check --verbose --diff python/ tests/

0 commit comments

Comments
 (0)