From 14dcc7e612b6c949c3de34e9216dd87699c78431 Mon Sep 17 00:00:00 2001 From: Dmytro Polityka Date: Sun, 11 Aug 2024 00:07:18 +0200 Subject: [PATCH] change the way of addressing the prospector profile --- scripts/lint_modules.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/lint_modules.py b/scripts/lint_modules.py index fd46a4f10..a101890e7 100644 --- a/scripts/lint_modules.py +++ b/scripts/lint_modules.py @@ -15,14 +15,16 @@ def main(): "modules/text/module_text_cofee", "modules/programming/module_programming_themisml", "modules/modeling/module_modeling_llm", - #"module_programming_apted" skip due to an error + # "module_programming_apted" skip due to an error ] success = True for module in modules: if os.path.isdir(module): - result = subprocess.run(["poetry", "run", "prospector", "--profile", "../../../.prospector.yaml"], cwd=module) + result = subprocess.run(["poetry", "run", "prospector", "--profile", + os.path.abspath(os.path.join(os.path.dirname(__file__), "../.prospector.yaml"))], + cwd=module) if result.returncode != 0: success = False