-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
121 lines (109 loc) · 3.18 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
[tool.pylint.main]
# Add files or directories matching the regular expressions patterns to the
# ignore-list. The regex matches against paths and can be in Posix or Windows
# format. Because '\\' represents the directory delimiter on Windows systems, it
# can't be used as an escape character.
ignore-paths = [
# From .gitignore
# IDEs
".idea/",
".vscode/",
# Python
"__pycache__/",
"venv/",
# Logging
"logs/",
# Outside of .gitignore
# Submodules
"modules/common/",
]
# Use multiple processes to speed up Pylint. Specifying 0 will auto-detect the
# number of processors available to use, and will cap the count on Windows to
# avoid hangs.
jobs = 0
# Minimum Python version to use for version dependent checks. Will default to the
# version used to run pylint.
py-version = "3.11"
# Discover python modules and packages in the file system subtree.
recursive = true
# [tool.pylint.basic]
# Good variable names which should always be accepted, separated by a comma.
good-names = [
"i",
"j",
"k",
"ex",
"Run",
"_",
# Return of main()
"result_main",
# Suffix bytes (B)
"min_size_B",
"max_size_B",
"total_size_B",
"size_B",
"original_size_B",
"min_size_B",
"total_size_B",
]
[tool.pylint."messages control"]
# Disable the message, report, category or checker with the given id(s). You can
# either give multiple identifiers separated by comma (,) or put this option
# multiple times (only on the command line, not in the configuration file where
# it should appear only once). You can also use "--disable=all" to disable
# everything first and then re-enable specific checks. For example, if you want
# to run only the similarities checker, you can use "--disable=all
# --enable=similarities". If you want to run only the classes checker, but have
# no Warning level messages displayed, use "--disable=all --enable=classes
# --disable=W".
disable = [
"raw-checker-failed",
"bad-inline-option",
"locally-disabled",
"file-ignored",
"suppressed-message",
"useless-suppression",
"deprecated-pragma",
"use-symbolic-message-instead",
"use-implicit-booleaness-not-comparison-to-string",
"use-implicit-booleaness-not-comparison-to-zero",
# WARG
# Ignore TODOs
"fixme",
# Pylint cannot find modules
"import-error",
# Covered by Black formatter
"line-too-long",
# Pylint cannot handle 3rd party imports
"no-member",
# Some classes are simple
"too-few-public-methods",
# Function signatures
"too-many-arguments",
# Don't care
"too-many-branches",
# Line count in file
"too-many-lines",
# Don't care
"too-many-locals",
# Don't care
"too-many-statements",
# Don't care
"too-many-return-statements",
# TODO: Duplicate code
"duplicate-code",
]
[tool.pylint.similarities]
# Minimum lines number of a similarity.
# Main guard
min-similarity-lines = 10
[tool.pytest.ini_options]
minversion = "6.0"
# Submodules
addopts = "--ignore=modules/common/"
[tool.black]
line-length = 100
target-version = ["py311"]
# Excludes files or directories in addition to the defaults
# Submodules
extend-exclude = "modules/common/*"