@@ -15,18 +15,35 @@ ignore = E722,F841,W503
1515# F841: pylint is preferred for unused-variable
1616# 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
1717
18- # pylint honours the [MESSAGES CONTROL] section
19- # as well as [MASTER] section
20- [MESSAGES CONTROL]
21- disable =
22- invalid-name,bare-except,broad-except,superfluous-parens,
23- bad-option-value
18+ # -- pylint (modern, >= 2.14) -- pylint.*-prefixed sections for setup.cfg
19+
20+ [pylint.main]
21+ init-hook = import sys; sys.path.append('src')
22+ ignore = bitmessagekivy
23+
24+ [pylint.messages_control]
25+ disable =
26+ invalid-name,bare-except,broad-except,relative-import,
27+ superfluous-parens,bad-option-value
2428# invalid-name: needs fixing during a large, project-wide refactor
2529# bare-except,broad-except: Need fixing once thorough testing is easier
2630# bad-option-value is for backward compatibility between python 2 and 3
31+
32+ [pylint.design]
2733max-args = 8
2834max-attributes = 8
2935
36+ # -- pylint (legacy, < 2.0 / python 2.7) -- old .pylintrc-style section names
37+
3038[MASTER]
3139init-hook = import sys; sys.path.append('src')
3240ignore = bitmessagekivy
41+
42+ [MESSAGES CONTROL]
43+ disable =
44+ invalid-name,bare-except,broad-except,relative-import,
45+ superfluous-parens,bad-option-value
46+
47+ [DESIGN]
48+ max-args = 8
49+ max-attributes = 8
0 commit comments