From 9e5ab021473c25fc39b4d92cab88616a4d12dac1 Mon Sep 17 00:00:00 2001 From: Mark Paronyan Date: Wed, 30 Sep 2026 20:45:42 +0300 Subject: [PATCH 01/18] style: remove unused noqa directives --- gns3server/agent/gns3_copilot/agent/context_manager.py | 4 ++-- .../agent/gns3_copilot/tools_v2/config_tools_nornir.py | 2 +- .../gns3_copilot/tools_v2/display_tools_nornir.py | 2 +- .../agent/gns3_copilot/tools_v2/vpcs_tools_netmiko.py | 2 +- .../gns3_copilot/utils/custom_netmiko/__init__.py | 6 +++--- .../utils/custom_netmiko/tests/test_huawei_ce.py | 2 +- .../utils/custom_netmiko/tests/test_ruijie_telnet.py | 4 ++-- .../utils/custom_netmiko/tests/test_vpcs_telnet.py | 10 +++++----- .../agent/gns3_copilot/utils/gns3_drawing_utils.py | 6 +++--- gns3server/api/routes/controller/netmiko.py | 2 +- 10 files changed, 20 insertions(+), 20 deletions(-) diff --git a/gns3server/agent/gns3_copilot/agent/context_manager.py b/gns3server/agent/gns3_copilot/agent/context_manager.py index 5337c3d95..419e7785c 100644 --- a/gns3server/agent/gns3_copilot/agent/context_manager.py +++ b/gns3server/agent/gns3_copilot/agent/context_manager.py @@ -391,10 +391,10 @@ def create_pre_model_hook( max_tokens_for_trim = max_input_tokens - tool_tokens # Validate budget and provide actionable warnings - if system_tokens + tool_tokens > max_input_tokens: # noqa: E501 + if system_tokens + tool_tokens > max_input_tokens: logger.error( "System prompt (%d tokens) + tools (%d tokens) EXCEED input " - "budget (%d tokens). This will likely cause LLM call failures. " # noqa: E501 + "budget (%d tokens). This will likely cause LLM call failures. " "Recommendations: 1) Reduce system prompt length, 2) Reduce " "number of tools, 3) Use a model with larger context window, " "or 4) Switch to 'conservative' strategy.", diff --git a/gns3server/agent/gns3_copilot/tools_v2/config_tools_nornir.py b/gns3server/agent/gns3_copilot/tools_v2/config_tools_nornir.py index ed15f0589..6b96e6202 100644 --- a/gns3server/agent/gns3_copilot/tools_v2/config_tools_nornir.py +++ b/gns3server/agent/gns3_copilot/tools_v2/config_tools_nornir.py @@ -57,7 +57,7 @@ from gns3server.agent.gns3_copilot.utils.command_filter import ( # Import custom Netmiko device types for GNS3 emulation # This registers gns3_huawei_telnet_ce and other custom device types # NOTE: Must be imported BEFORE any Nornir operations to ensure device types are registered -from gns3server.agent.gns3_copilot.utils import custom_netmiko # noqa: F401 +from gns3server.agent.gns3_copilot.utils import custom_netmiko # Explicitly register custom device types to ensure they are available # This is a safety measure in case the auto-registration on import doesn't work diff --git a/gns3server/agent/gns3_copilot/tools_v2/display_tools_nornir.py b/gns3server/agent/gns3_copilot/tools_v2/display_tools_nornir.py index a8eb41bc4..206ca10ea 100644 --- a/gns3server/agent/gns3_copilot/tools_v2/display_tools_nornir.py +++ b/gns3server/agent/gns3_copilot/tools_v2/display_tools_nornir.py @@ -57,7 +57,7 @@ from gns3server.agent.gns3_copilot.utils.command_filter import ( # Import custom Netmiko device types for GNS3 emulation # This registers gns3_huawei_telnet_ce and other custom device types # NOTE: Must be imported BEFORE any Nornir operations to ensure device types are registered -from gns3server.agent.gns3_copilot.utils import custom_netmiko # noqa: F401 +from gns3server.agent.gns3_copilot.utils import custom_netmiko # Explicitly register custom device types to ensure they are available # This is a safety measure in case the auto-registration on import doesn't work diff --git a/gns3server/agent/gns3_copilot/tools_v2/vpcs_tools_netmiko.py b/gns3server/agent/gns3_copilot/tools_v2/vpcs_tools_netmiko.py index 1315730c7..d9186d2d4 100644 --- a/gns3server/agent/gns3_copilot/tools_v2/vpcs_tools_netmiko.py +++ b/gns3server/agent/gns3_copilot/tools_v2/vpcs_tools_netmiko.py @@ -54,7 +54,7 @@ from gns3server.agent.gns3_copilot.utils import get_device_ports_from_topology # Import custom Netmiko device types for GNS3 emulation # This registers gns3_vpcs_telnet and other custom device types # NOTE: Must be imported BEFORE any Nornir operations to ensure device types are registered -from gns3server.agent.gns3_copilot.utils import custom_netmiko # noqa: F401 +from gns3server.agent.gns3_copilot.utils import custom_netmiko # Explicitly register VPCS device type to ensure it is available try: diff --git a/gns3server/agent/gns3_copilot/utils/custom_netmiko/__init__.py b/gns3server/agent/gns3_copilot/utils/custom_netmiko/__init__.py index 1aea7adf8..9cad247ca 100644 --- a/gns3server/agent/gns3_copilot/utils/custom_netmiko/__init__.py +++ b/gns3server/agent/gns3_copilot/utils/custom_netmiko/__init__.py @@ -61,17 +61,17 @@ logger = logging.getLogger(__name__) # Import all custom drivers (auto-registers them with Netmiko) try: - from . import huawei_ce # noqa: F401 + from . import huawei_ce except Exception as e: logger.warning(f"Failed to import Huawei CE driver: {e}", exc_info=True) try: - from .ruijie_telnet import RuijieTelnetEnhanced # noqa: F401 + from .ruijie_telnet import RuijieTelnetEnhanced except Exception as e: logger.warning(f"Failed to import Ruijie driver: {e}", exc_info=True) try: - from . import vpcs_telnet # noqa: F401 + from . import vpcs_telnet except Exception as e: logger.warning(f"Failed to import VPCS driver: {e}", exc_info=True) diff --git a/gns3server/agent/gns3_copilot/utils/custom_netmiko/tests/test_huawei_ce.py b/gns3server/agent/gns3_copilot/utils/custom_netmiko/tests/test_huawei_ce.py index c6b6db344..62343c3ef 100644 --- a/gns3server/agent/gns3_copilot/utils/custom_netmiko/tests/test_huawei_ce.py +++ b/gns3server/agent/gns3_copilot/utils/custom_netmiko/tests/test_huawei_ce.py @@ -157,7 +157,7 @@ class TestHuaweiTelnetCEIntegration(unittest.TestCase): def test_mock_telnet_connection(self): """Test telnet_login logic with mocked connection.""" - from gns3server.agent.gns3_copilot.utils.custom_netmiko.huawei_ce import ( # noqa: E501 + from gns3server.agent.gns3_copilot.utils.custom_netmiko.huawei_ce import ( GNS3HuaweiTelnetCE, ) diff --git a/gns3server/agent/gns3_copilot/utils/custom_netmiko/tests/test_ruijie_telnet.py b/gns3server/agent/gns3_copilot/utils/custom_netmiko/tests/test_ruijie_telnet.py index dfef81823..adfbafea2 100644 --- a/gns3server/agent/gns3_copilot/utils/custom_netmiko/tests/test_ruijie_telnet.py +++ b/gns3server/agent/gns3_copilot/utils/custom_netmiko/tests/test_ruijie_telnet.py @@ -178,7 +178,7 @@ class TestRuijieTelnetEnhancedIntegration(unittest.TestCase): def test_send_config_set_calls_preprocess(self): """Test that send_config_set calls preprocessing.""" - from gns3server.agent.gns3_copilot.utils.custom_netmiko.ruijie_telnet import ( # noqa: E501 + from gns3server.agent.gns3_copilot.utils.custom_netmiko.ruijie_telnet import ( RuijieTelnetEnhanced, ) @@ -205,7 +205,7 @@ class TestRuijieTelnetEnhancedIntegration(unittest.TestCase): def test_multiple_interactive_patterns(self): """Test that multiple interactive commands are detected.""" - from gns3server.agent.gns3_copilot.utils.custom_netmiko.ruijie_telnet import ( # noqa: E501 + from gns3server.agent.gns3_copilot.utils.custom_netmiko.ruijie_telnet import ( RuijieTelnetEnhanced, ) diff --git a/gns3server/agent/gns3_copilot/utils/custom_netmiko/tests/test_vpcs_telnet.py b/gns3server/agent/gns3_copilot/utils/custom_netmiko/tests/test_vpcs_telnet.py index 4659465cd..f24565d85 100644 --- a/gns3server/agent/gns3_copilot/utils/custom_netmiko/tests/test_vpcs_telnet.py +++ b/gns3server/agent/gns3_copilot/utils/custom_netmiko/tests/test_vpcs_telnet.py @@ -116,7 +116,7 @@ class TestVPCSTelnetInit(unittest.TestCase): @classmethod def setUpClass(cls): """Set up test fixtures.""" - from gns3server.agent.gns3_copilot.utils.custom_netmiko.vpcs_telnet import ( # noqa: E501 + from gns3server.agent.gns3_copilot.utils.custom_netmiko.vpcs_telnet import ( VPCSTelnet, ) @@ -165,7 +165,7 @@ class TestVPCSTelnetMethods(unittest.TestCase): @classmethod def setUpClass(cls): """Set up test fixtures.""" - from gns3server.agent.gns3_copilot.utils.custom_netmiko.vpcs_telnet import ( # noqa: E501 + from gns3server.agent.gns3_copilot.utils.custom_netmiko.vpcs_telnet import ( VPCSTelnet, ) @@ -208,7 +208,7 @@ class TestVPCSTelnetSendCommand(unittest.TestCase): @classmethod def setUpClass(cls): """Set up test fixtures.""" - from gns3server.agent.gns3_copilot.utils.custom_netmiko.vpcs_telnet import ( # noqa: E501 + from gns3server.agent.gns3_copilot.utils.custom_netmiko.vpcs_telnet import ( VPCSTelnet, ) @@ -273,7 +273,7 @@ class TestVPCSTelnetTelnetLogin(unittest.TestCase): @classmethod def setUpClass(cls): """Set up test fixtures.""" - from gns3server.agent.gns3_copilot.utils.custom_netmiko.vpcs_telnet import ( # noqa: E501 + from gns3server.agent.gns3_copilot.utils.custom_netmiko.vpcs_telnet import ( VPCSTelnet, ) @@ -353,7 +353,7 @@ class TestVPCSTelnetAnsiStripping(unittest.TestCase): @classmethod def setUpClass(cls): """Set up test fixtures.""" - from gns3server.agent.gns3_copilot.utils.custom_netmiko.vpcs_telnet import ( # noqa: E501 + from gns3server.agent.gns3_copilot.utils.custom_netmiko.vpcs_telnet import ( VPCSTelnet, ) diff --git a/gns3server/agent/gns3_copilot/utils/gns3_drawing_utils.py b/gns3server/agent/gns3_copilot/utils/gns3_drawing_utils.py index a28278744..4fa48ee7d 100644 --- a/gns3server/agent/gns3_copilot/utils/gns3_drawing_utils.py +++ b/gns3server/agent/gns3_copilot/utils/gns3_drawing_utils.py @@ -238,7 +238,7 @@ def generate_ellipse_svg( svg_height: int, ) -> str: """Generate SVG for ellipse.""" - return f"""""" # noqa: E501 + return f"""""" def generate_rectangle_svg( @@ -247,7 +247,7 @@ def generate_rectangle_svg( color_scheme: dict[str, Any], ) -> str: """Generate SVG for rectangle.""" - return f"""""" # noqa: E501 + return f"""""" def generate_text_svg(text: str, color_scheme: dict[str, Any]) -> str: @@ -255,7 +255,7 @@ def generate_text_svg(text: str, color_scheme: dict[str, Any]) -> str: text_width = len(text) * 8 + 20 text_height = DEFAULT_FONT_SIZE + 16 - return f"""{text}""" # noqa: E501 + return f"""{text}""" def _hsv_to_hex(h: int, s: int, v: int) -> str: diff --git a/gns3server/api/routes/controller/netmiko.py b/gns3server/api/routes/controller/netmiko.py index 827ac751c..44c9c9f42 100644 --- a/gns3server/api/routes/controller/netmiko.py +++ b/gns3server/api/routes/controller/netmiko.py @@ -64,7 +64,7 @@ def _load_netmiko_device_types() -> schemas.NetmikoDeviceTypeList: # imported them yet); failures are logged by the package itself, do not # fail the whole endpoint. try: - from gns3server.agent.gns3_copilot.utils import custom_netmiko # noqa: F401 + from gns3server.agent.gns3_copilot.utils import custom_netmiko except Exception as e: log.warning(f"Could not register GNS3-copilot custom Netmiko drivers: {e}") From 06e98f8b5561cca01451ae4669b71cb83086439e Mon Sep 17 00:00:00 2001 From: Mark Paronyan Date: Wed, 30 Sep 2026 20:45:43 +0300 Subject: [PATCH 02/18] style: drop redundant utf-8 coding declarations --- gns3server/controller/appliance_to_template.py | 1 - scripts/welcome.py | 1 - tests/api/routes/compute/test_capabilities.py | 1 - tests/api/routes/compute/test_cloud_nodes.py | 1 - tests/api/routes/compute/test_compute.py | 1 - tests/api/routes/compute/test_docker_nodes.py | 1 - tests/api/routes/compute/test_dynamips_nodes.py | 1 - tests/api/routes/compute/test_ethernet_switch_nodes.py | 1 - tests/api/routes/compute/test_iou_nodes.py | 1 - tests/api/routes/compute/test_nat_nodes.py | 1 - tests/api/routes/compute/test_projects.py | 1 - tests/api/routes/compute/test_qemu_nodes.py | 1 - tests/api/routes/compute/test_virtualbox_nodes.py | 1 - tests/api/routes/compute/test_vmware_nodes.py | 1 - tests/api/routes/compute/test_vpcs_nodes.py | 1 - tests/api/routes/controller/test_drawings.py | 1 - tests/api/routes/controller/test_gns3vm.py | 1 - tests/api/routes/controller/test_links.py | 1 - tests/api/routes/controller/test_markers.py | 1 - tests/api/routes/controller/test_nodes.py | 1 - tests/api/routes/controller/test_projects.py | 1 - tests/api/routes/controller/test_settings.py | 1 - tests/api/routes/controller/test_symbols.py | 1 - tests/api/routes/controller/test_version.py | 1 - tests/api/routes/test_index.py | 1 - tests/api/routes/test_routes.py | 1 - tests/compute/docker/test_docker_vm.py | 1 - tests/compute/dynamips/test_dynamips_manager.py | 1 - tests/compute/dynamips/test_dynamips_router.py | 1 - tests/compute/iou/test_iou_vm.py | 1 - tests/compute/qemu/test_qemu_manager.py | 1 - tests/compute/qemu/test_qemu_vm.py | 1 - tests/compute/test_base_node.py | 1 - tests/compute/test_manager.py | 1 - tests/compute/test_port_manager.py | 1 - tests/compute/test_project.py | 1 - tests/compute/test_project_manager.py | 1 - tests/compute/virtualbox/test_virtualbox_manager.py | 1 - tests/compute/virtualbox/test_virtualbox_vm.py | 1 - tests/compute/vmware/test_vmware_manager.py | 1 - tests/compute/vmware/test_vmware_vm.py | 1 - tests/compute/vpcs/test_vpcs_manager.py | 1 - tests/compute/vpcs/test_vpcs_vm.py | 1 - tests/controller/test_project.py | 1 - tests/test_config.py | 1 - tests/test_server.py | 1 - tests/utils.py | 1 - tests/utils/test_asyncio.py | 1 - tests/utils/test_hostname.py | 1 - tests/utils/test_images.py | 1 - tests/utils/test_interfaces.py | 1 - 51 files changed, 51 deletions(-) diff --git a/gns3server/controller/appliance_to_template.py b/gns3server/controller/appliance_to_template.py index b848e56d8..e78eaf56f 100644 --- a/gns3server/controller/appliance_to_template.py +++ b/gns3server/controller/appliance_to_template.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -# -*- coding: utf-8 -*- # # Copyright (C) 2021 GNS3 Technologies Inc. # diff --git a/scripts/welcome.py b/scripts/welcome.py index dc3d5907f..277a35138 100644 --- a/scripts/welcome.py +++ b/scripts/welcome.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- # # Copyright (C) 2015 GNS3 Technologies Inc. # diff --git a/tests/api/routes/compute/test_capabilities.py b/tests/api/routes/compute/test_capabilities.py index 09d4186eb..9a285c7bc 100644 --- a/tests/api/routes/compute/test_capabilities.py +++ b/tests/api/routes/compute/test_capabilities.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # # Copyright (C) 2020 GNS3 Technologies Inc. # diff --git a/tests/api/routes/compute/test_cloud_nodes.py b/tests/api/routes/compute/test_cloud_nodes.py index 05949e5e6..01a32ec36 100644 --- a/tests/api/routes/compute/test_cloud_nodes.py +++ b/tests/api/routes/compute/test_cloud_nodes.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # # Copyright (C) 2020 GNS3 Technologies Inc. # diff --git a/tests/api/routes/compute/test_compute.py b/tests/api/routes/compute/test_compute.py index 0edb27aa6..1a9579b77 100644 --- a/tests/api/routes/compute/test_compute.py +++ b/tests/api/routes/compute/test_compute.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # # Copyright (C) 2020 GNS3 Technologies Inc. # diff --git a/tests/api/routes/compute/test_docker_nodes.py b/tests/api/routes/compute/test_docker_nodes.py index fecc0ef56..e16fb422c 100644 --- a/tests/api/routes/compute/test_docker_nodes.py +++ b/tests/api/routes/compute/test_docker_nodes.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # # Copyright (C) 2020 GNS3 Technologies Inc. # diff --git a/tests/api/routes/compute/test_dynamips_nodes.py b/tests/api/routes/compute/test_dynamips_nodes.py index a586aa508..c5d014ea6 100644 --- a/tests/api/routes/compute/test_dynamips_nodes.py +++ b/tests/api/routes/compute/test_dynamips_nodes.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # # Copyright (C) 2020 GNS3 Technologies Inc. # diff --git a/tests/api/routes/compute/test_ethernet_switch_nodes.py b/tests/api/routes/compute/test_ethernet_switch_nodes.py index f552b8c21..cc046e3ef 100644 --- a/tests/api/routes/compute/test_ethernet_switch_nodes.py +++ b/tests/api/routes/compute/test_ethernet_switch_nodes.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # # Copyright (C) 2022 GNS3 Technologies Inc. # diff --git a/tests/api/routes/compute/test_iou_nodes.py b/tests/api/routes/compute/test_iou_nodes.py index 565ed3070..65c2e56db 100644 --- a/tests/api/routes/compute/test_iou_nodes.py +++ b/tests/api/routes/compute/test_iou_nodes.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # # Copyright (C) 2020 GNS3 Technologies Inc. # diff --git a/tests/api/routes/compute/test_nat_nodes.py b/tests/api/routes/compute/test_nat_nodes.py index aafa427aa..0d40cd487 100644 --- a/tests/api/routes/compute/test_nat_nodes.py +++ b/tests/api/routes/compute/test_nat_nodes.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # # Copyright (C) 2020 GNS3 Technologies Inc. # diff --git a/tests/api/routes/compute/test_projects.py b/tests/api/routes/compute/test_projects.py index 88c4b463a..2b8637d5b 100644 --- a/tests/api/routes/compute/test_projects.py +++ b/tests/api/routes/compute/test_projects.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # # Copyright (C) 2020 GNS3 Technologies Inc. # diff --git a/tests/api/routes/compute/test_qemu_nodes.py b/tests/api/routes/compute/test_qemu_nodes.py index 3f53d3538..304f330a4 100644 --- a/tests/api/routes/compute/test_qemu_nodes.py +++ b/tests/api/routes/compute/test_qemu_nodes.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # # Copyright (C) 2020 GNS3 Technologies Inc. # diff --git a/tests/api/routes/compute/test_virtualbox_nodes.py b/tests/api/routes/compute/test_virtualbox_nodes.py index e50420518..2de646193 100644 --- a/tests/api/routes/compute/test_virtualbox_nodes.py +++ b/tests/api/routes/compute/test_virtualbox_nodes.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # # Copyright (C) 2020 GNS3 Technologies Inc. # diff --git a/tests/api/routes/compute/test_vmware_nodes.py b/tests/api/routes/compute/test_vmware_nodes.py index 6b42eb61a..df485774a 100644 --- a/tests/api/routes/compute/test_vmware_nodes.py +++ b/tests/api/routes/compute/test_vmware_nodes.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # # Copyright (C) 2020 GNS3 Technologies Inc. # diff --git a/tests/api/routes/compute/test_vpcs_nodes.py b/tests/api/routes/compute/test_vpcs_nodes.py index 5b9073332..fd558d9a9 100644 --- a/tests/api/routes/compute/test_vpcs_nodes.py +++ b/tests/api/routes/compute/test_vpcs_nodes.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # # Copyright (C) 2020 GNS3 Technologies Inc. # diff --git a/tests/api/routes/controller/test_drawings.py b/tests/api/routes/controller/test_drawings.py index 2d491f863..2096df27a 100644 --- a/tests/api/routes/controller/test_drawings.py +++ b/tests/api/routes/controller/test_drawings.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # # Copyright (C) 2020 GNS3 Technologies Inc. # diff --git a/tests/api/routes/controller/test_gns3vm.py b/tests/api/routes/controller/test_gns3vm.py index 27a8b9184..bf5db4141 100644 --- a/tests/api/routes/controller/test_gns3vm.py +++ b/tests/api/routes/controller/test_gns3vm.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # # Copyright (C) 2020 GNS3 Technologies Inc. # diff --git a/tests/api/routes/controller/test_links.py b/tests/api/routes/controller/test_links.py index a81ca094b..d6af89d70 100644 --- a/tests/api/routes/controller/test_links.py +++ b/tests/api/routes/controller/test_links.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # # Copyright (C) 2020 GNS3 Technologies Inc. # diff --git a/tests/api/routes/controller/test_markers.py b/tests/api/routes/controller/test_markers.py index 2e088ed3c..54e4dc8f0 100644 --- a/tests/api/routes/controller/test_markers.py +++ b/tests/api/routes/controller/test_markers.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # # Copyright (C) 2025 GNS3 Technologies Inc. # diff --git a/tests/api/routes/controller/test_nodes.py b/tests/api/routes/controller/test_nodes.py index d86e13fe0..017e65783 100644 --- a/tests/api/routes/controller/test_nodes.py +++ b/tests/api/routes/controller/test_nodes.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # # Copyright (C) 2020 GNS3 Technologies Inc. # diff --git a/tests/api/routes/controller/test_projects.py b/tests/api/routes/controller/test_projects.py index e94b7e273..0d840a41c 100644 --- a/tests/api/routes/controller/test_projects.py +++ b/tests/api/routes/controller/test_projects.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # # Copyright (C) 2020 GNS3 Technologies Inc. # diff --git a/tests/api/routes/controller/test_settings.py b/tests/api/routes/controller/test_settings.py index 200ca9c6d..e23d0606c 100644 --- a/tests/api/routes/controller/test_settings.py +++ b/tests/api/routes/controller/test_settings.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # # Copyright (C) 2026 GNS3 Technologies Inc. # diff --git a/tests/api/routes/controller/test_symbols.py b/tests/api/routes/controller/test_symbols.py index 7c28bff26..97f80889e 100644 --- a/tests/api/routes/controller/test_symbols.py +++ b/tests/api/routes/controller/test_symbols.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # # Copyright (C) 2020 GNS3 Technologies Inc. # diff --git a/tests/api/routes/controller/test_version.py b/tests/api/routes/controller/test_version.py index f8c205744..c7220ed62 100644 --- a/tests/api/routes/controller/test_version.py +++ b/tests/api/routes/controller/test_version.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # # Copyright (C) 2020 GNS3 Technologies Inc. # diff --git a/tests/api/routes/test_index.py b/tests/api/routes/test_index.py index 9cdb09851..df3c242b1 100644 --- a/tests/api/routes/test_index.py +++ b/tests/api/routes/test_index.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # # Copyright (C) 2020 GNS3 Technologies Inc. # diff --git a/tests/api/routes/test_routes.py b/tests/api/routes/test_routes.py index 8628e427d..e43a8c557 100644 --- a/tests/api/routes/test_routes.py +++ b/tests/api/routes/test_routes.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # # Copyright (C) 2020 GNS3 Technologies Inc. # diff --git a/tests/compute/docker/test_docker_vm.py b/tests/compute/docker/test_docker_vm.py index 6e340b21d..eccf438c2 100644 --- a/tests/compute/docker/test_docker_vm.py +++ b/tests/compute/docker/test_docker_vm.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # # Copyright (C) 2020 GNS3 Technologies Inc. # diff --git a/tests/compute/dynamips/test_dynamips_manager.py b/tests/compute/dynamips/test_dynamips_manager.py index d08a10271..0d62c014b 100644 --- a/tests/compute/dynamips/test_dynamips_manager.py +++ b/tests/compute/dynamips/test_dynamips_manager.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # # Copyright (C) 2020 GNS3 Technologies Inc. # diff --git a/tests/compute/dynamips/test_dynamips_router.py b/tests/compute/dynamips/test_dynamips_router.py index 5ececc901..068bb5e9e 100644 --- a/tests/compute/dynamips/test_dynamips_router.py +++ b/tests/compute/dynamips/test_dynamips_router.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # # Copyright (C) 2020 GNS3 Technologies Inc. # diff --git a/tests/compute/iou/test_iou_vm.py b/tests/compute/iou/test_iou_vm.py index 05ee7de4b..d80cc4356 100644 --- a/tests/compute/iou/test_iou_vm.py +++ b/tests/compute/iou/test_iou_vm.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # # Copyright (C) 2020 GNS3 Technologies Inc. # diff --git a/tests/compute/qemu/test_qemu_manager.py b/tests/compute/qemu/test_qemu_manager.py index a75bfceaf..9f3c2afac 100644 --- a/tests/compute/qemu/test_qemu_manager.py +++ b/tests/compute/qemu/test_qemu_manager.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # # Copyright (C) 2015 GNS3 Technologies Inc. # diff --git a/tests/compute/qemu/test_qemu_vm.py b/tests/compute/qemu/test_qemu_vm.py index d5f0842d3..e20eddcd6 100644 --- a/tests/compute/qemu/test_qemu_vm.py +++ b/tests/compute/qemu/test_qemu_vm.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # # Copyright (C) 2020 GNS3 Technologies Inc. # diff --git a/tests/compute/test_base_node.py b/tests/compute/test_base_node.py index db2418d76..850db6325 100644 --- a/tests/compute/test_base_node.py +++ b/tests/compute/test_base_node.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # # Copyright (C) 2020 GNS3 Technologies Inc. # diff --git a/tests/compute/test_manager.py b/tests/compute/test_manager.py index 304fa972d..f0f5bbc46 100644 --- a/tests/compute/test_manager.py +++ b/tests/compute/test_manager.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # # Copyright (C) 2020 GNS3 Technologies Inc. # diff --git a/tests/compute/test_port_manager.py b/tests/compute/test_port_manager.py index ede2cea7a..f28418563 100644 --- a/tests/compute/test_port_manager.py +++ b/tests/compute/test_port_manager.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # # Copyright (C) 2020 GNS3 Technologies Inc. # diff --git a/tests/compute/test_project.py b/tests/compute/test_project.py index 7380df23f..d46abe4e9 100644 --- a/tests/compute/test_project.py +++ b/tests/compute/test_project.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -# -*- coding: utf-8 -*- # # Copyright (C) 2020 GNS3 Technologies Inc. # diff --git a/tests/compute/test_project_manager.py b/tests/compute/test_project_manager.py index fe52e8e22..d2a325fe4 100644 --- a/tests/compute/test_project_manager.py +++ b/tests/compute/test_project_manager.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # # Copyright (C) 2020 GNS3 Technologies Inc. # diff --git a/tests/compute/virtualbox/test_virtualbox_manager.py b/tests/compute/virtualbox/test_virtualbox_manager.py index 48315245c..8a23b41df 100644 --- a/tests/compute/virtualbox/test_virtualbox_manager.py +++ b/tests/compute/virtualbox/test_virtualbox_manager.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # # Copyright (C) 2020 GNS3 Technologies Inc. # diff --git a/tests/compute/virtualbox/test_virtualbox_vm.py b/tests/compute/virtualbox/test_virtualbox_vm.py index 8bf127be0..ead5c72fe 100644 --- a/tests/compute/virtualbox/test_virtualbox_vm.py +++ b/tests/compute/virtualbox/test_virtualbox_vm.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # # Copyright (C) 2020 GNS3 Technologies Inc. # diff --git a/tests/compute/vmware/test_vmware_manager.py b/tests/compute/vmware/test_vmware_manager.py index 7f2c2e0bc..46faff20c 100644 --- a/tests/compute/vmware/test_vmware_manager.py +++ b/tests/compute/vmware/test_vmware_manager.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # # Copyright (C) 2020 GNS3 Technologies Inc. # diff --git a/tests/compute/vmware/test_vmware_vm.py b/tests/compute/vmware/test_vmware_vm.py index 61b53b843..f2badff9c 100644 --- a/tests/compute/vmware/test_vmware_vm.py +++ b/tests/compute/vmware/test_vmware_vm.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # # Copyright (C) 2020 GNS3 Technologies Inc. # diff --git a/tests/compute/vpcs/test_vpcs_manager.py b/tests/compute/vpcs/test_vpcs_manager.py index 9929a1224..d567b8674 100644 --- a/tests/compute/vpcs/test_vpcs_manager.py +++ b/tests/compute/vpcs/test_vpcs_manager.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # # Copyright (C) 2020 GNS3 Technologies Inc. # diff --git a/tests/compute/vpcs/test_vpcs_vm.py b/tests/compute/vpcs/test_vpcs_vm.py index 65761cbd7..1d74fdf95 100644 --- a/tests/compute/vpcs/test_vpcs_vm.py +++ b/tests/compute/vpcs/test_vpcs_vm.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # # Copyright (C) 2020 GNS3 Technologies Inc. # diff --git a/tests/controller/test_project.py b/tests/controller/test_project.py index 6b8d2651e..8256dd450 100644 --- a/tests/controller/test_project.py +++ b/tests/controller/test_project.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -# -*- coding: utf-8 -*- # # Copyright (C) 2020 GNS3 Technologies Inc. # diff --git a/tests/test_config.py b/tests/test_config.py index 64cf66d7a..fb2b08dc0 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # # Copyright (C) 2020 GNS3 Technologies Inc. # diff --git a/tests/test_server.py b/tests/test_server.py index da4abd306..7cdb2cb12 100644 --- a/tests/test_server.py +++ b/tests/test_server.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -# -*- coding: utf-8 -*- # # Copyright (C) 2015 GNS3 Technologies Inc. # diff --git a/tests/utils.py b/tests/utils.py index 5e640e478..d7212a666 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # # Copyright (C) 2020 GNS3 Technologies Inc. # diff --git a/tests/utils/test_asyncio.py b/tests/utils/test_asyncio.py index f196d65c5..87def33c4 100644 --- a/tests/utils/test_asyncio.py +++ b/tests/utils/test_asyncio.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # # Copyright (C) 2015 GNS3 Technologies Inc. # diff --git a/tests/utils/test_hostname.py b/tests/utils/test_hostname.py index 66904e066..e802a40a5 100644 --- a/tests/utils/test_hostname.py +++ b/tests/utils/test_hostname.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # # Copyright (C) 2024 GNS3 Technologies Inc. # diff --git a/tests/utils/test_images.py b/tests/utils/test_images.py index 7fa9a86c1..e7d8248b0 100644 --- a/tests/utils/test_images.py +++ b/tests/utils/test_images.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # # Copyright (C) 2014 GNS3 Technologies Inc. # diff --git a/tests/utils/test_interfaces.py b/tests/utils/test_interfaces.py index 3d912a09c..84ac5f7c3 100644 --- a/tests/utils/test_interfaces.py +++ b/tests/utils/test_interfaces.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # # Copyright (C) 2014 GNS3 Technologies Inc. # From 0f66fd6c2b2039c08b5110c27a9f6d9d00ba6079 Mon Sep 17 00:00:00 2001 From: Mark Paronyan Date: Wed, 30 Sep 2026 20:45:43 +0300 Subject: [PATCH 03/18] style: remove trailing whitespace --- gns3server/api/routes/compute/notifications.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gns3server/api/routes/compute/notifications.py b/gns3server/api/routes/compute/notifications.py index ee533037b..66de26675 100644 --- a/gns3server/api/routes/compute/notifications.py +++ b/gns3server/api/routes/compute/notifications.py @@ -67,7 +67,7 @@ if __name__ == "__main__":