Skip to content

FIX: Restore D213 in flake8 #27904

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

Merged
merged 1 commit into from
Mar 11, 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
4 changes: 3 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ ignore =
D301,
D400, D401, D403, D404
# ignored by pydocstyle numpy docstring convention
D107, D203, D212, D213, D402, D413, D415, D416, D417,
D107, D203, D212, D402, D413, D415, D416, D417,
# while D213 is ignored by the numpy docstring convention, it's left out above,
# because we want to enforce it.

exclude =
.git
Expand Down
3 changes: 2 additions & 1 deletion lib/matplotlib/pyplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1002,7 +1002,8 @@ def gcf() -> Figure:


def fignum_exists(num: int | str) -> bool:
"""Return whether the figure with the given id exists.
"""
Return whether the figure with the given id exists.

Parameters
----------
Expand Down
3 changes: 1 addition & 2 deletions tools/gh_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,7 @@ def post_gist(content, description='', filename='file', auth=False):
return response_data['html_url']

def get_pull_request(project, num, auth=False):
"""get pull request info by number
"""
"""Return the pull request info for a given PR number."""
url = f"https://api.github.com/repos/{project}/pulls/{num}"
if auth:
header = make_auth_header()
Expand Down