Add flake8-annotations to linting checks

This commit is contained in:
Veronica Berglyd Olsen
2024-04-09 16:52:26 +02:00
parent 80520c075d
commit 99c4b0acd0
3 changed files with 5 additions and 3 deletions
+2 -1
View File
@@ -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/*
+2 -2
View File
@@ -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
View File
@@ -1,2 +1,3 @@
flake8
flake8-pep585
flake8-annotations