Minor changes to flake8 check

This commit is contained in:
Veronica K. B. Olsen
2020-08-20 09:54:36 +02:00
parent da04be1761
commit 9d2563c72b
+7 -9
View File
@@ -2,9 +2,9 @@ name: Flake8 Checks
on:
push:
branches: [ main ]
branches: [ main, dev ]
pull_request:
branches: [ main ]
branches: [ main, dev ]
jobs:
checkSyntax:
@@ -15,13 +15,11 @@ jobs:
with:
python-version: 3.7
architecture: x64
- name: Checkout novelWriter
- name: Checkout Source
uses: actions/checkout@v2
- name: Install flake8
run: pip install flake8
- name: Check for Syntax Error in novelWriter
run: flake8 nw --count --select=E9,F63,F7,F82 --show-source --statistics
- name: Check for Syntax Error in Tests
run: flake8 tests --count --select=E9,F63,F7,F82 --show-source --statistics
- name: Check for Code Style Violations
run: flake8 nw --count --max-line-length=99 --ignore E203,E221,E226,E241,E251,E261,E266,E302,E305 --show-source --statistics
- name: Syntax Error Check
run: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
- name: Coding Style Violations
run: flake8 . --count --max-line-length=99 --ignore E203,E221,E226,E241,E251,E261,E266,E302,E305 --show-source --statistics