Add flake8-annotations to linting checks
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
[flake8]
|
||||
ignore = E133,E221,E226,E228,E241,W503
|
||||
ignore = E133,E221,E226,E228,E241,W503,ANN101,ANN102,ANN401
|
||||
per-file-ignores=tests/*:ANN
|
||||
max-line-length = 99
|
||||
exclude = docs/*
|
||||
|
||||
@@ -22,9 +22,9 @@ jobs:
|
||||
- name: Checkout Source
|
||||
uses: actions/checkout@v4
|
||||
- name: Install flake8
|
||||
run: pip install flake8 flake8-pep585
|
||||
run: pip install -r requirements-dev.txt
|
||||
- name: Syntax Check
|
||||
run: |
|
||||
flake8 --version
|
||||
flake8 novelwriter --count --show-source --statistics
|
||||
flake8 tests --count --show-source --statistics
|
||||
flake8 tests --count --show-source --statistics --extend-ignore ANN
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
flake8
|
||||
flake8-pep585
|
||||
flake8-annotations
|
||||
|
||||
Reference in New Issue
Block a user