diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2018-04-20 14:32:05 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2018-04-20 14:32:05 +0900 |
commit | 61889ed524c9a54e14bd335db871c69abf40f0c2 (patch) | |
tree | b6ab84535a38217011a69491627c162ae030c599 /buildstream/plugins/elements | |
parent | 78bd7f565f0c86c295f882d662fab2fa39d06cc1 (diff) | |
download | buildstream-61889ed524c9a54e14bd335db871c69abf40f0c2.tar.gz |
plugins: Disable attribute-defined-outside-init pylint error
Plugins set their attributes in configure(), because the
constructor is not public API.
Diffstat (limited to 'buildstream/plugins/elements')
-rw-r--r-- | buildstream/plugins/elements/compose.py | 1 | ||||
-rw-r--r-- | buildstream/plugins/elements/filter.py | 1 | ||||
-rw-r--r-- | buildstream/plugins/elements/import.py | 1 | ||||
-rw-r--r-- | buildstream/plugins/elements/junction.py | 1 | ||||
-rw-r--r-- | buildstream/plugins/elements/script.py | 2 |
5 files changed, 6 insertions, 0 deletions
diff --git a/buildstream/plugins/elements/compose.py b/buildstream/plugins/elements/compose.py index 0fa79336c..370f19dcf 100644 --- a/buildstream/plugins/elements/compose.py +++ b/buildstream/plugins/elements/compose.py @@ -40,6 +40,7 @@ from buildstream import Element, Scope # Element implementation for the 'compose' kind. class ComposeElement(Element): + # pylint: disable=attribute-defined-outside-init # The compose element's output is it's dependencies, so # we must rebuild if the dependencies change even when diff --git a/buildstream/plugins/elements/filter.py b/buildstream/plugins/elements/filter.py index 2487a9799..1c1a59b76 100644 --- a/buildstream/plugins/elements/filter.py +++ b/buildstream/plugins/elements/filter.py @@ -41,6 +41,7 @@ from buildstream import Element, ElementError, Scope class FilterElement(Element): + # pylint: disable=attribute-defined-outside-init # The filter element's output is it's dependencies, so # we must rebuild if the dependencies change even when diff --git a/buildstream/plugins/elements/import.py b/buildstream/plugins/elements/import.py index dfad178b5..747455d70 100644 --- a/buildstream/plugins/elements/import.py +++ b/buildstream/plugins/elements/import.py @@ -37,6 +37,7 @@ from buildstream import Element, BuildElement, ElementError # Element implementation for the 'import' kind. class ImportElement(BuildElement): + # pylint: disable=attribute-defined-outside-init def configure(self, node): self.source = self.node_subst_member(node, 'source') diff --git a/buildstream/plugins/elements/junction.py b/buildstream/plugins/elements/junction.py index a512222e0..b3f756380 100644 --- a/buildstream/plugins/elements/junction.py +++ b/buildstream/plugins/elements/junction.py @@ -115,6 +115,7 @@ from buildstream._pipeline import PipelineError # Element implementation for the 'junction' kind. class JunctionElement(Element): + # pylint: disable=attribute-defined-outside-init def configure(self, node): self.path = self.node_get_member(node, str, 'path', default='') diff --git a/buildstream/plugins/elements/script.py b/buildstream/plugins/elements/script.py index 7769cd120..6778b3fac 100644 --- a/buildstream/plugins/elements/script.py +++ b/buildstream/plugins/elements/script.py @@ -40,6 +40,8 @@ import buildstream # Element implementation for the 'script' kind. class ScriptElement(buildstream.ScriptElement): + # pylint: disable=attribute-defined-outside-init + def configure(self, node): for n in self.node_get_member(node, list, 'layout', []): dst = self.node_subst_member(n, 'destination') |