From: Christian Hopps Date: Mon, 24 Mar 2025 05:07:28 +0000 (+0000) Subject: tests: add another directory to search path for pylint X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=3d4dee5f0cb0b32cbf405f0198e112d17249e0f3;p=matthieu%2Ffrr.git tests: add another directory to search path for pylint Some IDEs (e.g., emacs+lsp) run pylint from the root directory and so we need to add `tests/topotests` so that `lib` and `munet` are found by pylint when used in imports Signed-off-by: Christian Hopps --- diff --git a/.pylintrc b/.pylintrc index ba9430ba6b..c829d45127 100644 --- a/.pylintrc +++ b/.pylintrc @@ -1,5 +1,5 @@ [MASTER] -init-hook="import sys; sys.path.insert(0, '..')" +init-hook="import sys; sys.path.extend(['..', 'tests/topotests']);" signature-mutators=common_config.retry,retry [FORMAT]