diff --git a/.github/workflows/lint-global.yml b/.github/workflows/lint-global.yml index 8a599fe382a9..2df859cf324c 100644 --- a/.github/workflows/lint-global.yml +++ b/.github/workflows/lint-global.yml @@ -15,4 +15,4 @@ jobs: - name: Lint Markdown and TOML uses: dprint/check@v2.2 - name: Spell Check with Typos - uses: crate-ci/typos@v1.24.2 + uses: crate-ci/typos@v1.25.0 diff --git a/crates/polars-arrow/src/array/mod.rs b/crates/polars-arrow/src/array/mod.rs index 36f285dfd3d3..1004e36f2514 100644 --- a/crates/polars-arrow/src/array/mod.rs +++ b/crates/polars-arrow/src/array/mod.rs @@ -15,7 +15,7 @@ //! to a concrete struct based on [`PhysicalType`](crate::datatypes::PhysicalType) available from [`Array::dtype`]. //! All immutable arrays are backed by [`Buffer`](crate::buffer::Buffer) and thus cloning and slicing them is `O(1)`. //! -//! Most arrays contain a [`MutableArray`] counterpart that is neither clonable nor sliceable, but +//! Most arrays contain a [`MutableArray`] counterpart that is neither cloneable nor sliceable, but //! can be operated in-place. use std::any::Any; use std::sync::Arc; diff --git a/crates/polars-ops/src/chunked_array/list/sets.rs b/crates/polars-ops/src/chunked_array/list/sets.rs index 4a3187631575..a26d76b5a768 100644 --- a/crates/polars-ops/src/chunked_array/list/sets.rs +++ b/crates/polars-ops/src/chunked_array/list/sets.rs @@ -94,7 +94,7 @@ where set2.clear(); set2.extend(b); } - // We could speed this up, but implementing ourselves, but we need to have a clonable + // We could speed this up, but implementing ourselves, but we need to have a cloneable // iterator as we need 2 passes set.extend(a); out.extend_buf(set.symmetric_difference(set2).copied()) diff --git a/crates/polars-parquet/src/parquet/encoding/delta_length_byte_array/encoder.rs b/crates/polars-parquet/src/parquet/encoding/delta_length_byte_array/encoder.rs index d768b10c24f3..4e57c699504f 100644 --- a/crates/polars-parquet/src/parquet/encoding/delta_length_byte_array/encoder.rs +++ b/crates/polars-parquet/src/parquet/encoding/delta_length_byte_array/encoder.rs @@ -1,6 +1,6 @@ use crate::parquet::encoding::delta_bitpacked; -/// Encodes a clonable iterator of `&[u8]` into `buffer`. This does not allocated on the heap. +/// Encodes a cloneable iterator of `&[u8]` into `buffer`. This does not allocated on the heap. /// # Implementation /// This encoding is equivalent to call [`delta_bitpacked::encode`] on the lengths of the items /// of the iterator followed by extending the buffer from each item of the iterator. diff --git a/crates/polars-pipe/src/executors/sinks/group_by/primitive/mod.rs b/crates/polars-pipe/src/executors/sinks/group_by/primitive/mod.rs index 9bfddb7d3f1d..8715dd6f3fa9 100644 --- a/crates/polars-pipe/src/executors/sinks/group_by/primitive/mod.rs +++ b/crates/polars-pipe/src/executors/sinks/group_by/primitive/mod.rs @@ -277,7 +277,7 @@ where let s = s.to_physical_repr(); let s = prepare_key(&s, chunk); - // todo! ammortize allocation + // TODO: Amortize allocation. for phys_e in self.aggregation_columns.iter() { let s = phys_e.evaluate(chunk, &context.execution_state)?; let s = s.to_physical_repr(); diff --git a/crates/polars-pipe/src/executors/sinks/group_by/string.rs b/crates/polars-pipe/src/executors/sinks/group_by/string.rs index d2fec9c16173..0855e4cbf42d 100644 --- a/crates/polars-pipe/src/executors/sinks/group_by/string.rs +++ b/crates/polars-pipe/src/executors/sinks/group_by/string.rs @@ -232,7 +232,7 @@ impl StringGroupbySink { let s = s.to_physical_repr(); let s = prepare_key(&s, chunk); - // todo! ammortize allocation + // TODO: Amortize allocation. for phys_e in self.aggregation_columns.iter() { let s = phys_e.evaluate(chunk, &context.execution_state)?; let s = s.to_physical_repr(); diff --git a/py-polars/requirements-lint.txt b/py-polars/requirements-lint.txt index 1490335f9266..26762ec671b0 100644 --- a/py-polars/requirements-lint.txt +++ b/py-polars/requirements-lint.txt @@ -1,3 +1,3 @@ mypy==1.11.1 ruff==0.6.4 -typos==1.24.2 +typos==1.25.0 diff --git a/py-polars/tests/unit/io/test_scan.py b/py-polars/tests/unit/io/test_scan.py index 3da1ade6b1e3..799c4953cbf6 100644 --- a/py-polars/tests/unit/io/test_scan.py +++ b/py-polars/tests/unit/io/test_scan.py @@ -149,7 +149,7 @@ def data_file_glob(session_tmp_dir: Path, data_file_extension: str) -> _DataFile assert sum(row_counts) == 10000 # Make sure we pad file names with enough zeros to ensure correct - # lexographical ordering. + # lexicographical ordering. assert len(row_counts) < 100 # Make sure that some of our data frames consist of multiple chunks which