Consolidate flake8 settings
Consolidates sane flake8 settings to pyproject with the Flake8-pyproject plugin. Does not change logic of test workflow but allows base settings to live in pyproject for anyone using flake8 as an external linter (e.g. vscode) Also fixes some flake8 errors that were not being picked up by current testing, mostly unused imports.
This commit is contained in:
8
.github/workflows/test.yml
vendored
8
.github/workflows/test.yml
vendored
@@ -3,8 +3,12 @@ name: Python Test
|
||||
on:
|
||||
push:
|
||||
branches: [ master, development ]
|
||||
paths-ignore:
|
||||
- "*.md"
|
||||
pull_request:
|
||||
branches: [ master, development ]
|
||||
paths-ignore:
|
||||
- "*.md"
|
||||
|
||||
jobs:
|
||||
test:
|
||||
@@ -27,7 +31,7 @@ jobs:
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip flake8 pytest pytest-cov
|
||||
python -m pip install --upgrade pip Flake8-pyproject pytest pytest-cov
|
||||
pip install .
|
||||
|
||||
- name: Make configuration for tests
|
||||
@@ -38,7 +42,7 @@ jobs:
|
||||
|
||||
- name: Lint with flake8
|
||||
run: |
|
||||
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
||||
flake8 . --select=E9,F63,F7,F82
|
||||
|
||||
- name: Test with pytest
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user