8000 STYLE: fix line length check of flake8 (#27307) · pandas-dev/pandas@1e42600 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1e42600

Browse files
jorisvandenbosschejreback
authored andcommitted
STYLE: fix line length check of flake8 (#27307)
1 parent e94639b commit 1e42600

File tree

6 files changed

+11
-12
lines changed

6 files changed

+11
-12
lines changed

pandas/core/groupby/grouper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ def __init__(
284284
if self.name is None:
285285
self.name = index.names[level]
286286

287-
self.grouper, self._labels, self._group_index = index._get_grouper_for_level(
287+
self.grouper, self._labels, self._group_index = index._get_grouper_for_level( # noqa: E501
288288
self.grouper, level
289289
)
290290

pandas/core/indexing.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1230,8 +1230,8 @@ def _validate_read_indexer(self, key, indexer, axis, raise_missing=False):
12301230
KeyError in the future, you can use .reindex() as an alternative.
12311231
12321232
See the documentation here:
1233-
https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#deprecate-loc-reindex-listlike"""
1234-
) # noqa
1233+
https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#deprecate-loc-reindex-listlike""" # noqa: E501
1234+
)
12351235

12361236
if not (ax.is_categorical() or ax.is_interval()):
12371237
warnings.warn(_missing_key_warning, FutureWarning, stacklevel=6)
@@ -1379,8 +1379,8 @@ class _IXIndexer(_NDFrameIndexer):
13791379
.iloc for positional indexing
13801380
13811381
See the documentation here:
1382-
http://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#ix-indexer-is-deprecated"""
1383-
) # noqa
1382+
http://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#ix-indexer-is-deprecated""" # noqa: E501
1383+
)
13841384

13851385
def __init__(self, name, obj):
13861386
warnings.warn(self._ix_deprecation_warning, FutureWarning, stacklevel=2)

pandas/io/parsers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1913,7 +1913,7 @@ def __init__(self, src, **kwds):
19131913
else:
19141914
if len(self._reader.header) > 1:
19151915
# we have a multi index in the columns
1916-
self.names, self.index_names, self.col_names, passed_names = self._extract_multi_indexer_columns(
1916+
self.names, self.index_names, self.col_names, passed_names = self._extract_multi_indexer_columns( # noqa: E501
19171917
self._reader.header, self.index_names, self.col_names, passed_names
19181918
)
19191919
else:
@@ -2308,7 +2308,7 @@ def __init__(self, f, **kwds):
23082308
# The original set is stored in self.original_columns.
23092309
if len(self.columns) > 1:
23102310
# we are processing a multi index column
2311-
self.columns, self.index_names, self.col_names, _ = self._extract_multi_indexer_columns(
2311+
self.columns, self.index_names, self.col_names, _ = self._extract_multi_indexer_columns( # noqa: E501
23122312
self.columns, self.index_names, self.col_names
23132313
)
23142314
# Update list of original names to include all indices.

pandas/tests/io/json/test_normalize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ def test_with_large_max_level(self):
684684
"CreatedBy.user.family_tree.father.name": "Father001",
685685
"CreatedBy.user.family_tree.father.father.Name": "Father002",
686686
"CreatedBy.user.family_tree.father.father.father.name": "Father003",
687-
"CreatedBy.user.family_tree.father.father.father.father.Name": "Father004",
687+
"CreatedBy.user.family_tree.father.father.father.father.Name": "Father004", # noqa: E501
688688
}
689689
]
690690
output = nested_to_record(input_data, max_level=max_level)

pandas/tests/util/test_hashing.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -338,9 +338,9 @@ def test_hash_collisions():
338338
#
339339
# https://github.com/pandas-dev/pandas/issues/14711#issuecomment-264885726
340340
hashes = [
341-
"Ingrid-9Z9fKIZmkO7i7Cn51Li34pJm44fgX6DYGBNj3VPlOH50m7HnBlPxfIwFMrcNJNMP6PSgLmwWnInciMWrCSAlLEvt7JkJl4IxiMrVbXSa8ZQoVaq5xoQPjltuJEfwdNlO6jo8qRRHvD8sBEBMQASrRa6TsdaPTPCBo3nwIBpE7YzzmyH0vMBhj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Vj8DO2Fmwg1NNl93rIAqC3mdqfrCxrzfvIY8aJdzin2cHVzy3QUJxZgHvtUtOLxoqnUHsYbNTeq0xcLXpTZEZCxD4PGubIuCNf32c33M7HFsnjWSEjE2yVdWKhmSVodyF8hFYVmhYnMCztQnJrt3O8ZvVRXd5IKwlLexiSp4h888w7SzAIcKgc3g5XQJf6MlSMftDXm9lIsE1mJNiJEv6uY6pgvC3fUPhatlR5JPpVAHNSbSEE73MBzJrhCAbOLXQumyOXigZuPoME7QgJcBalliQol7YZ9", # noqa: E501
342+
"Tim-b9MddTxOWW2AT1Py6vtVbZwGAmYCjbp89p8mxsiFoVX4FyDOF3wFiAkyQTUgwg9sVqVYOZo09Dh1AzhFHbgij52ylF0SEwgzjzHH8TGY8Lypart4p4onnDoDvVMBa0kdthVGKl6K0BDVGzyOXPXKpmnMF1H6rJzqHJ0HywfwS4XYpVwlAkoeNsiicHkJUFdUAhG229INzvIAiJuAHeJDUoyO4DCBqtoZ5TDend6TK7Y914yHlfH3g1WZu5LksKv68VQHJriWFYusW5e6ZZ6dKaMjTwEGuRgdT66iU5nqWTHRH8WSzpXoCFwGcTOwyuqPSe0fTe21DVtJn1FKj9F9nEnR9xOvJUO7E0piCIF4Ad9yAIDY4DBimpsTfKXCu1vdHpKYerzbndfuFe5AhfMduLYZJi5iAw8qKSwR5h86ttXV0Mc0QmXz8dsRvDgxjXSmupPxBggdlqUlC828hXiTPD7am0yETBV0F3bEtvPiNJfremszcV8NcqAoARMe", # noqa: E501
343+
]
344344

345345
# These should be different.
346346
result1 = hash_array(np.asarray(hashes[0:1], dtype=object), "utf8")

setup.cfg

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ parentdir_prefix = pandas-
1414
[flake8]
1515
max-line-length = 88
1616
ignore =
17-
E501, # longer line length
1817
E203, # space before : (needed for how black formats slicing)
1918
W503, # line break before binary operator
2019
W504, # line break after binary operator

0 commit comments

Comments
 (0)
0