Skip to content

Commit 035e984

Browse files
committed
STY: enforce Python formatting
1 parent 93a873c commit 035e984

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/lint.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Lint
2+
on:
3+
push:
4+
branches:
5+
- "*"
6+
pull_request:
7+
branches:
8+
- master
9+
jobs:
10+
python_formatting_check:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Setup Python
14+
uses: actions/setup-python@v2
15+
with:
16+
python-version: 3.8
17+
- name: Checkout repository
18+
uses: actions/checkout@v2
19+
- name: Install dev dependencies
20+
run: pip install -r requirements/dev_requirements.txt
21+
- name: Check that Python files are formatted correctly
22+
run: black --check --diff .

0 commit comments

Comments
 (0)