Allow running pylint and mypy on a single file

Fix `mypy scripts/xxx.py`, `mypy tests/scripts/xxx.py`,
`pylint scripts/xxx.py`, `pylint tests/scripts/xxx.py`
failing to find `mbedtls_framework`.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
Gilles Peskine 2024-09-16 18:50:27 +02:00
parent 26650f5711
commit 419bacc049
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
[mypy]
mypy_path = scripts
mypy_path = framework/scripts:scripts
namespace_packages = True
warn_unused_configs = True

View File

@ -1,5 +1,5 @@
[MASTER]
init-hook='import sys; sys.path.append("scripts")'
init-hook='import sys; sys.path.append("scripts"); sys.path.append("framework/scripts")'
min-similarity-lines=10
[BASIC]