Minor changes to flake8 check
This commit is contained in:
@@ -2,9 +2,9 @@ name: Flake8 Checks
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ main ]
|
branches: [ main, dev ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ main ]
|
branches: [ main, dev ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
checkSyntax:
|
checkSyntax:
|
||||||
@@ -15,13 +15,11 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: 3.7
|
python-version: 3.7
|
||||||
architecture: x64
|
architecture: x64
|
||||||
- name: Checkout novelWriter
|
- name: Checkout Source
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Install flake8
|
- name: Install flake8
|
||||||
run: pip install flake8
|
run: pip install flake8
|
||||||
- name: Check for Syntax Error in novelWriter
|
- name: Syntax Error Check
|
||||||
run: flake8 nw --count --select=E9,F63,F7,F82 --show-source --statistics
|
run: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
||||||
- name: Check for Syntax Error in Tests
|
- name: Coding Style Violations
|
||||||
run: flake8 tests --count --select=E9,F63,F7,F82 --show-source --statistics
|
run: flake8 . --count --max-line-length=99 --ignore E203,E221,E226,E241,E251,E261,E266,E302,E305 --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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user