Check Python maintainer scripts #293

Open
opened 2026-03-31 07:52:17 -05:00 by gilles-peskine-arm · 0 comments
gilles-peskine-arm commented 2026-03-31 07:52:17 -05:00 (Migrated from github.com)

Our Python code checks (pylint and mypy) currently run on an old version of Python. We have been creating scripts that require a modern Python, and these scripts are in places that are excluded from the Python checks:

The goal of this task is to arrange for these modern-Python scripts to be checked with pylint and mypy.

This can be done either by moving all the Python checking to a modern Python and including the new scripts in these checks, or by adding a second Python check to all.sh that uses a modern Python and looks at the new scripts.

Our Python code checks (pylint and mypy) currently run on an old version of Python. We have been creating scripts that require a modern Python, and these scripts are in places that are excluded from the Python checks: * #278 added a directory `util` in the framework repository for maintainer scripts. * #282 added a subdirectory `util/mbedtls_maintainer` which is a Python package. * https://github.com/Mbed-TLS/TF-PSA-Crypto/pull/700 added a subdirectory `scripts/maintainer` to , which #282 excludes from Python checks. The goal of this task is to arrange for these modern-Python scripts to be checked with pylint and mypy. This can be done either by moving all the Python checking to a modern Python and including the new scripts in these checks, or by adding a second Python check to `all.sh` that uses a modern Python and looks at the new scripts.
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-Mbed-TLS/mbedtls-framework#293
No description provided.