From ecbddb5d1285b0d74b7d1ea169f81d8e3e4dcf21 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 27 Oct 2024 15:50:00 +0000 Subject: [PATCH] MISC: Auto fixes from pre-commit.com hooks For more information, see https://pre-commit.ci --- src/pyedb/configuration/cfg_components.py | 5 +---- tests/legacy/system/test_edb_components.py | 1 - tests/legacy/system/test_edb_configuration_2p0.py | 2 +- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/pyedb/configuration/cfg_components.py b/src/pyedb/configuration/cfg_components.py index 0a3e5d6275..59bf497fd2 100644 --- a/src/pyedb/configuration/cfg_components.py +++ b/src/pyedb/configuration/cfg_components.py @@ -21,10 +21,7 @@ # SOFTWARE. from pyedb.configuration.cfg_common import CfgBase -from pyedb.dotnet.edb_core.general import ( - pascal_to_snake, - snake_to_pascal, -) +from pyedb.dotnet.edb_core.general import pascal_to_snake, snake_to_pascal class CfgComponent(CfgBase): diff --git a/tests/legacy/system/test_edb_components.py b/tests/legacy/system/test_edb_components.py index 8fb1d32439..ebdd1c65b0 100644 --- a/tests/legacy/system/test_edb_components.py +++ b/tests/legacy/system/test_edb_components.py @@ -626,4 +626,3 @@ def test_properties(self, edb_examples): } edbapp.components["C378"].model_properties = pp assert edbapp.components["C378"].model_properties == pp - diff --git a/tests/legacy/system/test_edb_configuration_2p0.py b/tests/legacy/system/test_edb_configuration_2p0.py index c2f610a83b..82d6aadc97 100644 --- a/tests/legacy/system/test_edb_configuration_2p0.py +++ b/tests/legacy/system/test_edb_configuration_2p0.py @@ -530,7 +530,7 @@ def test_09_padstack_definition(self, edb_examples): edbapp = edb_examples.get_si_verse() assert edbapp.configuration.load(data, apply_file=True) data_from_layout = edbapp.configuration.get_data_from_db(padstacks=True) - pdef = [i for i in data_from_layout["padstacks"]["definitions"] if i["name"]=="v35h15"][0] + pdef = [i for i in data_from_layout["padstacks"]["definitions"] if i["name"] == "v35h15"][0] pad_params = pdef["pad_parameters"] assert pad_params["regular_pad"][0]["diameter"] == "0.5mm"