/ setup.cfg
setup.cfg
 1  # Since there is overlap in the violations that the different tools check for, it makes sense to quiesce some warnings 
 2  # in some tools if those warnings in other tools are preferred. This avoids the need to add duplicate lint warnings.
 3  
 4  # max-line-length should be removed ASAP!
 5  
 6  [pycodestyle]
 7  max-line-length = 119
 8  
 9  [flake8]
10  max-line-length = 119
11  exclude = bitmessagecli.py,bitmessagecurses,bitmessageqt,plugins,tests,umsgpack
12  ignore = E722,F841,W503
13  # E722: pylint is preferred for bare-except
14  # F841: pylint is preferred for unused-variable
15  # W503: deprecated: https://bugs.python.org/issue26763 - https://www.python.org/dev/peps/pep-0008/#should-a-line-break-before-or-after-a-binary-operator
16  
17  # pylint honours the [MESSAGES CONTROL] section
18  # as well as [MASTER] section
19  [MESSAGES CONTROL]
20  disable=invalid-name,bare-except,broad-except
21  # invalid-name: needs fixing during a large, project-wide refactor
22  # bare-except,broad-except: Need fixing once thorough testing is easier
23  max-args = 8
24  max-attributes = 8
25  
26  [MASTER]
27  init-hook = import sys;sys.path.append('src')