-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathpyproject.toml
130 lines (112 loc) · 3.94 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
122
123
124
125
126
127
128
129
130
[project]
authors = [
{name = "Martin Pitt", email = "martin.pitt@ubuntu.com"},
]
description = "intercept, process, and report crashes and bug reports"
dynamic = ["version"]
license = {text = "GPLv2+"}
name = "apport"
requires-python = ">=3.11"
[tool.black]
line-length = 88
[tool.codespell]
skip = ".git,*.click,*.gif,*.po,*.png"
ignore-words-list = "buildd"
[tool.isort]
line_length = 88
profile = "black"
[tool.mypy]
disallow_incomplete_defs = true
ignore_missing_imports = true
[tool.pydocstyle]
# TODO: Address the ignored codes (except D203,D213)
ignore = "D1,D203,D205,D209,D213,D400,D401,D402,D415"
match = ".*\\.py"
[tool.pylint.main]
# A comma-separated list of package or module names from where C extensions may
# be loaded. Extensions are loading into the active Python interpreter and may
# run arbitrary code.
extension-pkg-allow-list = ["apt_pkg"]
# List of plugins (as comma separated values of python module names) to load,
# usually to register additional checkers. Following plugins are not wanted:
# * pylint.extensions.broad_try_clause
# * pylint.extensions.consider_ternary_expression
# * pylint.extensions.empty_comment
# * pylint.extensions.for_any_all
# * pylint.extensions.magic_value
# * pylint.extensions.while_used
load-plugins = [
"pylint.extensions.check_elif",
"pylint.extensions.code_style",
"pylint.extensions.comparison_placement",
"pylint.extensions.consider_refactoring_into_while_condition",
"pylint.extensions.dict_init_mutate",
"pylint.extensions.docparams",
"pylint.extensions.docstyle",
"pylint.extensions.dunder",
"pylint.extensions.eq_without_hash",
"pylint.extensions.no_self_use",
"pylint.extensions.overlapping_exceptions",
"pylint.extensions.private_import",
"pylint.extensions.redefined_variable_type",
"pylint.extensions.set_membership",
"pylint.extensions.typing",
]
# Pickle collected data for later comparisons.
persistent = false
[tool.pylint.basic]
# Good variable names which should always be accepted, separated by a comma.
good-names = ["i", "j", "k", "lp", "ui", "_"]
[tool.pylint.design]
# Maximum number of arguments for function / method.
max-args = 6
# Maximum number of attributes for a class (see R0902).
max-attributes = 9
# Maximum number of positional arguments for function / method.
max-positional-arguments=6
# Maximum number of public methods for a class (see R0904).
max-public-methods = 25
[tool.pylint.format]
# Maximum number of characters on a single line.
max-line-length = 88
[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 = ["consider-using-assignment-expr", "duplicate-code", "fixme"]
[tool.pylint.reports]
# Tells whether to display a full report or only the messages.
reports = false
# Activate the evaluation score.
score = false
[tool.ruff]
include = [
"pyproject.toml",
"**/*.py",
"bin/apport-cli",
"bin/apport-retrace",
"bin/apport-unpack",
"bin/apport-valgrind",
"bin/crash-digger",
"bin/dupdb-admin",
"data/apport",
"data/apport-checkreports",
"data/apportcheckresume",
"data/gcc_ice_hook",
"data/iwlwifi_error_dump",
"data/java_uncaught_exception",
"data/kernel_crashdump",
"data/kernel_oops",
"data/package_hook",
"data/recoverable_problem",
"data/unkillable_shutdown",
"data/whoopsie-upload-all",
"gtk/apport-gtk",
"kde/apport-kde",
]