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

chore[python]: Apply yesqa #4899

Merged
merged 1 commit into from
Sep 19, 2022
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 py-polars/polars/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -932,7 +932,7 @@ def read_parquet(
-------
DataFrame

""" # noqa: E501
"""
if use_pyarrow and n_rows:
raise ValueError("``n_rows`` cannot be used with ``use_pyarrow=True``.")

Expand Down
2 changes: 1 addition & 1 deletion py-polars/tests/unit/io/test_other.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def test_date_list_fmt() -> None:
[2020-01-01]
[2020-01-02]
[2020-01-05, 2020-01-05]
]""" # noqa: W191, E101
]""" # noqa: E101, W191
)


Expand Down
2 changes: 1 addition & 1 deletion py-polars/tests/unit/test_df.py
Original file line number Diff line number Diff line change
Expand Up @@ -1414,7 +1414,7 @@ def test_groupby_cat_list() -> None:
["a", "b"]
["b", "a"]
["b"]
]""" # noqa: W191, E101
]""" # noqa: E101, W191
)


Expand Down
10 changes: 5 additions & 5 deletions py-polars/tests/unit/test_fmt.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
[
"Somelongstring...
]
""", # noqa: W191, E101
""", # noqa: E101, W191
["Somelongstringto eeat wit me oundaf"],
id="Long string",
),
Expand All @@ -24,7 +24,7 @@
[
"😀😁😂😃😄😅😆😇😈😉😊😋😌😎...
]
""", # noqa: W191, E101
""", # noqa: E101, W191
["😀😁😂😃😄😅😆😇😈😉😊😋😌😎😏😐😑😒😓"],
id="Emojis",
),
Expand All @@ -34,7 +34,7 @@
[
"yzäöüäöüäöüäö"
]
""", # noqa: W191, E101
""", # noqa: E101, W191
["yzäöüäöüäöüäö"],
id="Characters with accents",
),
Expand Down Expand Up @@ -68,7 +68,7 @@
98
99
]
""", # noqa: W191, E101
""", # noqa: E101, W191
[*range(100)],
id="Long series",
),
Expand All @@ -95,5 +95,5 @@ def test_fmt_float(capfd: pytest.CaptureFixture[str]) -> None:
0.000085
8.00008
]
""" # noqa: W191, E101
""" # noqa: E101, W191
assert out == expected