9 Commits

Author SHA1 Message Date
Gilles Peskine ab001120d6 Exclude maintainer scripts from Python checks
Maintainer scripts may require a more recent Python than the version we
currently use for Python checks (3.6).

https://github.com/Mbed-TLS/mbedtls-framework/issues/293

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2026-03-31 16:01:03 +02:00
Gilles Peskine c5135a0c47 Add pylint duplicate-code exceptions for newly moved files
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2026-03-09 10:50:57 +01:00
Gilles Peskine 345b13a2b4 Run pylint and mypy on all files in mbedtls_framework
We were missing `mbedtls_framework/code_wrapper/*.py` because we were not
traversing the directory recursively.

Also improve the comment explaining the duplicate-code workaround for code
that's being moved between files in different repositories.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2026-03-09 10:50:57 +01:00
Ronald Cron 042e954d7d make_generated_files.py: Split data from code
Initial work to eventually have the list of
scripts that generate files in the branches
that consume the framework.

Signed-off-by: Ronald Cron <ronald.cron@arm.com>
2026-01-26 15:54:59 +01:00
Bence Szépkúti 12fe6e31e7 Fix copypasta in check-python-files.sh
Signed-off-by: Bence Szépkúti <bence.szepkuti@arm.com>
2025-12-18 20:20:25 +01:00
Bence Szépkúti 5066f2cbf9 Work around code duplication warning in pylint
Use `find` to sort scripts/abi_check.py into a separate invocation of pylint.

Signed-off-by: Bence Szépkúti <bence.szepkuti@arm.com>
2025-12-18 20:20:25 +01:00
Gilles Peskine 088a99ee20 Allow framework and consuming branch to have Python scripts with the same name
mypy can't deal with two modules with the same basename on its command line.

We don't normally want modules with the same name in different directories,
to avoid confusion, but it can happen occasionally while moving files across
repositories.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2025-09-12 18:36:18 +02:00
Valerio Setti b66476cf12 check-python-files.sh: update path for test_psa_constant_names.py
Update the path of the file now that it has been moved to the framework
repo.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2025-02-04 11:46:49 +01:00
Valerio Setti 965b829b54 Move files into the framework
The following files are added (imported) from the main Mbed TLS repo:

scripts/assemble_changelog.py
scripts/check-doxy-blocks.pl
scripts/check-python-files.sh
scripts/doxygen.sh
scripts/apidoc_full.sh
scripts/recursion.pl

Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
2025-01-08 09:51:01 +01:00