diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7cca2c3..d398e68 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ fail_fast: false repos: - repo: https://github.com/pre-commit/pre-commit - rev: v4.6.0 + rev: v4.6.1 hooks: - id: validate_manifest name: ๐Ÿ› ๏ธ pre-commit ยท Validate pre-commit configuration @@ -57,9 +57,9 @@ repos: - id: ruff-format name: ๐Ÿ ruff ยท Format Python code repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.12 + rev: v0.16.2 - hooks: - id: uv-lock name: ๐Ÿ uv ยท Lock dependencies repo: https://github.com/astral-sh/uv-pre-commit - rev: 0.11.12 + rev: 0.12.3 diff --git a/src/debug_dojo/_cli.py b/src/debug_dojo/_cli.py index 935a976..f488114 100644 --- a/src/debug_dojo/_cli.py +++ b/src/debug_dojo/_cli.py @@ -9,7 +9,7 @@ from rich import print as rich_print from debug_dojo._config import load_config -from debug_dojo._config_models import DebuggerType # noqa: TC001 +from debug_dojo._config_models import DebuggerType from debug_dojo._execution import ExecMode, execute_with_debug cli = typer.Typer( @@ -24,7 +24,7 @@ no_args_is_help=True, context_settings={"allow_extra_args": True, "ignore_unknown_options": True}, ) -def run( # noqa: PLR0913 +def run( ctx: typer.Context, target_name: Annotated[ str | None, diff --git a/src/debug_dojo/_execution.py b/src/debug_dojo/_execution.py index db61c5a..3e83f1d 100644 --- a/src/debug_dojo/_execution.py +++ b/src/debug_dojo/_execution.py @@ -113,7 +113,7 @@ def _handle_exception(e: Exception, target_name: str, config: DebugDojoConfig) - rich_print(f"[red]Error while running {target_name}:[/red]\n{e}") rich_print(traceback.format_exc()) if config.exceptions.post_mortem: - import ipdb # pyright: ignore[reportMissingTypeStubs] # noqa: PLC0415, T100 + import ipdb # pyright: ignore[reportMissingTypeStubs] # noqa: T100 rich_print("[blue]Entering post-mortem debugging session...[/blue]") ipdb.post_mortem(e.__traceback__) # pyright: ignore[reportUnknownMemberType] diff --git a/tests/cli/test_cli_functionalities.py b/tests/cli/test_cli_functionalities.py index 92e600b..64dcd22 100644 --- a/tests/cli/test_cli_functionalities.py +++ b/tests/cli/test_cli_functionalities.py @@ -5,7 +5,7 @@ from debug_dojo._cli import cli -def _breakpoint_ipdb( # noqa: PLR0913, PLR0917 # pyright: ignore[reportUnusedFunction] +def _breakpoint_ipdb( # pyright: ignore[reportUnusedFunction] runner: CliRunner, test_config_path: str, test_target_breakpoint: str,