diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0aff5b6f07b..6a949631bd9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -26,6 +26,7 @@ repos: - id: trailing-whitespace args: [--markdown-linebreak-ext=md] - id: pretty-format-json + stages: [manual] args: [--autofix] types_or: [json] exclude: | diff --git a/tests/performance/fibonacci/test_fibonacci.py b/tests/performance/fibonacci/test_fibonacci.py index ced9368184e..cf560d9691c 100644 --- a/tests/performance/fibonacci/test_fibonacci.py +++ b/tests/performance/fibonacci/test_fibonacci.py @@ -4,6 +4,7 @@ fib_results = {} + def fib(n): if n < 2: return n diff --git a/tests/validation/gpio/test_gpio.py b/tests/validation/gpio/test_gpio.py index f11b9fd99cc..8aa3a42dcc6 100644 --- a/tests/validation/gpio/test_gpio.py +++ b/tests/validation/gpio/test_gpio.py @@ -1,5 +1,6 @@ import logging + def test_gpio(dut): LOGGER = logging.getLogger(__name__) diff --git a/tests/validation/nvs/test_nvs.py b/tests/validation/nvs/test_nvs.py index a2b4842fa91..424095a49ba 100644 --- a/tests/validation/nvs/test_nvs.py +++ b/tests/validation/nvs/test_nvs.py @@ -1,5 +1,6 @@ import logging + def test_nvs(dut): LOGGER = logging.getLogger(__name__) diff --git a/tests/validation/periman/test_periman.py b/tests/validation/periman/test_periman.py index a2d25f5ba09..2728abcef80 100644 --- a/tests/validation/periman/test_periman.py +++ b/tests/validation/periman/test_periman.py @@ -1,5 +1,6 @@ import logging + def test_periman(dut): LOGGER = logging.getLogger(__name__) peripherals = [ diff --git a/tests/validation/wifi/test_wifi.py b/tests/validation/wifi/test_wifi.py index 769283b06bd..5049aae7b85 100644 --- a/tests/validation/wifi/test_wifi.py +++ b/tests/validation/wifi/test_wifi.py @@ -1,5 +1,6 @@ import logging + def test_wifi(dut): LOGGER = logging.getLogger(__name__)