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