Skip to content

Commit 92437c9

Browse files
committed
Removed old pylint pragmas
1 parent a22ae92 commit 92437c9

File tree

9 files changed

+10
-28
lines changed

9 files changed

+10
-28
lines changed

.pre-commit-config.yaml

Lines changed: 0 additions & 15 deletions
This file was deleted.

autoapi/directives.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from .mappers.python.objects import PythonFunction
1010

1111

12-
class AutoapiSummary(Autosummary): # pylint: disable=too-few-public-methods
12+
class AutoapiSummary(Autosummary):
1313
"""A version of autosummary that uses static analysis."""
1414

1515
def get_items(self, names):
@@ -40,7 +40,7 @@ def get_items(self, names):
4040
return items
4141

4242

43-
class NestedParse(Directive): # pylint: disable=too-few-public-methods
43+
class NestedParse(Directive):
4444

4545
"""Nested parsing to remove the first heading of included rST
4646

autoapi/documenters.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
PythonException,
1313
)
1414

15-
# pylint: disable=attribute-defined-outside-init,unused-argument
16-
1715

1816
class AutoapiDocumenter(autodoc.Documenter):
1917
def get_attr(self, obj, name, *defargs):
@@ -82,7 +80,7 @@ def get_object_members(self, want_all):
8280
return False, children
8381

8482

85-
class _AutoapiDocstringSignatureMixin: # pylint: disable=too-few-public-methods
83+
class _AutoapiDocstringSignatureMixin:
8684
def format_signature(self, **kwargs):
8785
# Set "manual" attributes at the last possible moment.
8886
# This is to let a manual entry or docstring searching happen first,

autoapi/extension.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def _normalise_autoapi_dirs(autoapi_dirs, srcdir):
6060
return normalised_dirs
6161

6262

63-
def run_autoapi(app): # pylint: disable=too-many-branches
63+
def run_autoapi(app):
6464
"""Load AutoAPI data from the filesystem."""
6565
if not app.config.autoapi_dirs:
6666
raise ExtensionError("You must configure an autoapi_dirs setting")
@@ -143,7 +143,7 @@ def build_finished(app, exception):
143143
shutil.rmtree(normalized_root)
144144

145145

146-
def source_read(app, docname, source): # pylint: disable=unused-argument
146+
def source_read(app, docname, source):
147147
# temp_data is cleared after each source file has been processed,
148148
# so populate the annotations at the beginning of every file read.
149149
app.env.temp_data["annotations"] = getattr(app.env, "autoapi_annotations", {})

autoapi/inheritance_diagrams.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def _import_classes(class_names, currmodule):
6565

6666
def _class_info(
6767
self, classes, show_builtins, private_bases, parts, aliases, top_classes
68-
): # pylint: disable=too-many-arguments
68+
):
6969
all_classes = {}
7070

7171
def recurse(cls):

autoapi/mappers/base.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,6 @@ def load(self, patterns, dirs, ignore=None):
221221

222222
@staticmethod
223223
def find_files(patterns, dirs, ignore):
224-
# pylint: disable=too-many-nested-blocks
225224
if not ignore:
226225
ignore = []
227226

autoapi/mappers/python/astroid_utils.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
import astroid
66
import astroid.nodes
77

8-
# Disable until pylint uses astroid 2.7
9-
import astroid.nodes.node_classes # pylint: disable=no-name-in-module
8+
import astroid.nodes.node_classes
109
import sphinx.util.logging
1110

1211
_LOGGER = sphinx.util.logging.getLogger(__name__)
@@ -473,7 +472,7 @@ def _iter_args(args, annotations, defaults):
473472
yield (name, format_annotation(annotation), default)
474473

475474

476-
def get_args_info(args_node): # pylint: disable=too-many-branches,too-many-statements
475+
def get_args_info(args_node):
477476
result = []
478477
positional_only_defaults = []
479478
positional_or_keyword_defaults = args_node.defaults

autoapi/mappers/python/parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def parse_classdef(self, node, data=None):
152152
def parse_asyncfunctiondef(self, node):
153153
return self.parse_functiondef(node)
154154

155-
def parse_functiondef(self, node): # pylint: disable=too-many-branches
155+
def parse_functiondef(self, node):
156156
if astroid_utils.is_decorated_with_property_setter(node):
157157
return []
158158

docs/changes/+5819ffe5.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Removed old pylint pragmas

0 commit comments

Comments
 (0)