python: flake8 configuration file

This commit is contained in:
sshakndr
2023-11-21 15:39:31 +07:00
parent 8ebbfa59be
commit 9389607aaf
3 changed files with 6 additions and 4 deletions

View File

@ -31,5 +31,4 @@ jobs:
- name: Lint Flake8
run: |
flake8 --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 --count --max-complexity=15 --max-line-length=120 --per-file-ignores="__init__.py:F4" --statistics
flake8 --count --show-source --statistics

View File

@ -0,0 +1,4 @@
[flake8]
max-complexity = 15
max-line-length = 120
per-file-ignores = __init__.py:F4

View File

@ -47,8 +47,7 @@ compose-prod: # Up containers in a production environment.
.PHONY: lint
lint: # Lint the source code for style and check for types.
@flake8
@mypy .
@flake8 --count --show-source --statistics
.PHONY: test
test: # Recursively run the tests.