| 1 |
:Release: 2.7 |
| 2 |
:Date: 2021-02-21 |
| 3 |
|
| 4 |
Summary -- Release highlights |
| 5 |
============================= |
| 6 |
|
| 7 |
* Python 3.6+ is now required. |
| 8 |
* No more duplicate messages when using multiple jobs. |
| 9 |
* Handling of the new typing provided by mypy 0.8 |
| 10 |
* Reduced the number of false positives in general |
| 11 |
* Reduced the occurrence of genuinely large recursion that went above system limit (See #3836, for a fix for pandas) |
| 12 |
|
| 13 |
New checkers |
| 14 |
============ |
| 15 |
|
| 16 |
* Add ``nan-comparison`` check for comparison of NaN values |
| 17 |
|
| 18 |
* Add support to ``ignored-argument-names`` in DocstringParameterChecker and |
| 19 |
adds ``useless-param-doc`` and ``useless-type-doc`` messages. |
| 20 |
|
| 21 |
* Add ``empty-comment`` check for empty comments. |
| 22 |
|
| 23 |
* Add ``simplifiable-condition`` check for extraneous constants in conditionals using and/or. |
| 24 |
|
| 25 |
* Add ``condition-evals-to-constant`` check for conditionals using and/or that evaluate to a constant. |
| 26 |
|
| 27 |
* Add ``consider-using-generator`` check for the use of list comprehension inside ``any`` or ``all`` function. |
| 28 |
|
| 29 |
Other Changes |
| 30 |
============= |
| 31 |
|
| 32 |
* Fix false positive for ``builtin-not-iterating`` when ``zip`` or ``map`` receives iterable |
| 33 |
|
| 34 |
* Fix linter multiprocessing pool shutdown which triggered warnings when ran in parallels with other pytest plugins. |
| 35 |
|
| 36 |
* Enums are now required to be named in UPPER_CASE by ``invalid-name``. |
| 37 |
|
| 38 |
* Fix bug that lead to duplicate messages when using ``--jobs 2`` or more. |
| 39 |
|
| 40 |
* Adds option ``check-protected-access-in-special-methods`` in the ClassChecker to activate/deactivate |
| 41 |
``protected-access`` message emission for single underscore prefixed attribute in special methods. |
| 42 |
|
| 43 |
* ``inconsistent-return-statements`` message is now emitted if one of ``try/except`` statement |
| 44 |
is not returning explicitly while the other do. |
| 45 |
|
| 46 |
* Fix false positive message ``useless-super-delegation`` when default keyword argument is a dictionary. |
| 47 |
|
| 48 |
* Fix vulnerable regular expressions in ``pyreverse``. The ambiguities of vulnerable regular expressions are removed, making the repaired regular expressions safer and faster matching. |
| 49 |
|
| 50 |
* ``len-as-conditions`` is now triggered only for classes that are inheriting directly from list, dict, or set and not implementing the ``__bool__`` function, or from generators like range or list/dict/set comprehension. This should reduce the false positive for other classes, like pandas's DataFrame or numpy's Array. |
| 51 |
|
| 52 |
* Fixes duplicate code detection for --jobs=2+ |
| 53 |
|
| 54 |
* New option ``allowed-redefined-builtins`` defines variable names allowed to shadow builtins. |
| 55 |
|
| 56 |
* Improved protected access checks to allow access inside class methods |