From 0bc1dfdc8b7f66393755ad1ea4c355b46b2dae20 Mon Sep 17 00:00:00 2001 From: Peter Surda Date: Mon, 27 Aug 2018 18:59:15 +0200 Subject: [PATCH] Add src to path when running pylint - this will allow pylint to run in the main directory without complaining about imports --- setup.cfg | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/setup.cfg b/setup.cfg index 93efd2d5..3236eed1 100644 --- a/setup.cfg +++ b/setup.cfg @@ -11,7 +11,11 @@ ignore = E722,F841 # F841: pylint is preferred for unused-variable # pylint honours the [MESSAGES CONTROL] section +# as well as [MASTER] section [MESSAGES CONTROL] disable=invalid-name,bare-except,broad-except # invalid-name: needs fixing during a large, project-wide refactor # bare-except,broad-except: Need fixing once thorough testing is easier + +[MASTER] +init-hook = import sys;sys.path.append('src')