diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6b4e7d12a..47c029121 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -32,7 +32,7 @@ repos: ] - repo: https://github.com/psf/black-pre-commit-mirror - rev: 26.5.1 + rev: 26.10.0 hooks: - id: black files: (.*\.py)$ @@ -52,7 +52,7 @@ repos: - black==26.5.1 - repo: https://github.com/codespell-project/codespell - rev: v2.4.2 + rev: v2.4.3 hooks: - id: codespell args: [-w] @@ -61,26 +61,26 @@ repos: - tomli - repo: https://github.com/crate-ci/typos - rev: v1.48.0 + rev: typos-dict-v0.14.2 hooks: - id: typos exclude: ^auto_round/export/export_to_gguf/conversion/.*\.py$ - repo: https://github.com/pycqa/isort - rev: 8.0.1 + rev: 9.0.2 hooks: - id: isort exclude: ^auto_round/export/export_to_gguf/conversion/.*\.py$ - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.20 + rev: v0.16.10 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix, --no-cache] exclude: ^auto_round/export/export_to_gguf/conversion/.*\.py$ - repo: https://github.com/tcort/markdown-link-check - rev: v3.14.2 + rev: v3.15.0 hooks: - id: markdown-link-check args: [-q, -c .azure-pipelines/scripts/codeScan/markdown-link-check/markdown-link-check.json] diff --git a/auto_round_extension/ark/auto_round_kernel/sparse_attention.py b/auto_round_extension/ark/auto_round_kernel/sparse_attention.py index e45febf88..d3d6f7837 100644 --- a/auto_round_extension/ark/auto_round_kernel/sparse_attention.py +++ b/auto_round_extension/ark/auto_round_kernel/sparse_attention.py @@ -22,9 +22,7 @@ ) from . import sagev1 as _dense_sagev1 from . import sagev1_pvi8 as _dense_sagev1_pvi8 -from . import ( - sdpa, -) +from . import sdpa def _get_xpu_sparse_kernel_backend() -> str: diff --git a/test/unit/common/algorithms/test_rotation.py b/test/unit/common/algorithms/test_rotation.py index 4f8b02016..a55752831 100644 --- a/test/unit/common/algorithms/test_rotation.py +++ b/test/unit/common/algorithms/test_rotation.py @@ -62,15 +62,9 @@ from auto_round.algorithms.transforms.hadamard.inplace.hooks import ( deterministic_hadamard_matrix as inplace_det_hadamard, ) -from auto_round.algorithms.transforms.hadamard.inplace.hooks import ( - get_hadK, - get_or_create_random_hadamard, -) +from auto_round.algorithms.transforms.hadamard.inplace.hooks import get_hadK, get_or_create_random_hadamard from auto_round.algorithms.transforms.hadamard.inplace.hooks import is_pow2 as inplace_is_pow2 -from auto_round.algorithms.transforms.hadamard.inplace.hooks import ( - matmul_hadU, - matmul_hadUt, -) +from auto_round.algorithms.transforms.hadamard.inplace.hooks import matmul_hadU, matmul_hadUt from auto_round.algorithms.transforms.hadamard.inplace.hooks import random_hadamard_matrix as inplace_rand_hadamard from auto_round.algorithms.transforms.hadamard.inplace.model_config import ( MAPPING_REGISTRY,