Skip to content

Commit

Permalink
Add flake8 linting via reviewdog and GitHub Actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
QuLogic committed May 25, 2020
1 parent 08a63b9 commit e4e55f7
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/reviewdog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,30 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-check
workdir: 'js'

flake8:
name: flake8
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Python 3
uses: actions/setup-python@v1
with:
python-version: 3.8

- name: Install flake8
run: pip3 install flake8

- name: Set up reviewdog
run: |
mkdir -p $HOME/bin
curl -sfL \
https://github.com/reviewdog/reviewdog/raw/master/install.sh | \
sh -s -- -b $HOME/bin
echo ::add-path::$HOME/bin
- name: Run flake8
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: flake8 | reviewdog -f=pep8 -name=flake8 -reporter=github-check

0 comments on commit e4e55f7

Please sign in to comment.