diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a859d05af..8ac37502e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,13 +1,13 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.3.2 + rev: v0.6.9 hooks: - id: ruff args: - --fix - id: ruff-format - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v5.0.0 hooks: - id: check-merge-conflict - id: check-yaml @@ -18,6 +18,6 @@ repos: args: - --fix=lf - repo: https://github.com/crate-ci/typos - rev: v1.18.2 + rev: v1.26.0 hooks: - id: typos diff --git a/_typos.toml b/_typos.toml index e4e7287fb..955c6cb79 100644 --- a/_typos.toml +++ b/_typos.toml @@ -4,8 +4,10 @@ extend-ignore-re = [ "@Ther-nul", # valid Github user ] - -[default.extend-identifiers] +extend-ignore-identifiers-re = [ + ".*arange.*", + ".*ARANGE.*", +] [type.py.extend-words] "BA" = "BA" # used as a commented-out variable in tests diff --git a/bitsandbytes/functional.py b/bitsandbytes/functional.py index c35881a6a..1132380be 100644 --- a/bitsandbytes/functional.py +++ b/bitsandbytes/functional.py @@ -1875,7 +1875,7 @@ def percentile_clipping(grad: Tensor, gnorm_vec: Tensor, step: int, percentile: gnorm_vec: torch.Tensor Vector of gradient norms. 100 elements expected. step: int - The current optimiation steps (number of past gradient norms). + The current optimization steps (number of past gradient norms). """ prev_device = pre_call(grad.device) diff --git a/csrc/kernels.cu b/csrc/kernels.cu index b848a92eb..017659518 100644 --- a/csrc/kernels.cu +++ b/csrc/kernels.cu @@ -2616,7 +2616,7 @@ template