summaryrefslogtreecommitdiff
path: root/buildstream/utils.py
diff options
context:
space:
mode:
authorBenjamin Schubert <ben.c.schubert@gmail.com>2019-03-20 22:54:17 +0000
committerBenjamin Schubert <ben.c.schubert@gmail.com>2019-03-29 11:28:32 +0000
commitf08625b6a7b247665453b6a7d4872d6cb870bb30 (patch)
tree90f3922dd7148f1ea32b571c10db62e94bcb0b67 /buildstream/utils.py
parent83c56d548b9a7827399888189a828be3c7c7dfd2 (diff)
downloadbuildstream-bschubert/lint/cyclic-import.tar.gz
lint: Fix or silence 'cyclic-import' errors and enable pylint for itbschubert/lint/cyclic-import
Cyclic imports can be confusing because the order in which we import dependencies can make the import fail or not. We should not rely on ordering of imports for our code. This fixes everywhere possible the imports and silence explicitely some which are not convenient or would require big refactors
Diffstat (limited to 'buildstream/utils.py')
-rw-r--r--buildstream/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/utils.py b/buildstream/utils.py
index f4a329210..e730dc2a9 100644
--- a/buildstream/utils.py
+++ b/buildstream/utils.py
@@ -485,7 +485,7 @@ def get_bst_version():
(int): The minor version
"""
# Import this only conditionally, it's not resolved at bash complete time
- from . import __version__
+ from . import __version__ # pylint: disable=cyclic-import
versions = __version__.split('.')[:2]
if versions[0] == '0+untagged':