Skip to content

Commit daa5635

Browse files
Create lint.yml
1 parent 9176f2e commit daa5635

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/lint.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Lint
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
run-linters:
7+
name: Run linters
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Check out Git repository
12+
uses: actions/checkout@v2
13+
14+
- name: Set up Python
15+
uses: actions/setup-python@v1
16+
with:
17+
python-version: 3.8
18+
19+
- name: Install Python dependencies
20+
run: pip install black flake8
21+
22+
- name: Run linters
23+
uses: wearerequired/lint-action@v2
24+
with:
25+
github_token: ${{ secrets.GITHUB_TOKEN }}
26+
black: true
27+
auto_fix: true

0 commit comments

Comments
 (0)