From 2611fc42691b4d2a39ea12251d062a62d15fac40 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 12 Oct 2026 23:33:01 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/psf/black-pre-commit-mirror: 26.10.0 → 26.10.1](https://github.com/psf/black-pre-commit-mirror/compare/26.10.0...26.10.1) - [github.com/asottile/pyupgrade: v3.21.2 → v3.22.0](https://github.com/asottile/pyupgrade/compare/v3.21.2...v3.22.0) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c8154b24..b87d19c5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,11 +9,11 @@ repos: - id: check-yaml - id: debug-statements - repo: https://github.com/psf/black-pre-commit-mirror - rev: 26.10.0 + rev: 26.10.1 hooks: - id: black - repo: https://github.com/asottile/pyupgrade - rev: v3.21.2 + rev: v3.22.0 hooks: - id: pyupgrade args: [ --py39-plus ] From dc6d4ac8637b1ae8d9544c31734da5c5e0398f03 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 12 Oct 2026 23:33:17 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/test_tektronix/test_tekdpo70000.py | 18 +++++++++--------- tests/test_tektronix/test_tktds5xx.py | 12 ++++++------ 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/tests/test_tektronix/test_tekdpo70000.py b/tests/test_tektronix/test_tekdpo70000.py index 058c50cb..d4f81da2 100644 --- a/tests/test_tektronix/test_tekdpo70000.py +++ b/tests/test_tektronix/test_tekdpo70000.py @@ -68,7 +68,7 @@ def test_data_source_name(): assert inst.channel[channel].name == f"CH{channel+1}" -@pytest.mark.parametrize("channel", [it for it in range(4)]) +@pytest.mark.parametrize("channel", [*range(4)]) @given( values=st.lists( st.integers(min_value=-2147483648, max_value=2147483647), min_size=1 @@ -223,7 +223,7 @@ def test_data_source_read_waveform_with_old_data_source(): # MATH # -@pytest.mark.parametrize("math", [it for it in range(4)]) +@pytest.mark.parametrize("math", [*range(4)]) def test_math_init(math): """Initialize a math channel.""" with expected_protocol(ik.tektronix.TekDPO70000, [], []) as inst: @@ -231,7 +231,7 @@ def test_math_init(math): assert inst.math[math]._idx == math + 1 -@pytest.mark.parametrize("math", [it for it in range(4)]) +@pytest.mark.parametrize("math", [*range(4)]) def test_math_sendcmd(math): """Send a command from a math channel.""" cmd = "TEST" @@ -241,7 +241,7 @@ def test_math_sendcmd(math): inst.math[math].sendcmd(cmd) -@pytest.mark.parametrize("math", [it for it in range(4)]) +@pytest.mark.parametrize("math", [*range(4)]) def test_math_query(math): """Query from a math channel.""" cmd = "TEST" @@ -711,7 +711,7 @@ def test_math_scale_raw_data(values): # CHANNEL # -@pytest.mark.parametrize("channel", [it for it in range(4)]) +@pytest.mark.parametrize("channel", [*range(4)]) def test_channel_init(channel): """Initialize a channel.""" with expected_protocol(ik.tektronix.TekDPO70000, [], []) as inst: @@ -719,7 +719,7 @@ def test_channel_init(channel): assert inst.channel[channel]._idx == channel + 1 -@pytest.mark.parametrize("channel", [it for it in range(4)]) +@pytest.mark.parametrize("channel", [*range(4)]) def test_channel_sendcmd(channel): """Send a command from a channel.""" cmd = "TEST" @@ -729,7 +729,7 @@ def test_channel_sendcmd(channel): inst.channel[channel].sendcmd(cmd) -@pytest.mark.parametrize("channel", [it for it in range(4)]) +@pytest.mark.parametrize("channel", [*range(4)]) def test_channel_query(channel): """Send a query from a channel.""" cmd = "TEST" @@ -1188,7 +1188,7 @@ def test_data_sync_sources(value): assert inst.data_sync_sources == value -valid_channel_range = [it for it in range(4)] +valid_channel_range = [*range(4)] @pytest.mark.parametrize("no", valid_channel_range) @@ -1205,7 +1205,7 @@ def test_data_source_channel(no): assert inst.data_source == channel -valid_math_range = [it for it in range(4)] +valid_math_range = [*range(4)] @pytest.mark.parametrize("no", valid_math_range) diff --git a/tests/test_tektronix/test_tktds5xx.py b/tests/test_tektronix/test_tktds5xx.py index 6d7897cf..d9e27146 100644 --- a/tests/test_tektronix/test_tktds5xx.py +++ b/tests/test_tektronix/test_tktds5xx.py @@ -37,7 +37,7 @@ # MEASUREMENT # -@pytest.mark.parametrize("msr", [it for it in range(3)]) +@pytest.mark.parametrize("msr", [*range(3)]) def test_measurement_init(msr): """Initialize a new measurement.""" meas_categories = [ @@ -61,7 +61,7 @@ def test_measurement_init(msr): assert measurement._data == data_expected -@pytest.mark.parametrize("msr", [it for it in range(3)]) +@pytest.mark.parametrize("msr", [*range(3)]) @given(value=st.floats(allow_nan=False)) def test_measurement_read_enabled_true(msr, value): """Read a new measurement value since enabled is true.""" @@ -231,7 +231,7 @@ def test_data_source_read_waveform_ascii(values): # CHANNEL # -@pytest.mark.parametrize("channel", [it for it in range(4)]) +@pytest.mark.parametrize("channel", [*range(4)]) def test_channel_init(channel): """Initialize a new channel.""" with expected_protocol(ik.tektronix.TekTDS5xx, [], []) as inst: @@ -402,7 +402,7 @@ def test_sources(states): assert active_read == active_sources -@pytest.mark.parametrize("channel", [it for it in range(4)]) +@pytest.mark.parametrize("channel", [*range(4)]) def test_data_source_channel(channel): """Get / set channel data source for waveform transfer.""" with expected_protocol( @@ -418,7 +418,7 @@ def test_data_source_channel(channel): assert inst.data_source == data_source -@pytest.mark.parametrize("channel", [it for it in range(3)]) +@pytest.mark.parametrize("channel", [*range(3)]) def test_data_source_math(channel): """Get / set math data source for waveform transfer.""" with expected_protocol( @@ -434,7 +434,7 @@ def test_data_source_math(channel): assert inst.data_source == data_source -@pytest.mark.parametrize("channel", [it for it in range(3)]) +@pytest.mark.parametrize("channel", [*range(3)]) def test_data_source_ref(channel): """Get / set ref data source for waveform transfer.""" with expected_protocol(