Skip to content

Commit 46700ad

Browse files
jktjktclaude
andcommitted
pylint: unbreak relative imports
Due to the way how the tests runners and linters are set up, when `test_a.py` imported `test_b`, it would pass during regular test execution and fail with pylint. That ain't good. Signed-off-by: Jan Kundrát <jan.kundrat@cesnet.cz> Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
1 parent 49a1e9a commit 46700ad

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎pylintrc‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
[MAIN]
22

3+
# Allow testA.py to import testB.py
4+
init-hook='import sys; sys.path.insert(0, "tests")'
5+
36
# A comma-separated list of package or module names from where C extensions may
47
# be loaded. Extensions are loading into the active Python interpreter and may
58
# run arbitrary code.

0 commit comments

Comments
 (0)