From b5507335af179daf607a62c382289cbe937209f6 Mon Sep 17 00:00:00 2001
From: Moul <moul@moul.re>
Date: Sun, 16 Feb 2020 18:35:29 +0200
Subject: [PATCH] [ci] #118: Virtualenv path included to fix the import issues

- https://stackoverflow.com/questions/1899436/pylint-unable-to-import-error-how-to-set-pythonpath
---
 .pylintrc | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/.pylintrc b/.pylintrc
index a2f87e08..07c326d5 100644
--- a/.pylintrc
+++ b/.pylintrc
@@ -15,7 +15,9 @@ ignore-patterns=
 
 # Python code to execute, usually for sys.path manipulation such as
 # pygtk.require().
-#init-hook=
+# Trick for pylint CI job to not stumble upon E0401 and E1101 import issues
+# This is the path of Poetry virtualenv in order to found the dependencies
+init-hook='import sys; sys.path.append("/builds/clients/python/duniterpy/.venv")'
 
 # Use multiple processes to speed up Pylint. Specifying 0 will auto-detect the
 # number of processors available to use.
-- 
GitLab