| 1 |
:Release: 2.3 |
| 2 |
:Date: 2019-02-27 |
| 3 |
|
| 4 |
|
| 5 |
Summary -- Release highlights |
| 6 |
============================= |
| 7 |
|
| 8 |
* This release improves the performance of the 2.X series after it was affected by a performance regression a couple of releases ago. |
| 9 |
|
| 10 |
New checkers |
| 11 |
============ |
| 12 |
|
| 13 |
* We added a new check message ``wrong-exception-operation``. |
| 14 |
This is emitted when an operation is done against an exception, but the operation |
| 15 |
is not valid for the exception in question. Usually emitted when having |
| 16 |
binary operations between exceptions in except handlers. |
| 17 |
|
| 18 |
Closes #2494 |
| 19 |
|
| 20 |
* We added a new ``no-else-raise`` warning similar to ``no-else-return`` |
| 21 |
|
| 22 |
Closes #2558 |
| 23 |
|
| 24 |
* We added a new option ``check-str-concat-over-line-jumps`` to check |
| 25 |
``implicit-str-concat-in-sequence`` over multiple lines. |
| 26 |
|
| 27 |
|
| 28 |
Other Changes |
| 29 |
============= |
| 30 |
|
| 31 |
Quite a lot of bug fixes and improvements went into this release, here's a handful of them. |
| 32 |
For the full changes, check the full changelog. |
| 33 |
|
| 34 |
* We no longer emit ``*-not-iterating`` checks for builtins consumed by ``itertools`` |
| 35 |
|
| 36 |
* We fixed some false positives for ``no-self-argument`` and ``unsubscriptable-object`` |
| 37 |
when using ``__class_getitem__`` (new in Python 3.7) |
| 38 |
|
| 39 |
* ``pylint`` now supports ``Ellipsis`` as a synonym for ``pass`` statements. |
| 40 |
|
| 41 |
* ``fixme`` gets triggered only on comments. |
| 42 |
|
| 43 |
* ``pylint`` exempts starred unpacking from ``*-not-iterating`` Python 3 checks. |
| 44 |
|
| 45 |
* ``compare-to-zero`` is now less zealous by checking against equality and identity. |
| 46 |
|
| 47 |
*``yield from`` is exempted from ``*-not-iterating`` Python 3 checks. |
| 48 |
|
| 49 |
* A false positive with ``not-async-context-manager`` caused by not understanding |
| 50 |
``contextlib.asynccontextmanager`` was fixed. |
| 51 |
|
| 52 |
* We refactored ``bad-reversed-sequence`` to account for more objects that can define ``__reversed__``. |
| 53 |
|
| 54 |
* ``no-member`` is now emitted for enums when they lack a member. |
| 55 |
|
| 56 |
* Plugins can now use the ``load_configuration()`` hook. |
| 57 |
This hook is executed after configuration is loaded to prevent overwriting plugin |
| 58 |
specific configuration via user-based configuration. |
| 59 |
|
| 60 |
* There's a new command line option ``list-groups`` for listing all the check groups |
| 61 |
``pylint`` knows about. This is useful to know what groups you can disable or enable |
| 62 |
individually. |