From a28b405f45e927f4413a2feaa55570680cc71762 Mon Sep 17 00:00:00 2001 From: M1nd3r Date: Tue, 25 Feb 2025 13:49:39 +0100 Subject: [PATCH] chore: include pb2py for python style linting [no changelog] --- Makefile | 2 +- common/protob/pb2py | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index ba32ffd688..1afa1220b9 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ help: ## show this help ## style commands: -PY_FILES = $(shell find . -type f -name '*.py' | sed 'sO^\./OO' | grep -f ./tools/style.py.include | grep -v -f ./tools/style.py.exclude ) +PY_FILES = $(shell find . -type f -name '*.py' | sed 'sO^\./OO' | grep -f ./tools/style.py.include | grep -v -f ./tools/style.py.exclude ) common/protob/pb2py C_FILES = $(shell find . -type f -name '*.[ch]' | grep -f ./tools/style.c.include | grep -v -f ./tools/style.c.exclude ) diff --git a/common/protob/pb2py b/common/protob/pb2py index d6cbbde171..226f983aac 100755 --- a/common/protob/pb2py +++ b/common/protob/pb2py @@ -133,9 +133,7 @@ WIRETYPE_ENTRY = c.Sequence( ) # QDEF(MP_QSTR_copysign, 5171, 8, "copysign") -QDEF_RE = re.compile( - r'^QDEF\(MP_QSTR(\S+), ([0-9]+), ([0-9])+, "(.*)"\)$' -) +QDEF_RE = re.compile(r'^QDEF\(MP_QSTR(\S+), ([0-9]+), ([0-9])+, "(.*)"\)$') @dataclass