Skip to content

Commit bb8a487

Browse files
Apply suggestions from code review
Co-authored-by: Daniël van Noord <[email protected]>
1 parent 9e798d1 commit bb8a487

File tree

5 files changed

+5
-3
lines changed

5 files changed

+5
-3
lines changed

pylint/lint/pylinter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def _load_reporter_by_class(reporter_class: str) -> type:
159159
"Used when a bad value is used in 'load-plugins'.",
160160
),
161161
"E0014": (
162-
"Bad top level configuration section name encountered '%s' : '%s'",
162+
"Incorrect setting encountered in top level configuration-section '%s' : '%s'",
163163
"bad-configuration-option-value",
164164
"Used when a top section value can't be parsed probably because it does not exists.",
165165
),
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
[tool.pylint]
2+
# load-plugins does not belong in top level section
23
load-plugins = []
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[tool.pylint]
2-
# Both disable and load-plugins are not top level section
2+
# Both disable and load-plugins do not belong in the top level section
33
load-plugins = []
44
disable = "logging-not-lazy,logging-format-interpolation"

tests/config/issue_4580/invalid_data_for_import.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Both disable and load-plugins are not top level section
1+
# Both disable and load-plugins do not belong in the imports section
22
[tool.pylint."imports"]
33
disable = [
44
"logging-not-lazy",
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
[tool.pylint]
2+
# disable does not belong in top level section
23
disable = "logging-not-lazy,logging-format-interpolation"

0 commit comments

Comments
 (0)