From 87bf983c55b098440b2302009c309a539e38d09e Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Thu, 3 Feb 2022 19:31:15 +0100 Subject: [PATCH] test-network: disable irrelevant or one-time pylint checks --- test/test-network/systemd-networkd-tests.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py index 6be4b0eb76c..1f962470d45 100755 --- a/test/test-network/systemd-networkd-tests.py +++ b/test/test-network/systemd-networkd-tests.py @@ -1,5 +1,8 @@ #!/usr/bin/env python3 # SPDX-License-Identifier: LGPL-2.1-or-later +# pylint: disable=line-too-long,too-many-lines,too-many-branches,too-many-statements,too-many-arguments +# pylint: disable=too-many-public-methods,too-many-boolean-expressions,invalid-name +# pylint: disable=missing-function-docstring,missing-class-docstring,missing-module-docstring # systemd-networkd tests import argparse @@ -276,6 +279,7 @@ def expectedFailureIfFQPIEIsNotAvailable(): return f def setUpModule(): + # pylint: disable=global-statement global running_units os.makedirs(network_unit_file_path, exist_ok=True) @@ -380,6 +384,7 @@ def setUpModule(): check_output('systemctl restart systemd-udevd') def tearDownModule(): + # pylint: disable=global-statement global running_units shutil.rmtree(networkd_ci_path)