33***************************
44
55:Release: 2.10
6- :Date: TBA
6+ :Date: 2021-08-20
77
88Summary -- Release highlights
99=============================
1010
11+ In 2.10, we added several new default check, like ``unspecified-encoding ``, ``forgotten-debug-statement `` or
12+ ``use-dict-literal ``. There's also a few opinionated optional one. You can now forbid while loop or
13+ profess your exclusive love of ternary expressions publicly. We promise you hours of arguing fun with
14+ your whole team if you add those to your configuration.
15+
16+ We've also fixed some long standing bugs, false positives, or missing options like ``ignore-signature `` that
17+ will now work on inner function's signatures.
18+
19+ A new option to disable the next line, ``disable-next ``, has been added. It's also possible to export
20+ colored diagrams, and plantuml diagram using pyreverse. ``PYLINT_HOME `` is now ``XDG_CACHE_HOME `` if not set.
21+
22+ The performance of the similarity checker has been improved, as well as several small performance fixes.
23+
24+ We're going to continue working on improving performance during 2.11. We're also going to finalize
25+ a new ``possible-forgotten-f-prefix `` check that had too much false positives at release time. Check
26+ https://github.com/PyCQA/pylint/pull/4787 if you want to provide knowledge or use case :)
27+
1128
1229New checkers
1330============
@@ -24,20 +41,20 @@ New checkers
2441
2542 Closes #4365
2643
27- * Added optional extension `` consider-ternary-expression ``: Emitted whenever a variable is assigned in both branches of an if/else block.
44+ * Added `` forgotten-debug-statement ``: Emitted when `` breakpoint ``, `` pdb.set_trace `` or `` sys.breakpointhook `` calls are found
2845
29- Closes # 4366
46+ Closes #3692
3047
31- * Added optional extension `` while-used ``: Emitted whenever a `` while `` loop is used .
48+ * Added `` use-sequence-for-iteration ``: Emitted when iterating over an in-place defined `` set `` .
3249
33- Closes # 4367
3450
35- * Added ``forgotten-debug-statement `` : Emitted when `` breakpoint ``, `` pdb.set_trace `` or `` sys.breakpointhook `` calls are found
51+ * Added ``format-string-without-interpolation `` checker : Emitted when formatting is applied to a string without any variables to be replaced
3652
37- Closes #3692
53+ Closes #4042
3854
39- * Added ``use-sequence-for-iteration `` : Emitted when iterating over an in-place defined `` set ``.
55+ * Added ``redundant-u-string-prefix `` checker : Emitted when the u prefix is added to a string
4056
57+ Closes #4102
4158
4259Extensions
4360==========
@@ -48,6 +65,13 @@ Extensions
4865
4966 * Emit ``consider-using-tuple `` even if list contains a ``starred `` expression.
5067
68+ * Added optional extension ``consider-ternary-expression ``: Emitted whenever a variable is assigned in both branches of an if/else block.
69+
70+ Closes # 4366
71+
72+ * Added optional extension ``while-used ``: Emitted whenever a ``while `` loop is used.
73+
74+ Closes # 4367
5175
5276Other Changes
5377=============
@@ -97,14 +121,6 @@ Other Changes
97121
98122 Closes #1682
99123
100- * Added ``format-string-without-interpolation `` checker: Emitted when formatting is applied to a string without any variables to be replaced
101-
102- Closes #4042
103-
104- * Added ``redundant-u-string-prefix `` checker: Emitted when the u prefix is added to a string
105-
106- Closes #4102
107-
108124* Fixed ``cell-var-from-loop `` checker: handle cell variables in comprehensions within functions,
109125 and function default argument expressions. Also handle basic variable shadowing.
110126
0 commit comments