From b558956bd74cc633cfcabecf2680d8b98249c5fa Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Wed, 4 Sep 2019 17:04:56 +0200 Subject: [PATCH] doc: application.py: Make functions that don't use 'self' static Fixes this pylint warning: R0201: Method could be a function (no-self-use) Another option would be to turn them into regular functions, but that'd be a bigger change. Fixing pylint warnings for a CI check. Signed-off-by: Ulf Magnusson --- doc/extensions/zephyr/application.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/extensions/zephyr/application.py b/doc/extensions/zephyr/application.py index 6926b6b2460..008d8a06ba3 100644 --- a/doc/extensions/zephyr/application.py +++ b/doc/extensions/zephyr/application.py @@ -285,7 +285,8 @@ class ZephyrAppCommandsDirective(Directive): return content - def _mkdir(self, mkdir, build_dir, host_os, skip_config): + @staticmethod + def _mkdir(mkdir, build_dir, host_os, skip_config): content = [] if skip_config: content.append("# If you already made a build directory ({}) and ran cmake, just 'cd {}' instead.".format(build_dir, build_dir)) # noqa: E501 @@ -298,7 +299,8 @@ class ZephyrAppCommandsDirective(Directive): content.append('mkdir {} & cd {}'.format(build_dir, build_dir)) return content - def _cmake_args(self, **kwargs): + @staticmethod + def _cmake_args(**kwargs): board = kwargs['board'] shield = kwargs['shield'] conf = kwargs['conf']