Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add pydocstyle checks to flake8 #14063

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
Apr 29, 2019
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
7 changes: 7 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ ignore =
F401, F403, F811, F841,
# Some new flake8 ignores:
N801, N802, N803, N806, N812,
# pydocstyle
D100, D101, D102, D103, D104, D105, D106, D107,
D200, D202, D203, D204, D205, D207, D208, D209,
D210, D211, D212, D213, D214, D215,
D300, D301, D302,
D400, D401, D402, D403, D404, D405, D406, D407, D408, D409,
D410, D411, D412, D413, D414,

exclude =
.git
Expand Down
1 change: 0 additions & 1 deletion lib/matplotlib/_constrained_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ def _axes_all_finite_sized(fig):
######################################################
def do_constrained_layout(fig, renderer, h_pad, w_pad,
hspace=None, wspace=None):

"""
Do the constrained_layout. Called at draw time in
``figure.constrained_layout()``
Expand Down
1 change: 0 additions & 1 deletion lib/matplotlib/axis.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,6 @@ def _get_text1(self):
return t

def _get_text2(self):

'Get the default Text 2 instance'
# x in data coords, y in axes coords
trans, vert, horiz = self._get_text2_transform()
Expand Down
1 change: 0 additions & 1 deletion lib/matplotlib/bezier.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@ def point_at_t(self, t):
@cbook._rename_parameter("3.1", "tolerence", "tolerance")
def split_bezier_intersecting_with_closedpath(
bezier, inside_closedpath, tolerance=0.01):

"""
bezier : control points of the bezier segment
inside_closedpath : a function which returns true if the point is inside
Expand Down
1 change: 0 additions & 1 deletion lib/matplotlib/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,6 @@ def __init__(self, ax,
resample=False,
**kwargs
):

"""
interpolation and cmap default to their rc settings

Expand Down
1 change: 0 additions & 1 deletion lib/matplotlib/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -2014,7 +2014,6 @@ def __init__(self, ax, onselect, drawtype='box',
lineprops=None, rectprops=None, spancoords='data',
button=None, maxdist=10, marker_props=None,
interactive=False, state_modifier_keys=None):

"""
Create a selector in *ax*. When a selection is made, clear
the span and call onselect with::
Expand Down
1 change: 1 addition & 0 deletions requirements/testing/travis_flake8.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Extra pip requirements for the travis flake8 build

flake8>=3.7
flake8-docstrings