Skip to content

Commit 59883ac

Browse files
akxmatthewdouglas
authored andcommitted
Update CI tools & fix typos (#1386)
* Update pre-commit tools * Fix typos
1 parent 6610c52 commit 59883ac

File tree

5 files changed

+11
-10
lines changed

5 files changed

+11
-10
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: v0.3.2
3+
rev: v0.6.9
44
hooks:
55
- id: ruff
66
args:
77
- --fix
88
- id: ruff-format
99
- repo: https://github.com/pre-commit/pre-commit-hooks
10-
rev: v4.5.0
10+
rev: v5.0.0
1111
hooks:
1212
- id: check-merge-conflict
1313
- id: check-yaml
@@ -18,6 +18,6 @@ repos:
1818
args:
1919
- --fix=lf
2020
- repo: https://github.com/crate-ci/typos
21-
rev: v1.18.2
21+
rev: v1.26.0
2222
hooks:
2323
- id: typos

_typos.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@
44
extend-ignore-re = [
55
"@Ther-nul", # valid Github user
66
]
7-
8-
[default.extend-identifiers]
7+
extend-ignore-identifiers-re = [
8+
".*arange.*",
9+
".*ARANGE.*",
10+
]
911

1012
[type.py.extend-words]
1113
"BA" = "BA" # used as a commented-out variable in tests

bitsandbytes/functional.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1875,7 +1875,7 @@ def percentile_clipping(grad: Tensor, gnorm_vec: Tensor, step: int, percentile:
18751875
gnorm_vec: torch.Tensor
18761876
Vector of gradient norms. 100 elements expected.
18771877
step: int
1878-
The current optimiation steps (number of past gradient norms).
1878+
The current optimization steps (number of past gradient norms).
18791879
18801880
"""
18811881
prev_device = pre_call(grad.device)

csrc/kernels.cu

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2616,7 +2616,7 @@ template <int THREADS, int ITEMS_PER_THREAD, int TILE_ROWS, int TILE_COLS, int T
26162616
//const int global_col = base_row; // block offset for col
26172617
if((base_col + subrow_loop_row + jrow + warp_id < outRows) && (base_row+warp_lane < rows))
26182618
{
2619-
// each row hae 32 columns and is offset by 1 to prevent bank conflict during storage into smem
2619+
// each row has 32 columns and is offset by 1 to prevent bank conflict during storage into smem
26202620
char data = smem_data[(subrow_loop_row + jrow + warp_id)*33 + warp_lane];
26212621

26222622
// each 32 columns we have new tile
@@ -2655,7 +2655,7 @@ template <int THREADS, int ITEMS_PER_THREAD, int TILE_ROWS, int TILE_COLS, int T
26552655
//const int global_col = base_row; // block offset for col
26562656
if((base_col + subrow_loop_row + jrow + warp_id < outRows) && (base_row+warp_lane < rows))
26572657
{
2658-
// each row hae 32 columns and is offset by 1 to prevent bank conflict during storage into smem
2658+
// each row has 32 columns and is offset by 1 to prevent bank conflict during storage into smem
26592659
char data = smem_data[(subrow_loop_row + jrow + warp_id)*33 + warp_lane];
26602660

26612661
// each 32 columns we have new tile
@@ -2732,7 +2732,7 @@ template <int THREADS, int ITEMS_PER_THREAD, int TILE_ROWS, int TILE_COLS, int T
27322732
//const int global_col = base_row; // block offset for col
27332733
if((base_col + subrow_loop_row + jrow + warp_id < outRows) && (base_row+warp_lane < rows))
27342734
{
2735-
// each row hae 32 columns and is offset by 1 to prevent bank conflict during storage into smem
2735+
// each row has 32 columns and is offset by 1 to prevent bank conflict during storage into smem
27362736
char data = smem_data[(subrow_loop_row + jrow + warp_id)*33 + warp_lane];
27372737

27382738
// each 32 columns we have new tile

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ ignore = [
3131
"F841", # Local assigned but not used (TODO: enable, these are likely bugs)
3232
"RUF012", # Mutable class attribute annotations
3333
]
34-
ignore-init-module-imports = true # allow to expose in __init__.py via imports
3534

3635
[tool.ruff.lint.extend-per-file-ignores]
3736
"**/__init__.py" = ["F401"] # allow unused imports in __init__.py

0 commit comments

Comments
 (0)