From 6d602cb8aaef70ec7f27a640658d16991cad45eb Mon Sep 17 00:00:00 2001 From: softir <elisabetta.giani@inaf.it> Date: Fri, 3 Apr 2020 18:10:46 +0200 Subject: [PATCH] AT5-370: small changes to pass code linting. --- cspse/lmc/__init__.py | 3 +-- cspse/lmc/decorators.py | 2 +- docker/test-harness/Makefile | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/cspse/lmc/__init__.py b/cspse/lmc/__init__.py index 0fb30f2..1daa8af 100644 --- a/cspse/lmc/__init__.py +++ b/cspse/lmc/__init__.py @@ -1,6 +1,5 @@ __all__ = ( - "CspSubElementMaster", - "CspSubElementSubarray" + "CspSubElementMaster" ) from .subelement_master import CspSubElementMaster diff --git a/cspse/lmc/decorators.py b/cspse/lmc/decorators.py index 1fe7555..4436440 100644 --- a/cspse/lmc/decorators.py +++ b/cspse/lmc/decorators.py @@ -91,7 +91,7 @@ class IsCommandAllowed(object): cmd_to_exec = f.__name__ # the command input argument input_arg = args[1] - device_list = input_arg + #device_list = input_arg # Note: device list is a reference to args[1]: changing # device_list content, args[1] changes accordingly! num_of_devices = len(input_arg) diff --git a/docker/test-harness/Makefile b/docker/test-harness/Makefile index f951fe0..3e47977 100644 --- a/docker/test-harness/Makefile +++ b/docker/test-harness/Makefile @@ -24,7 +24,7 @@ test: lint: pip3 install pylint2junit; \ mkdir -p /build/reports; \ - cd /app && pylint --output-format=parseable csp_lmc_common | tee /build/csp-lmc-subelement-code-analysis.stdout; \ + cd /app && pylint --output-format=parseable cspse/lmc | tee /build/csp-lmc-subelement-code-analysis.stdout; \ cd /app && pylint --output-format=pylint2junit.JunitReporter cspse/lmc > /build/reports/csp-lmc-subelement-linting.xml; .PHONY: all test lint -- GitLab