-
Notifications
You must be signed in to change notification settings - Fork 572
Expand file tree
/
Copy pathsetup.cfg
More file actions
49 lines (38 loc) · 1.57 KB
/
setup.cfg
File metadata and controls
49 lines (38 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Since there is overlap in the violations that the different tools check for, it makes sense to quiesce some warnings
# in some tools if those warnings in other tools are preferred. This avoids the need to add duplicate lint warnings.
# max-line-length should be removed ASAP!
[pycodestyle]
max-line-length = 119
ignore = E402,E722,W503
[flake8]
max-line-length = 119
exclude = bitmessagecli.py,bitmessagecurses,bitmessageqt,plugins,tests,umsgpack
ignore = E722,F841,W503
# E722: pylint is preferred for bare-except
# F841: pylint is preferred for unused-variable
# 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
# -- pylint (modern, >= 2.14) -- pylint.*-prefixed sections for setup.cfg
[pylint.main]
init-hook = import sys;sys.path.append('src')
ignore = bitmessagekivy
[pylint.messages_control]
disable =
invalid-name,bare-except,broad-except,relative-import,
superfluous-parens,bad-option-value
# invalid-name: needs fixing during a large, project-wide refactor
# bare-except,broad-except: Need fixing once thorough testing is easier
# bad-option-value is for backward compatibility between python 2 and 3
[pylint.design]
max-args = 8
max-attributes = 8
# -- pylint (legacy, < 2.0 / python 2.7) -- old .pylintrc-style section names
[MASTER]
init-hook = import sys;sys.path.append('src')
ignore = bitmessagekivy
[MESSAGES CONTROL]
disable =
invalid-name,bare-except,broad-except,relative-import,
superfluous-parens,bad-option-value
[DESIGN]
max-args = 8
max-attributes = 8