Skip to content

Commit ed22ac7

Browse files
committed
Merge remote-tracking branch 'origin/main'
2 parents d303b0f + 5bbac16 commit ed22ac7

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/linters.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Linting
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
lint:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v2
18+
19+
- name: Set up Python
20+
uses: actions/setup-python@v2
21+
with:
22+
python-version: '3.x'
23+
24+
- name: Install dependencies
25+
run: |
26+
python -m pip install --upgrade pip
27+
pip install isort flake8 black
28+
29+
- name: Run isort
30+
run: isort . --check-only
31+
32+
- name: Run flake8
33+
run: flake8 .
34+
35+
- name: Run black
36+
run: black . --check

0 commit comments

Comments
 (0)