summaryrefslogtreecommitdiff
path: root/.pylintrc
diff options
context:
space:
mode:
authorChristian Hopps <chopps@labn.net>2025-03-24 05:07:28 +0000
committerChristian Hopps <chopps@labn.net>2025-03-24 05:10:36 +0000
commit3d4dee5f0cb0b32cbf405f0198e112d17249e0f3 (patch)
tree0428af8f1c2303f6ef24c335c8221b659a6cd441 /.pylintrc
parentc288e5fbaf73bafb9aa15ade13969fc321e321db (diff)
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 <chopps@labn.net>
Diffstat (limited to '.pylintrc')
-rw-r--r--.pylintrc2
1 files changed, 1 insertions, 1 deletions
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]