-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpylintrc.toml
37 lines (30 loc) · 1.07 KB
/
pylintrc.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
[tool.pylint.main]
py-version = "3.12"
extension-pkg-whitelist = ["PyQt6"]
[tool.pylint.basic]
# camelCase is more readable to me
argument-naming-style = "camelCase"
attr-naming-style = "camelCase"
function-naming-style = "camelCase"
method-naming-style = "camelCase"
module-naming-style = "camelCase"
variable-naming-style = "camelCase"
class-naming-style = "PascalCase"
docstring-min-length = 6 # on shorter functions, case by case basis
# allow generated members with pyjson5, otherwise pylint complains
generated-members = ["pyjson5.*", "pynmeagps.*"]
[tool.pylint.design]
max-args = 7 # default of 5 seems too low
max-attributes = 12 # default of 7 seems too low
max-statements = 30 # default of 50 seems too high
[tool.pylint.format]
indent-string = "\t"
max-line-length = 120 # default of 100 is too low
[tool.pylint.refactoring]
max-nested-blocks = 2 # default of 5 is too high
# warnings to disable
[tool.pylint.messages_control]
disable = [
"missing-module-docstring", # i don't see a need for this
"too-many-positional-arguments", # i don't see a need for this
]