Skip to content

Commit

Permalink
Add src to path when running pylint
Browse files Browse the repository at this point in the history
- this will allow pylint to run in the main directory without complaining about
  imports
  • Loading branch information
PeterSurda committed Aug 27, 2018
1 parent 50ee7fa commit 0bc1dfd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions setup.cfg
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ ignore = E722,F841
# F841: pylint is preferred for unused-variable # F841: pylint is preferred for unused-variable


# pylint honours the [MESSAGES CONTROL] section # pylint honours the [MESSAGES CONTROL] section
# as well as [MASTER] section
[MESSAGES CONTROL] [MESSAGES CONTROL]
disable=invalid-name,bare-except,broad-except disable=invalid-name,bare-except,broad-except
# invalid-name: needs fixing during a large, project-wide refactor # invalid-name: needs fixing during a large, project-wide refactor
# bare-except,broad-except: Need fixing once thorough testing is easier # bare-except,broad-except: Need fixing once thorough testing is easier

[MASTER]
init-hook = import sys;sys.path.append('src')

0 comments on commit 0bc1dfd

Please sign in to comment.