Add python lint to github actions

This commit is contained in:
Aviv Palivoda committed 2020-01-30 14:05:04 +02:00
1 parent 2071743ddd
commit dfb3588fd5
1 file changed
+15 -1
+15 -1
View File
@@ -62,4 +62,18 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all -- -Dwarnings
args: --all -- -Dwarnings
lint:
name: Lint Python code with flake8
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-python@v1
with:
python-version: 3.6
- name: install flake8
run: python -m pip install flake8
- name: run lint
run: flake8 . --count --exclude=./.*,./Lib,./vm/Lib --select=E9,F63,F7,F82 --show-source --statistics