-
Notifications
You must be signed in to change notification settings - Fork 4
/
pyproject.toml
111 lines (98 loc) · 2.98 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
[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/",
# Submodule dronekit
"modules/mavlink/dronekit",
]
# 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",
]
[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",
]
[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=mavlink/dronekit/"
[tool.black]
line-length = 100
target-version = ["py311"]
# Excludes files or directories in addition to the defaults
# Submodules
extend-exclude = "modules/mavlink/dronekit/*"