Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,11 @@ lint.pydocstyle.convention = "google"
[tool.pylint]
# Allow the body of an if to be on the same line as the test if there is no
# else.
"FORMAT".single-line-if-stmt = false
FORMAT.single-line-if-stmt = false
# Pickle collected data for later comparisons.
"MASTER".persistent = true
MASTER.persistent = true
# Use multiple processes to speed up Pylint.
"MASTER".jobs = 0
MASTER.jobs = 0
# List of plugins (as comma separated values of python modules names) to load,
# usually to register additional checkers.
# See https://chezsoi.org/lucas/blog/pylint-strict-base-configuration.html.
Expand All @@ -154,7 +154,7 @@ lint.pydocstyle.convention = "google"
# - pylint.extensions.magic_value
# - pylint.extensions.while_used
# as they seemed to get in the way.
"MASTER".load-plugins = [
MASTER.load-plugins = [
"pylint.extensions.bad_builtin",
"pylint.extensions.comparison_placement",
"pylint.extensions.consider_refactoring_into_while_condition",
Expand All @@ -173,12 +173,12 @@ lint.pydocstyle.convention = "google"
]
# Allow loading of arbitrary C extensions. Extensions are imported into the
# active Python interpreter and may run arbitrary code.
"MASTER".unsafe-load-any-extension = false
MASTER.unsafe-load-any-extension = false
# Enable the message, report, category or checker with the given id(s). You can
# either give multiple identifier separated by comma (,) or put this option
# multiple time (only on the command line, not in the configuration file where
# it should appear only once). See also the "--disable" option for examples.
"MESSAGES CONTROL".enable = [
MESSAGES-CONTROL.enable = [
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pylint silently ignores renamed MESSAGES-CONTROL section

High Severity

The change from "MESSAGES CONTROL" (quoted key with a space) to MESSAGES-CONTROL (bare key with a hyphen) alters the actual TOML key name. These are semantically different keys. Pylint recognizes MESSAGES CONTROL (space) or MESSAGES_CONTROL (underscore) as valid section names, but MESSAGES-CONTROL (hyphen) is not a recognized section name and will be silently ignored. This means both the enable and disable message lists will have no effect, potentially causing unexpected lint failures or missing warnings.

Additional Locations (1)

Fix in Cursor Fix in Web

"bad-inline-option",
"deprecated-pragma",
"file-ignored",
Expand All @@ -195,7 +195,7 @@ lint.pydocstyle.convention = "google"
# --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"
"MESSAGES CONTROL".disable = [
MESSAGES-CONTROL.disable = [
"too-few-public-methods",
"too-many-locals",
"too-many-arguments",
Expand All @@ -219,12 +219,12 @@ lint.pydocstyle.convention = "google"
]
# Spelling dictionary name. Available dictionaries: none. To make it working
# install python-enchant package.
"SPELLING".spelling-dict = "en_US"
SPELLING.spelling-dict = "en_US"
# A path to a file that contains private dictionary; one word per line.
"SPELLING".spelling-private-dict-file = "spelling_private_dict.txt"
SPELLING.spelling-private-dict-file = "spelling_private_dict.txt"
# Tells whether to store unknown words to indicated private dictionary in
# --spelling-private-dict-file option instead of raising a message.
"SPELLING".spelling-store-unknown-words = "no"
SPELLING.spelling-store-unknown-words = "no"

[tool.check-manifest]
ignore = [
Expand Down
Loading