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

Commit 16ac365

Browse files
committed
Set up flake8 test for github actions
1 parent 401f0e7 commit 16ac365

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

.github/workflows/check_syntax.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,19 @@ jobs:
66
build:
77
runs-on: ubuntu-latest
88
steps:
9-
- name: Python Style Checker
10-
uses: andymckay/pycodestyle-action@0.1.3
9+
- name: Checkout
10+
uses: actions/checkout@v2.2.0
11+
- name: Setup Python
12+
uses: actions/setup-python@v2
13+
with:
14+
python-version: 2.7
15+
- name: Install Flake
16+
run: |
17+
python3 -m pip install flake8
18+
- name: Lint with flake8
19+
run: |
20+
pip install flake8
21+
# stop the build if there are Python syntax errors or undefined names
22+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
23+
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
24+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics

0 commit comments

Comments
 (0)