Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1819d37

Browse filesBrowse files
committed
FIX: Restore D213 in flake8
This got accidentally ignored in #25147. We want D213 (#17125, #17193) https://matplotlib.org/devdocs/devel/document.html#quote-positions
1 parent f007886 commit 1819d37
Copy full SHA for 1819d37

File tree

Expand file treeCollapse file tree

3 files changed

+6
-4
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+6
-4
lines changed

‎.flake8

Copy file name to clipboardExpand all lines: .flake8
+3-1Lines 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

Copy file name to clipboardExpand all lines: lib/matplotlib/pyplot.py
+2-1Lines 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

Copy file name to clipboardExpand all lines: tools/gh_api.py
+1-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.