Skip to content

Commit 15df0f3

Browse files
authored
Fix pylint complaints after pylint release (kedro-org#1072)
1 parent 4fa0e68 commit 15df0f3

File tree

9 files changed

+17
-16
lines changed

9 files changed

+17
-16
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,4 +132,4 @@ repos:
132132
language: system
133133
pass_filenames: false
134134
stages: [manual]
135-
entry: pylint -j 4 --disable=missing-docstring,redefined-outer-name,no-self-use,invalid-name,protected-access,too-many-arguments,too-many-public-methods tests
135+
entry: pylint -j 4 --disable=missing-docstring,redefined-outer-name,no-self-use,invalid-name,protected-access,too-many-arguments,too-many-public-methods,use-implicit-booleaness-not-comparison tests

features/steps/sh_run.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def run(
2020
print_output: If True will print previously captured stdout.
2121
Default is False.
2222
23-
kwargs: Extra options to pass to subprocess.
23+
**kwargs: Extra options to pass to subprocess.
2424
2525
Example:
2626
::

kedro/config/config.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def get(self, *patterns: str) -> Dict[str, Any]:
182182
return them in the form of a config dictionary.
183183
184184
Args:
185-
patterns: Glob patterns to match. Files, which names match
185+
*patterns: Glob patterns to match. Files, which names match
186186
any of the specified patterns, will be processed.
187187
188188
Raises:

kedro/config/templated_config.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def get(self, *patterns: str) -> Dict[str, Any]:
144144
dictionary of replacement values obtained in the ``__init__`` method.
145145
146146
Args:
147-
patterns: Glob patterns to match. Files, which names match
147+
*patterns: Glob patterns to match. Files, which names match
148148
any of the specified patterns, will be processed.
149149
150150
Returns:

kedro/framework/cli/cli.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def get_project_context(
107107
Supported keys are "verbose" and "context", and it defaults to "context".
108108
project_path: Optional path to where the project root is to load the context.
109109
If omitted, the current working directory will be used.
110-
kwargs: Optional custom arguments defined by users, which will be passed into
110+
**kwargs: Optional custom arguments defined by users, which will be passed into
111111
the constructor of the projects KedroContext subclass.
112112
113113
Returns:

kedro/framework/context/context.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ def load_context(project_path: Union[str, Path], **kwargs) -> KedroContext:
692692
693693
Args:
694694
project_path: Path to the Kedro project.
695-
kwargs: Optional kwargs for ``KedroContext`` class.
695+
**kwargs: Optional kwargs for ``KedroContext`` class.
696696
697697
Returns:
698698
Instance of ``KedroContext`` class defined in Kedro project.

kedro/framework/hooks/specs.py

+1
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ def on_node_error(
135135
class PipelineSpecs:
136136
"""Namespace that defines all specifications for a pipeline's lifecycle hooks."""
137137

138+
# pylint: disable=missing-param-doc
138139
@hook_spec
139140
def before_pipeline_run(
140141
self, run_params: Dict[str, Any], pipeline: Pipeline, catalog: DataCatalog

kedro/pipeline/node.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ def decorate(self, *decorators: Callable) -> "Node":
319319
new ``Node`` object, but with no changes to the function.
320320
321321
Args:
322-
decorators: Decorators to be applied on the node function.
322+
*decorators: Decorators to be applied on the node function.
323323
Decorators will be applied from right to left.
324324
325325
Returns:

kedro/pipeline/pipeline.py

+9-9
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ def only_nodes(self, *node_names: str) -> "Pipeline":
369369
nodes by name.
370370
371371
Args:
372-
node_names: One or more node names. The returned ``Pipeline``
372+
*node_names: One or more node names. The returned ``Pipeline``
373373
will only contain these nodes.
374374
375375
Raises:
@@ -486,7 +486,7 @@ def only_nodes_with_inputs(self, *inputs: str) -> "Pipeline":
486486
matches to the fully-qualified name only (i.e. name@format).
487487
488488
Args:
489-
inputs: A list of inputs which should be used as a starting
489+
*inputs: A list of inputs which should be used as a starting
490490
point of the new ``Pipeline``.
491491
492492
Raises:
@@ -512,7 +512,7 @@ def from_inputs(self, *inputs: str) -> "Pipeline":
512512
matches to the fully-qualified name only (i.e. name@format).
513513
514514
Args:
515-
inputs: A list of inputs which should be used as a starting point
515+
*inputs: A list of inputs which should be used as a starting point
516516
of the new ``Pipeline``
517517
518518
Raises:
@@ -552,7 +552,7 @@ def only_nodes_with_outputs(self, *outputs: str) -> "Pipeline":
552552
to the fully-qualified name only (i.e. name@format).
553553
554554
Args:
555-
outputs: A list of outputs which should be the final outputs
555+
*outputs: A list of outputs which should be the final outputs
556556
of the new ``Pipeline``.
557557
558558
Raises:
@@ -577,7 +577,7 @@ def to_outputs(self, *outputs: str) -> "Pipeline":
577577
to the fully-qualified name only (i.e. name@format).
578578
579579
Args:
580-
outputs: A list of outputs which should be the final outputs of
580+
*outputs: A list of outputs which should be the final outputs of
581581
the new ``Pipeline``.
582582
583583
Raises:
@@ -613,7 +613,7 @@ def from_nodes(self, *node_names: str) -> "Pipeline":
613613
directly or transitively on the provided nodes.
614614
615615
Args:
616-
node_names: A list of node_names which should be used as a
616+
*node_names: A list of node_names which should be used as a
617617
starting point of the new ``Pipeline``.
618618
Raises:
619619
ValueError: Raised when any of the given names do not exist in the
@@ -634,7 +634,7 @@ def to_nodes(self, *node_names: str) -> "Pipeline":
634634
or transitively by the provided nodes.
635635
636636
Args:
637-
node_names: A list of node_names which should be used as an
637+
*node_names: A list of node_names which should be used as an
638638
end point of the new ``Pipeline``.
639639
Raises:
640640
ValueError: Raised when any of the given names do not exist in the
@@ -656,7 +656,7 @@ def only_nodes_with_tags(self, *tags: str) -> "Pipeline":
656656
are provided.
657657
658658
Args:
659-
tags: A list of node tags which should be used to lookup
659+
*tags: A list of node tags which should be used to lookup
660660
the nodes of the new ``Pipeline``.
661661
Returns:
662662
Pipeline: A new ``Pipeline`` object, containing a subset of the
@@ -673,7 +673,7 @@ def decorate(self, *decorators: Callable) -> "Pipeline":
673673
return a copy of the current ``Pipeline`` object.
674674
675675
Args:
676-
decorators: Decorators to be applied on all node functions in
676+
*decorators: Decorators to be applied on all node functions in
677677
the pipeline, always applied from right to left.
678678
679679
Returns:

0 commit comments

Comments
 (0)