-
Notifications
You must be signed in to change notification settings - Fork 10
/
pyproject.toml
103 lines (83 loc) · 2.27 KB
/
pyproject.toml
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
[tool.black]
line-length = 100
target-version = [
'py38',
]
include = '(bluepysnap|tests)\/.*\.py|doc\/source\/conf\.py|setup\.py'
[tool.isort]
profile = 'black'
line_length = 100
known_local_folder = [
'utils',
'test_module',
]
[tool.coverage.run]
omit = [
'bluepysnap/_version.py',
]
[tool.pylint.main]
# Files or directories to be skipped. They should be base names, not paths.
ignore = ["CVS", "_version.py"]
[tool.pylint.messages_control]
disable = [
'fixme',
'invalid-name',
'len-as-condition',
'no-else-return',
'import-outside-toplevel',
'bad-mcs-classmethod-argument',
'unnecessary-lambda-assignment',
]
[tool.pylint.format]
# Regexp for a line that is allowed to be longer than the limit.
ignore-long-lines='.*https?://'
# Maximum number of characters on a single line.
max-line-length = 100
[tool.pylint.design]
# Maximum number of arguments for function / method
max-args = 8
# Argument names that match this expression will be ignored. Default to name
# with leading underscore
ignored-argument-names = '_.*'
# Maximum number of locals for function / method body
max-locals = 15
# Maximum number of return / yield for function / method body
max-returns = 6
# Maximum number of branch for function / method body
max-branches = 12
# Maximum number of statements in function / method body
max-statements = 50
# Maximum number of parents for a class (see R0901).
max-parents = 7
# Maximum number of attributes for a class (see R0902).
max-attributes = 40
# Minimum number of public methods for a class (see R0903).
min-public-methods = 0
# Maximum number of public methods for a class (see R0904).
max-public-methods = 60
# checks for similarities and duplicated code. This computation may be
# memory / CPU intensive, so you should disable it if you experiment some
# problems.
[tool.pylint.similarities]
# Minimum lines number of a similarity.
min-similarity-lines = 25
# Ignore comments when computing similarities.
ignore-comments = 'yes'
# Ignore docstrings when computing similarities.
ignore-docstrings = 'yes'
[tool.pylint.typecheck]
extension-pkg-whitelist = [
'libsonata',
]
ignored-modules = [
'numpy',
]
[tool.pylint.tests]
disable = [
'all',
]
enable = [
'unused-import',
'unused-variable',
'unused-argument',
]