| 1 |
Full changelog |
| 2 |
============== |
| 3 |
|
| 4 |
What's New in Pylint 2.10.2? |
| 5 |
---------------------------- |
| 6 |
Release date: 2021-08-21 |
| 7 |
|
| 8 |
* We now use platformdirs instead of appdirs since the latter is not maintained. |
| 9 |
|
| 10 |
Closes #4886 |
| 11 |
|
| 12 |
* Fix a crash in the checker raising ``shallow-copy-environ`` when failing to infer |
| 13 |
on ``copy.copy`` |
| 14 |
|
| 15 |
Closes #4891 |
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
What's New in Pylint 2.10.1? |
| 20 |
---------------------------- |
| 21 |
Release date: 2021-08-20 |
| 22 |
|
| 23 |
* pylint does not crash when PYLINT_HOME does not exist. |
| 24 |
|
| 25 |
Closes #4883 |
| 26 |
|
| 27 |
|
| 28 |
What's New in Pylint 2.10.0? |
| 29 |
---------------------------- |
| 30 |
Release date: 2021-08-20 |
| 31 |
|
| 32 |
* pyreverse: add option to produce colored output. |
| 33 |
|
| 34 |
Closes #4488 |
| 35 |
|
| 36 |
* pyreverse: add output in PlantUML format. |
| 37 |
|
| 38 |
Closes #4498 |
| 39 |
|
| 40 |
* ``consider-using-with`` is no longer triggered if a context manager is returned from a function. |
| 41 |
|
| 42 |
Closes #4748 |
| 43 |
|
| 44 |
* pylint does not crash with a traceback anymore when a file is problematic. It |
| 45 |
creates a template text file for opening an issue on the bug tracker instead. |
| 46 |
The linting can go on for other non problematic files instead of being impossible. |
| 47 |
|
| 48 |
* pyreverse: Show class has-a relationships inferred from the type-hint |
| 49 |
|
| 50 |
Closes #4744 |
| 51 |
|
| 52 |
* Fixed a crash when importing beyond the top level package during ``import-error`` |
| 53 |
message creation |
| 54 |
|
| 55 |
Closes #4775 |
| 56 |
|
| 57 |
* Added ``ignored-parents`` option to the design checker to ignore specific |
| 58 |
classes from the ``too-many-ancestors`` check (R0901). |
| 59 |
|
| 60 |
Fixes part of #3057 |
| 61 |
|
| 62 |
* Added ``unspecified-encoding``: Emitted when open() is called without specifying an encoding |
| 63 |
|
| 64 |
Closes #3826 |
| 65 |
|
| 66 |
* Improved the Similarity checker performance. Fix issue with ``--min-similarity-lines`` used with ``--jobs``. |
| 67 |
|
| 68 |
Closes #4120 |
| 69 |
Closes #4118 |
| 70 |
|
| 71 |
* Don't emit ``no-member`` error if guarded behind if statement. |
| 72 |
|
| 73 |
Refs #1162 |
| 74 |
Closes #1990 |
| 75 |
Closes #4168 |
| 76 |
|
| 77 |
* The default for ``PYLINTHOME`` is now the standard ``XDG_CACHE_HOME``, and pylint now uses ``appdirs``. |
| 78 |
|
| 79 |
Closes #3878 |
| 80 |
|
| 81 |
* Added ``use-list-literal``: Emitted when ``list()`` is called with no arguments instead of using ``[]`` |
| 82 |
|
| 83 |
Closes #4365 |
| 84 |
|
| 85 |
* Added ``use-dict-literal``: Emitted when ``dict()`` is called with no arguments instead of using ``{}`` |
| 86 |
|
| 87 |
Closes #4365 |
| 88 |
|
| 89 |
* Added optional extension ``consider-ternary-expression``: Emitted whenever a variable is assigned in both branches of an if/else block. |
| 90 |
|
| 91 |
Closes # 4366 |
| 92 |
|
| 93 |
* Added optional extension ``while-used``: Emitted whenever a ``while`` loop is used. |
| 94 |
|
| 95 |
Closes # 4367 |
| 96 |
|
| 97 |
* Added ``forgotten-debug-statement``: Emitted when ``breakpoint``, ``pdb.set_trace`` or ``sys.breakpointhook`` calls are found |
| 98 |
|
| 99 |
Closes #3692 |
| 100 |
|
| 101 |
* Fix false-positive of ``unused-private-member`` when using nested functions in a class |
| 102 |
|
| 103 |
Closes #4673 |
| 104 |
|
| 105 |
* Fix crash for ``unused-private-member`` that occurred with nested attributes. |
| 106 |
|
| 107 |
Closes #4755 |
| 108 |
|
| 109 |
* Fix a false positive for ``unused-private-member`` with class names |
| 110 |
|
| 111 |
Closes #4681 |
| 112 |
|
| 113 |
* Fix false positives for ``superfluous-parens`` with walrus operator, ternary operator and inside list comprehension. |
| 114 |
|
| 115 |
Closes #2818 |
| 116 |
Closes #3249 |
| 117 |
Closes #3608 |
| 118 |
Closes #4346 |
| 119 |
|
| 120 |
* Added ``format-string-without-interpolation`` checker: Emitted when formatting is applied to a string without any variables to be replaced |
| 121 |
|
| 122 |
Closes #4042 |
| 123 |
|
| 124 |
* Refactor of ``--list-msgs`` & ``--list-msgs-enabled``: both options now show whether messages are emittable with the current interpreter. |
| 125 |
|
| 126 |
Closes #4778 |
| 127 |
|
| 128 |
* Fix false negative for ``used-before-assignment`` when the variable is assigned |
| 129 |
in an exception handler, but used outside of the handler. |
| 130 |
|
| 131 |
Closes #626 |
| 132 |
|
| 133 |
* Added ``disable-next`` option: allows using `# pylint: disable-next=msgid` to disable a message for the following line |
| 134 |
|
| 135 |
Closes #1682 |
| 136 |
|
| 137 |
* Added ``redundant-u-string-prefix`` checker: Emitted when the u prefix is added to a string |
| 138 |
|
| 139 |
Closes #4102 |
| 140 |
|
| 141 |
* Fixed ``cell-var-from-loop`` checker: handle cell variables in comprehensions within functions, |
| 142 |
and function default argument expressions. Also handle basic variable shadowing. |
| 143 |
|
| 144 |
Closes #2846 |
| 145 |
Closes #3107 |
| 146 |
|
| 147 |
* Fixed bug with ``cell-var-from-loop`` checker: it no longer has false negatives when |
| 148 |
both ``unused-variable`` and ``used-before-assignment`` are disabled. |
| 149 |
|
| 150 |
* Fix false positive for ``invalid-all-format`` if the list or tuple builtin functions are used |
| 151 |
|
| 152 |
Closes #4711 |
| 153 |
|
| 154 |
* Config files can now contain environment variables |
| 155 |
|
| 156 |
Closes #3839 |
| 157 |
|
| 158 |
* Fix false-positive ``used-before-assignment`` with an assignment expression in a ``Return`` node |
| 159 |
|
| 160 |
Closes #4828 |
| 161 |
|
| 162 |
* Added ``use-sequence-for-iteration``: Emitted when iterating over an in-place defined ``set``. |
| 163 |
|
| 164 |
* ``CodeStyleChecker`` |
| 165 |
|
| 166 |
* Limit ``consider-using-tuple`` to be emitted only for in-place defined ``lists``. |
| 167 |
|
| 168 |
* Emit ``consider-using-tuple`` even if list contains a ``starred`` expression. |
| 169 |
|
| 170 |
* Ignore decorators lines by similarities checker when ignore signatures flag enabled |
| 171 |
|
| 172 |
Closes #4839 |
| 173 |
|
| 174 |
* Allow ``true`` and ``false`` values in ``pylintrc`` for better compatibility with ``toml`` config. |
| 175 |
|
| 176 |
* Class methods' signatures are ignored the same way as functions' with similarities "ignore-signatures" option enabled |
| 177 |
|
| 178 |
Closes #4653 |
| 179 |
|
| 180 |
* Improve performance when inferring ``Call`` nodes, by utilizing caching. |
| 181 |
|
| 182 |
* Improve error message for :ref:`invalid-metaclass` when the node is an Instance. |