Skip to content

Commit 2c75c33

Browse files
Add version information in the data structure
1 parent 69ad672 commit 2c75c33

File tree

1 file changed

+24
-20
lines changed

1 file changed

+24
-20
lines changed

pylint/config/_breaking_changes.py

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -73,23 +73,27 @@ class Solution(enum.Enum):
7373
extension="pylint.extensions.emptystring",
7474
)
7575

76-
CONFIGURATION_BREAKING_CHANGES: list[BreakingChangeWithSolution] = [
77-
(
78-
BreakingChange.MESSAGE_MOVED_TO_EXTENSION,
79-
NO_SELF_USE,
80-
[Condition.MESSAGE_IS_ENABLED, Condition.EXTENSION_IS_NOT_LOADED],
81-
[[Solution.ADD_EXTENSION], [Solution.DISABLE_MESSAGE_IMPLICITLY]],
82-
),
83-
(
84-
BreakingChange.EXTENSION_REMOVED,
85-
COMPARE_TO_ZERO,
86-
[Condition.MESSAGE_IS_NOT_DISABLED, Condition.EXTENSION_IS_LOADED],
87-
[[Solution.REMOVE_EXTENSION, Solution.ENABLE_MESSAGE_EXPLICITLY]],
88-
),
89-
(
90-
BreakingChange.EXTENSION_REMOVED,
91-
COMPARE_TO_EMPTY_STRING,
92-
[Condition.MESSAGE_IS_NOT_DISABLED, Condition.EXTENSION_IS_LOADED],
93-
[[Solution.REMOVE_EXTENSION, Solution.ENABLE_MESSAGE_EXPLICITLY]],
94-
),
95-
]
76+
CONFIGURATION_BREAKING_CHANGES: dict[str, list[BreakingChangeWithSolution]] = {
77+
"2.14.0": [
78+
(
79+
BreakingChange.MESSAGE_MOVED_TO_EXTENSION,
80+
NO_SELF_USE,
81+
[Condition.MESSAGE_IS_ENABLED, Condition.EXTENSION_IS_NOT_LOADED],
82+
[[Solution.ADD_EXTENSION], [Solution.DISABLE_MESSAGE_IMPLICITLY]],
83+
),
84+
],
85+
"3.0.0": [
86+
(
87+
BreakingChange.EXTENSION_REMOVED,
88+
COMPARE_TO_ZERO,
89+
[Condition.MESSAGE_IS_NOT_DISABLED, Condition.EXTENSION_IS_LOADED],
90+
[[Solution.REMOVE_EXTENSION, Solution.ENABLE_MESSAGE_EXPLICITLY]],
91+
),
92+
(
93+
BreakingChange.EXTENSION_REMOVED,
94+
COMPARE_TO_EMPTY_STRING,
95+
[Condition.MESSAGE_IS_NOT_DISABLED, Condition.EXTENSION_IS_LOADED],
96+
[[Solution.REMOVE_EXTENSION, Solution.ENABLE_MESSAGE_EXPLICITLY]],
97+
),
98+
],
99+
}

0 commit comments

Comments
 (0)