We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a06377f commit 0f57c41Copy full SHA for 0f57c41
1 file changed
.github/workflows/lint.yml
@@ -0,0 +1,36 @@
1
+---
2
+
3
+name: Linting
4
+on: [pull_request]
5
6
+jobs:
7
+ flake8:
8
+ name: flake8
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v2
12
13
+ - name: Set up Python 3
14
+ uses: actions/setup-python@v1
15
+ with:
16
+ python-version: 3.8
17
18
+ - name: Install flake8
19
+ run: pip3 install 'flake8>=3.8'
20
21
+ - name: Set up reviewdog
22
+ run: |
23
+ mkdir -p "$HOME/bin"
24
+ curl -sfL \
25
+ https://github.com/reviewdog/reviewdog/raw/master/install.sh | \
26
+ sh -s -- -b "$HOME/bin"
27
+ echo "$HOME/bin" >> $GITHUB_PATH
28
29
+ - name: Run flake8
30
+ env:
31
+ REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32
33
+ set -o pipefail
34
+ flake8 | \
35
+ reviewdog -f=pep8 -name=flake8 \
36
+ -tee -reporter=github-check -filter-mode nofilter
0 commit comments