Skip to content

Commit 76d5838

Browse files
authored
Merge pull request #27904 from timhoffm/flake8-D213
FIX: Restore D213 in flake8
2 parents cc83b59 + 1819d37 commit 76d5838

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.flake8

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ ignore =
1818
D301,
1919
D400, D401, D403, D404
2020
# ignored by pydocstyle numpy docstring convention
21-
D107, D203, D212, D213, D402, D413, D415, D416, D417,
21+
D107, D203, D212, D402, D413, D415, D416, D417,
22+
# while D213 is ignored by the numpy docstring convention, it's left out above,
23+
# because we want to enforce it.
2224

2325
exclude =
2426
.git

lib/matplotlib/pyplot.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1002,7 +1002,8 @@ def gcf() -> Figure:
10021002

10031003

10041004
def fignum_exists(num: int | str) -> bool:
1005-
"""Return whether the figure with the given id exists.
1005+
"""
1006+
Return whether the figure with the given id exists.
10061007
10071008
Parameters
10081009
----------

tools/gh_api.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,7 @@ def post_gist(content, description='', filename='file', auth=False):
9797
return response_data['html_url']
9898

9999
def get_pull_request(project, num, auth=False):
100-
"""get pull request info by number
101-
"""
100+
"""Return the pull request info for a given PR number."""
102101
url = f"https://api.github.com/repos/{project}/pulls/{num}"
103102
if auth:
104103
header = make_auth_header()

0 commit comments

Comments
 (0)