aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/project/ci/dirs.py
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-04-13 21:59:36 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-04-13 21:59:36 +0300
commitff3492ae4752d9b53cadc9d89f4fcb7df5c7afe7 (patch)
tree22810f99e09501786d1c786fa88b8f6901503597 /project/ci/dirs.py
parentproject.ci: hide the --hint parameter (diff)
downloadcmake-common-ff3492ae4752d9b53cadc9d89f4fcb7df5c7afe7.tar.gz
cmake-common-ff3492ae4752d9b53cadc9d89f4fcb7df5c7afe7.zip
fix PyLint warnings
Diffstat (limited to '')
-rw-r--r--project/ci/dirs.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/project/ci/dirs.py b/project/ci/dirs.py
index 60fbdf8..6c9aa7a 100644
--- a/project/ci/dirs.py
+++ b/project/ci/dirs.py
@@ -44,15 +44,18 @@ class Dirs(abc.ABC):
def this_one(self):
pass
- def get_toolset(self):
+ @staticmethod
+ def get_toolset():
if 'TOOLSET' in os.environ:
return ToolchainType.parse(os.environ['TOOLSET'])
return None
- def get_platform(self):
+ @staticmethod
+ def get_platform():
return Platform.parse(env('PLATFORM'))
- def get_configuration(self):
+ @staticmethod
+ def get_configuration():
return Configuration.parse(env('CONFIGURATION'))
@abc.abstractmethod
@@ -66,7 +69,8 @@ class Dirs(abc.ABC):
def get_prebuilt_boost_dir(self):
pass
- def get_boost_version(self):
+ @staticmethod
+ def get_boost_version():
return Version.from_string(env('BOOST_VERSION'))
def get_boost_dir(self):