1
0
mirror of https://github.com/raspberrypi/pico-sdk.git synced 2025-08-06 06:02:39 +03:00

Add Board Header Check Action (#2519)

* Add action to check board headers when modified

* Fix invalid escape warning

* Check for more board header errors before exiting script

* Also run when action file changes

* Add back newline at end of check_all_board_headers.sh

* Remove python install step

* `e.__str__()` -> `str(e)`
This commit is contained in:
will-v-pi
2025-06-26 15:59:32 +01:00
committed by GitHub
parent 8fb131a70f
commit 6f856ee4eb
7 changed files with 121 additions and 60 deletions

View File

@@ -26,7 +26,7 @@ if sys.version_info < (3, 11):
# Python <3.11 doesn't have ExceptionGroup, so define a simple one
class ExceptionGroup(Exception):
def __init__(self, message, errors):
message += "\n" + "\n".join(e.__str__() for e in errors)
message += "\n" + "\n".join(str(e) for e in errors)
super().__init__(message)
logger = logging.getLogger(__name__)