Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Bump crate-ci/typos from 1.26.8 to 1.27.0 in the ci group #19620

Merged
merged 2 commits into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading