chore(core): use flake8 style check for all PY_FILES

[no changelog]
This commit is contained in:
M1nd3r
2025-10-18 02:34:03 +02:00
committed by Petr Sedláček
parent 9f0a5dc16a
commit 6a392ad99c
2 changed files with 2 additions and 9 deletions

View File

@@ -6,7 +6,6 @@ help: ## show this help
## style commands:
PY_FILES = $(shell find . -type f -name '*.py' | sed 'sO^\./OO' | grep -f ./tools/style.py.include | grep -v -f ./tools/style.py.exclude ) common/protob/pb2py
PY_FILES_LIMITED = $(shell find . -type f -name '*.py' | sed 'sO^\./OO' | grep -f ./tools/style.py.include | grep -v -f ./tools/style.py.exclude | grep -v -f ./tools/style.py.typecheck.exclude ) common/protob/pb2py
C_FILES = $(shell find . -type f -name '*.[ch]' | grep -f ./tools/style.c.include | grep -v -f ./tools/style.c.exclude )
@@ -23,9 +22,7 @@ pystyle_check: ## run code style check on application sources and tests
@echo [TYPECHECK]
@make -C core typecheck
@echo [FLAKE8]
@flake8 $(PY_FILES_LIMITED)
@echo [FLAKE8 - limited]
@flake8 --extend-ignore=ANN $(PY_FILES)
@flake8 $(PY_FILES)
@echo [ISORT]
@isort --check-only $(PY_FILES)
@echo [BLACK]
@@ -48,9 +45,7 @@ pystyle: ## apply code style on application sources and tests
@echo [TYPECHECK]
@make -C core typecheck
@echo [FLAKE8]
@flake8 $(PY_FILES_LIMITED)
@echo [FLAKE8 - limited]
@flake8 --extend-ignore=ANN $(PY_FILES)
@flake8 $(PY_FILES)
@echo [PYLINT]
@pylint $(PY_FILES)
@echo [PYTHON]

View File

@@ -1,2 +0,0 @@
^core/tools/
^tools/