We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d1326f commit 2d7ee96Copy full SHA for 2d7ee96
.github/workflows/lint.yml
@@ -0,0 +1,38 @@
1
+name: Lint
2
+
3
+on:
4
+ # Trigger the workflow on push or pull request,
5
+ # but only for the main branch
6
+ push:
7
+ branches:
8
+ - main
9
+ pull_request:
10
11
12
13
+permissions:
14
+ checks: write
15
+ contents: write
16
17
+jobs:
18
+ run-linters:
19
+ name: Run linters
20
+ runs-on: ubuntu-latest
21
22
+ steps:
23
+ - name: Check out Git repository
24
+ uses: actions/checkout@v3
25
26
+ - name: Set up Python
27
+ uses: actions/setup-python@v1
28
+ with:
29
+ python-version: 3.8
30
31
+ - name: Install Python dependencies
32
+ run: pip install black flake8
33
34
+ - name: Run linters
35
+ uses: wearerequired/lint-action@v2
36
37
+ black: true
38
+ flake8: true
0 commit comments