Skip to content

Commit

Permalink
ci: Bump crate-ci/typos from 1.26.8 to 1.27.0 in the ci group (pola-r…
Browse files Browse the repository at this point in the history
…s#19620)

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Stijn de Gooijer <[email protected]>
  • Loading branch information
2 people authored and tylerriccio33 committed Nov 8, 2024
1 parent 2148c19 commit 9f678a6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint-global.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ jobs:
- name: Lint Markdown and TOML
uses: dprint/[email protected]
- name: Spell Check with Typos
uses: crate-ci/typos@v1.26.8
uses: crate-ci/typos@v1.27.2
2 changes: 1 addition & 1 deletion py-polars/requirements-lint.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
mypy[faster-cache]==1.13.0
ruff==0.7.1
typos==1.26.8
typos==1.27.2
14 changes: 7 additions & 7 deletions py-polars/tests/unit/constructors/test_dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def test_df_init_from_generator_dict_view() -> None:
data = {
"keys": d.keys(),
"vals": d.values(),
"itms": d.items(),
"items": d.items(),
}
with pytest.raises(TypeError, match="unexpected value"):
pl.DataFrame(data, strict=True)
Expand All @@ -68,12 +68,12 @@ def test_df_init_from_generator_dict_view() -> None:
assert df.schema == {
"keys": pl.Int64,
"vals": pl.String,
"itms": pl.List(pl.String),
"items": pl.List(pl.String),
}
assert df.to_dict(as_series=False) == {
"keys": [0, 1, 2],
"vals": ["x", "y", "z"],
"itms": [["0", "x"], ["1", "y"], ["2", "z"]],
"items": [["0", "x"], ["1", "y"], ["2", "z"]],
}


Expand All @@ -86,19 +86,19 @@ def test_df_init_from_generator_reversed_dict_view() -> None:
data = {
"rev_keys": reversed(d.keys()),
"rev_vals": reversed(d.values()),
"rev_itms": reversed(d.items()),
"rev_items": reversed(d.items()),
}
df = pl.DataFrame(data, schema_overrides={"rev_itms": pl.Object})
df = pl.DataFrame(data, schema_overrides={"rev_items": pl.Object})

assert df.schema == {
"rev_keys": pl.Int64,
"rev_vals": pl.String,
"rev_itms": pl.Object,
"rev_items": pl.Object,
}
assert df.to_dict(as_series=False) == {
"rev_keys": [2, 1, 0],
"rev_vals": ["z", "y", "x"],
"rev_itms": [(2, "z"), (1, "y"), (0, "x")],
"rev_items": [(2, "z"), (1, "y"), (0, "x")],
}


Expand Down

0 comments on commit 9f678a6

Please sign in to comment.