diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 99cd3c7..f42d385 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -21,7 +21,7 @@ repos: args: [--markdown-linebreak-ext=md] - repo: https://github.com/igorshubovych/markdownlint-cli - rev: v0.47.0 + rev: v0.48.0 hooks: - id: markdownlint args: [-c, .markdownlint.yaml, --fix] @@ -33,7 +33,7 @@ repos: exclude: docs/ - repo: https://github.com/adrienverge/yamllint - rev: v1.37.1 + rev: v1.38.0 hooks: - id: yamllint @@ -48,13 +48,13 @@ repos: - id: shellcheck - repo: https://github.com/scop/pre-commit-shfmt - rev: v3.12.0-2 + rev: v3.13.0-1 hooks: - id: shfmt args: [-w, -s, -i=4] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.14.10 + rev: v0.15.9 hooks: - id: ruff-check args: [--fix, --line-length=100] @@ -62,7 +62,7 @@ repos: args: [--line-length=100] - repo: https://github.com/pre-commit/mirrors-clang-format - rev: v21.1.8 + rev: v22.1.2 hooks: - id: clang-format types_or: [c++, c, cuda] diff --git a/autoware_ml/tests/models/test_ptv3_backbone.py b/autoware_ml/tests/models/test_ptv3_backbone.py index 8e49576..df9e7a3 100644 --- a/autoware_ml/tests/models/test_ptv3_backbone.py +++ b/autoware_ml/tests/models/test_ptv3_backbone.py @@ -40,11 +40,9 @@ def test_serialized_attention_requires_supported_flash_configuration() -> None: def test_serialized_attention_uses_flash_module_when_enabled() -> None: flash_module = SimpleNamespace( - flash_attn_varlen_qkvpacked_func=lambda qkv, - cu_seqlens, - max_seqlen, - dropout_p, - softmax_scale: (qkv[:, 2]) + flash_attn_varlen_qkvpacked_func=lambda qkv, cu_seqlens, max_seqlen, dropout_p, softmax_scale: ( + qkv[:, 2] + ) ) point = Point( { @@ -83,11 +81,9 @@ def test_serialized_attention_uses_flash_module_when_enabled() -> None: def test_build_export_module_disables_flash_attention_without_mutating_live_backbone() -> None: flash_module = SimpleNamespace( - flash_attn_varlen_qkvpacked_func=lambda qkv, - cu_seqlens, - max_seqlen, - dropout_p, - softmax_scale: (qkv[:, 2]) + flash_attn_varlen_qkvpacked_func=lambda qkv, cu_seqlens, max_seqlen, dropout_p, softmax_scale: ( + qkv[:, 2] + ) ) with patch( "autoware_ml.models.segmentation3d.backbones.ptv3.load_flash_attn_module",