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

Skip to content

Commit 9ca6983

Browse files
committed
Add pydocstyle checks to flake8
1 parent 2b8b189 commit 9ca6983

File tree

6 files changed

+8
-4
lines changed

6 files changed

+8
-4
lines changed

.flake8

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ ignore =
1010
F401, F403, F811, F841,
1111
# Some new flake8 ignores:
1212
N801, N802, N803, N806, N812,
13+
# pydocstyle
14+
D100, D101, D102, D103, D104, D105, D106, D107,
15+
D200, D202, D203, D204, D205, D207, D208, D209,
16+
D210, D211, D212, D213, D214, D215,
17+
D300, D301, D302,
18+
D400, D401, D402, D403, D404, D405, D406, D407, D408, D409,
19+
D410, D411, D412, D413, D414,
1320

1421
exclude =
1522
.git

lib/matplotlib/_constrained_layout.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ def _axes_all_finite_sized(fig):
8181
######################################################
8282
def do_constrained_layout(fig, renderer, h_pad, w_pad,
8383
hspace=None, wspace=None):
84-
8584
"""
8685
Do the constrained_layout. Called at draw time in
8786
``figure.constrained_layout()``

lib/matplotlib/axis.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,6 @@ def _get_text1(self):
440440
return t
441441

442442
def _get_text2(self):
443-
444443
'Get the default Text 2 instance'
445444
# x in data coords, y in axes coords
446445
trans, vert, horiz = self._get_text2_transform()

lib/matplotlib/bezier.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,6 @@ def point_at_t(self, t):
180180
@cbook._rename_parameter("3.1", "tolerence", "tolerance")
181181
def split_bezier_intersecting_with_closedpath(
182182
bezier, inside_closedpath, tolerance=0.01):
183-
184183
"""
185184
bezier : control points of the bezier segment
186185
inside_closedpath : a function which returns true if the point is inside

lib/matplotlib/image.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,6 @@ def __init__(self, ax,
818818
resample=False,
819819
**kwargs
820820
):
821-
822821
"""
823822
interpolation and cmap default to their rc settings
824823
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# Extra pip requirements for the travis flake8 build
22

33
flake8>=3.7
4+
flake8-docstrings

0 commit comments

Comments
 (0)