diff --git a/Makefile b/Makefile index 5ff3661..880aa4d 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 @@ -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" ]