Skip to content

Commit

Permalink
chore[python]: Apply yesqa (#4899)
Browse files Browse the repository at this point in the history
  • Loading branch information
stinodego committed Sep 19, 2022
1 parent 44098ae commit dfee057
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
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

0 comments on commit dfee057

Please sign in to comment.