Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

Commit

Permalink
Set up flake8 test for github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ishanrai05 committed Jun 12, 2020
1 parent 401f0e7 commit 16ac365
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/check_syntax.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,19 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Python Style Checker
uses: andymckay/pycodestyle-action@0.1.3
- name: Checkout
uses: actions/checkout@v2.2.0
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 2.7
- name: Install Flake
run: |
python3 -m pip install flake8
- name: Lint with flake8
run: |
pip install flake8
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics

0 comments on commit 16ac365

Please sign in to comment.