From d2efbf97c846839b60305077398ceda9fd8a3d84 Mon Sep 17 00:00:00 2001 From: Dmitrii Safronov Date: Wed, 6 May 2026 04:28:57 +0400 Subject: [PATCH 1/2] ci: Remove test-coverage target Signed-off-by: Dmitrii Safronov --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5ff3661..a431f51 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ PYTEST_CMD = uv run python -m pytest -v COVERAGE_OPTS = --cov --cov-report=term-missing --cov-report=html # Phony targets -.PHONY: all clean dead-code format help install lint test test-coverage +.PHONY: all clean dead-code format help install lint test # Default target help: ## Show this help message From cf72ad6a1550f2055564e991d448008fc833676e Mon Sep 17 00:00:00 2001 From: Dmitrii Safronov Date: Wed, 6 May 2026 04:30:20 +0400 Subject: [PATCH 2/2] ci: Update Linting Tools Configuration Modify linting configuration to check only src directory and update exclude paths for mypy, flake8 and bandit tools Signed-off-by: Dmitrii Safronov --- Makefile | 2 +- pyproject.toml | 25 ++++--------------------- 2 files changed, 5 insertions(+), 22 deletions(-) diff --git a/Makefile b/Makefile index a431f51..880aa4d 100644 --- a/Makefile +++ b/Makefile @@ -30,7 +30,7 @@ format: ## Format code lint: ## Run linting tools @echo "Running linting tools..." - uv run black --check . && uv run isort --check-only . && uv run flake8 . && uv run mypy . && uv run bandit -r -c pyproject.toml . + uv run black --check . && uv run isort --check-only . && uv run flake8 . && uv run mypy && uv run bandit -c pyproject.toml -r src/ dead-code: ## Check for dead code using vulture @echo "Checking for dead code..." diff --git a/pyproject.toml b/pyproject.toml index 1f9f7e7..b9a5f7c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,32 +54,18 @@ dev = [ [tool.isort] profile = "black" -line_length = 88 -multi_line_output = 3 [tool.black] line-length = 88 include = "\\.pyi?$" -extend-exclude = """ -/( - \\.eggs - | \\.git - | \\.hg - | \\.mypy_cache - | \\.tox - | \\.venv - | build - | dist -)/ -""" [tool.flake8] max-line-length = 88 extend-ignore = [ "E203", "W503" ] -exclude = [ ".venv", "__pycache__", ".git", "htmlcov" ] +exclude = [ ".venv" ] [tool.mypy] -exclude = "tests/" +files = [ "src" ] warn_return_any = true warn_unused_configs = true disallow_untyped_defs = true @@ -93,9 +79,6 @@ warn_no_return = true warn_unreachable = true strict_equality = true -[tool.bandit] -exclude_dirs = [ ".venv", "__pycache__", ".git", "htmlcov", "tests" ] - [tool.coverage.run] source = [ "src" ] branch = true @@ -117,8 +100,8 @@ skip_covered = false [tool.coverage.html] directory = "htmlcov" + [tool.vulture] min_confidence = 80 -exclude = [ "__pycache__" ] ignore_names = [ "cls" ] -paths = [ "src", "tests" ] +paths = [ "src" ]