diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cd2c41e0..34426d09 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,7 +15,7 @@ repos: - id: mixed-line-ending args: ["-f=lf"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.15.20" + rev: "v0.16.5" hooks: - id: ruff-check args: ["--fix"] diff --git a/pytest-embedded-wokwi/README.md b/pytest-embedded-wokwi/README.md index 540f01ee..0f504c69 100644 --- a/pytest-embedded-wokwi/README.md +++ b/pytest-embedded-wokwi/README.md @@ -62,13 +62,13 @@ from pytest_embedded import Dut def test_gpio(dut: Dut, wokwi: Wokwi): LOGGER = logging.getLogger(__name__) - LOGGER.info("Waiting for Button test begin...") - dut.expect_exact("Butston test") + LOGGER.info('Waiting for Button test begin...') + dut.expect_exact('Butston test') for i in range(3): - LOGGER.info(f"Setting button pressed for {i + 1} seconds") - wokwi.client.set_control("btn1", "pressed", 1) + LOGGER.info(f'Setting button pressed for {i + 1} seconds') + wokwi.client.set_control('btn1', 'pressed', 1) - dut.expect_exact(f"Button pressed {i + 1} times") - wokwi.client.set_control("btn1", "pressed", 0) + dut.expect_exact(f'Button pressed {i + 1} times') + wokwi.client.set_control('btn1', 'pressed', 0) ```