From 419bacc0494c7857bdb755221a8111e9d9506fc5 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Mon, 16 Sep 2024 18:50:27 +0200 Subject: [PATCH] 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 --- .mypy.ini | 2 +- .pylintrc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.mypy.ini b/.mypy.ini index 6b831ddb77..f727cc20e7 100644 --- a/.mypy.ini +++ b/.mypy.ini @@ -1,4 +1,4 @@ [mypy] -mypy_path = scripts +mypy_path = framework/scripts:scripts namespace_packages = True warn_unused_configs = True diff --git a/.pylintrc b/.pylintrc index f395fb91e7..f9c97d55ea 100644 --- a/.pylintrc +++ b/.pylintrc @@ -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]