Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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..."
Expand Down
25 changes: 4 additions & 21 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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" ]