| 1 |
Full changelog |
| 2 |
============== |
| 3 |
|
| 4 |
What's New in Pylint 2.7.4? |
| 5 |
--------------------------- |
| 6 |
Release date: 2021-03-30 |
| 7 |
|
| 8 |
|
| 9 |
* Fix a problem with disabled msgid not being ignored |
| 10 |
|
| 11 |
Closes #4265 |
| 12 |
|
| 13 |
* Fix issue with annotated class constants |
| 14 |
|
| 15 |
Closes #4264 |
| 16 |
|
| 17 |
|
| 18 |
What's New in Pylint 2.7.3? |
| 19 |
--------------------------- |
| 20 |
Release date: 2021-03-29 |
| 21 |
|
| 22 |
* Introduce logic for checking deprecated attributes in DeprecationMixin. |
| 23 |
|
| 24 |
* Reduce usage of blacklist/whitelist terminology. Notably, ``extension-pkg-allow-list`` is an |
| 25 |
alternative to ``extension-pkg-whitelist`` and the message ``blacklisted-name`` is now emitted as |
| 26 |
``disallowed-name``. The previous names are accepted to maintain backward compatibility. |
| 27 |
|
| 28 |
* Move deprecated checker to ``DeprecatedMixin`` |
| 29 |
|
| 30 |
Closes #4086 |
| 31 |
|
| 32 |
* Bump ``astroid`` version to ``2.5.2`` |
| 33 |
|
| 34 |
* Fix false positive for ``method-hidden`` when using private attribute and method |
| 35 |
|
| 36 |
Closes #3936 |
| 37 |
|
| 38 |
* ``use-symbolic-message-instead`` now also works on legacy messages like ``C0111`` (``missing-docstring``). |
| 39 |
|
| 40 |
* Remove unwanted print to stdout from ``_emit_no_member`` |
| 41 |
|
| 42 |
* Introduce a command-line option to specify pyreverse output directory |
| 43 |
|
| 44 |
Closes #4159 |
| 45 |
|
| 46 |
* Fix issue with Enums and ``class-attribute-naming-style=snake_case`` |
| 47 |
|
| 48 |
Closes #4149 |
| 49 |
|
| 50 |
* Add ``allowed-redefined-builtins`` option for fine tuning ``redefined-builtin`` check. |
| 51 |
|
| 52 |
Closes #3263 |
| 53 |
|
| 54 |
* Fix issue when executing with ``python -m pylint`` |
| 55 |
|
| 56 |
Closes #4161 |
| 57 |
|
| 58 |
* Exempt ``typing.TypedDict`` from ``too-few-public-methods`` check. |
| 59 |
|
| 60 |
Closes #4180 |
| 61 |
|
| 62 |
* Fix false-positive ``no-member`` for typed annotations without default value. |
| 63 |
|
| 64 |
Closes #3167 |
| 65 |
|
| 66 |
* Add ``--class-const-naming-style`` for Enum constants and class variables annotated |
| 67 |
with ``typing.ClassVar`` |
| 68 |
|
| 69 |
Closes #4181 |
| 70 |
|
| 71 |
* Fix astroid.Inference error for undefined-variables with ``len()``` |
| 72 |
|
| 73 |
Closes #4215 |
| 74 |
|
| 75 |
* Fix column index on FIXME warning messages |
| 76 |
|
| 77 |
Closes #4218 |
| 78 |
|
| 79 |
* Improve handling of assignment expressions, better edge case handling |
| 80 |
|
| 81 |
Closes #3763, #4238 |
| 82 |
|
| 83 |
* Improve check if class is subscriptable PEP585 |
| 84 |
|
| 85 |
* Fix documentation and filename handling of --import-graph |
| 86 |
|
| 87 |
* Fix false-positive for ``unused-import`` on class keyword arguments |
| 88 |
|
| 89 |
Closes #3202 |
| 90 |
|
| 91 |
* Fix regression with plugins on PYTHONPATH if latter is cwd |
| 92 |
|
| 93 |
Closes #4252 |
| 94 |
|
| 95 |
|
| 96 |
What's New in Pylint 2.7.2? |
| 97 |
--------------------------- |
| 98 |
Release date: 2021-02-28 |
| 99 |
|
| 100 |
* Fix False Positive on ``Enum.__members__.items()``, ``Enum.__members__.values``, and ``Enum.__members__.keys`` |
| 101 |
|
| 102 |
Closes #4123 |
| 103 |
|
| 104 |
* Properly strip dangerous sys.path entries (not just the first one) |
| 105 |
|
| 106 |
Closes #3636 |
| 107 |
|
| 108 |
* Workflow and packaging improvements |
| 109 |
|
| 110 |
|
| 111 |
What's New in Pylint 2.7.1? |
| 112 |
--------------------------- |
| 113 |
Release date: 2021-02-23 |
| 114 |
|
| 115 |
* Expose ``UnittestLinter`` in pylint.testutils |
| 116 |
|
| 117 |
* Don't check directories starting with '.' when using register_plugins |
| 118 |
|
| 119 |
Closes #4119 |
| 120 |
|
| 121 |
|
| 122 |
What's New in Pylint 2.7.0? |
| 123 |
--------------------------- |
| 124 |
Release date: 2021-02-21 |
| 125 |
|
| 126 |
* Introduce DeprecationMixin for reusable deprecation checks. |
| 127 |
|
| 128 |
Closes #4049 |
| 129 |
|
| 130 |
* Fix false positive for ``builtin-not-iterating`` when ``map`` receives iterable |
| 131 |
|
| 132 |
Closes #4078 |
| 133 |
|
| 134 |
* Python 3.6+ is now required. |
| 135 |
|
| 136 |
* Fix false positive for ``builtin-not-iterating`` when ``zip`` receives iterable |
| 137 |
|
| 138 |
* Add ``nan-comparison`` check for NaN comparisons |
| 139 |
|
| 140 |
* Bug fix for empty-comment message line number. |
| 141 |
|
| 142 |
Closes #4009 |
| 143 |
|
| 144 |
* Only emit ``bad-reversed-sequence`` on dictionaries if below py3.8 |
| 145 |
|
| 146 |
Closes #3940 |
| 147 |
|
| 148 |
* Handle class decorators applied to function. |
| 149 |
|
| 150 |
Closes #3882 |
| 151 |
|
| 152 |
* Add check for empty comments |
| 153 |
|
| 154 |
* Fix minor documentation issue in contribute.rst |
| 155 |
|
| 156 |
* Enums are now required to be named in UPPER_CASE by ``invalid-name``. |
| 157 |
|
| 158 |
Closes #3834 |
| 159 |
|
| 160 |
* Add missing checks for deprecated functions. |
| 161 |
|
| 162 |
* Postponed evaluation of annotations are now recognized by default if python version is above 3.10 |
| 163 |
|
| 164 |
Closes #3992 |
| 165 |
|
| 166 |
* Fix column metadata for anomalous backslash lints |
| 167 |
|
| 168 |
* Drop support for Python 3.5 |
| 169 |
|
| 170 |
* Add support for pep585 with postponed evaluation |
| 171 |
|
| 172 |
Closes #3320 |
| 173 |
|
| 174 |
* Check alternative union syntax - PEP 604 |
| 175 |
|
| 176 |
Closes #4065 |
| 177 |
|
| 178 |
* Fix multiple false positives with assignment expressions |
| 179 |
|
| 180 |
Closes #3347, #3953, #3865, #3275 |
| 181 |
|
| 182 |
* Fix TypedDict inherit-non-class false-positive Python 3.9+ |
| 183 |
|
| 184 |
Closes #1927 |
| 185 |
|
| 186 |
* Fix issue with nested PEP 585 syntax |
| 187 |
|
| 188 |
* Fix issue with nested PEP 604 syntax |
| 189 |
|
| 190 |
* Fix a crash in ``undefined-variable`` caused by chained attributes in metaclass |
| 191 |
|
| 192 |
Closes #3742 |
| 193 |
|
| 194 |
* Fix false positive for ``not-async-context-manager`` when ``contextlib.asynccontextmanager`` is used |
| 195 |
|
| 196 |
Closes #3862 |
| 197 |
|
| 198 |
* Fix linter multiprocessing pool shutdown (triggered warnings when ran in parallels with other pytest plugins) |
| 199 |
|
| 200 |
Closes #3779 |
| 201 |
|
| 202 |
* Fix a false-positive emission of ``no-self-use`` and ``unused-argument`` for methods |
| 203 |
of generic structural types (`Protocol[T]`) |
| 204 |
|
| 205 |
Closes #3885 |
| 206 |
|
| 207 |
* Fix bug that lead to duplicate messages when using ``--jobs 2`` or more. |
| 208 |
|
| 209 |
Closes #3584 |
| 210 |
|
| 211 |
* Adds option ``check-protected-access-in-special-methods`` in the ClassChecker to activate/deactivate |
| 212 |
``protected-access`` message emission for single underscore prefixed attribute in special methods. |
| 213 |
|
| 214 |
Closes #3120 |
| 215 |
|
| 216 |
* Fix vulnerable regular expressions in ``pyreverse`` |
| 217 |
|
| 218 |
Closes #3811 |
| 219 |
|
| 220 |
* ``inconsistent-return-statements`` message is now emitted if one of ``try/except`` statement |
| 221 |
is not returning explicitly while the other do. |
| 222 |
|
| 223 |
Closes #3468 |
| 224 |
|
| 225 |
* Fix ``useless-super-delegation`` false positive when default keyword argument is a dictionary. |
| 226 |
|
| 227 |
Closes #3773 |
| 228 |
|
| 229 |
* Fix a crash when a specified config file does not exist |
| 230 |
|
| 231 |
* Add support to ``ignored-argument-names`` in DocstringParameterChecker and adds ``useless-param-doc`` and ``useless-type-doc`` messages. |
| 232 |
|
| 233 |
Closes #3800 |
| 234 |
|
| 235 |
* Enforce docparams consistently when docstring is not present |
| 236 |
|
| 237 |
Closes #2738 |
| 238 |
|
| 239 |
* Fix ``duplicate-code`` false positive when lines only contain whitespace and non-alphanumeric characters (e.g. parentheses, bracket, comma, etc.) |
| 240 |
|
| 241 |
* Improve lint message for ``singleton-comparison`` with bools |
| 242 |
|
| 243 |
* Fix spell-checker crash on indented docstring lines that look like # comments |
| 244 |
|
| 245 |
Closes #3786 |
| 246 |
|
| 247 |
* Fix AttributeError in checkers/refactoring.py |
| 248 |
|
| 249 |
* Improve sphinx directives spelling filter |
| 250 |
|
| 251 |
* Fix a bug with postponed evaluation when using aliases for annotations. |
| 252 |
|
| 253 |
Closes #3798 |
| 254 |
|
| 255 |
* Fix minor documentation issues |
| 256 |
|
| 257 |
* Improve the performance of the line length check. |
| 258 |
|
| 259 |
* Removed incorrect deprecation of ``inspect.getfullargspec`` |
| 260 |
|
| 261 |
* Fix ``signature-differs`` false positive for functions with variadics |
| 262 |
|
| 263 |
Closes #3737 |
| 264 |
|
| 265 |
* Fix a crash in ``consider-using-enumerate`` when encountering ``range()`` without arguments |
| 266 |
|
| 267 |
Closes #3735 |
| 268 |
|
| 269 |
* ``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 positives for other classes, like pandas's DataFrame or numpy's Array. |
| 270 |
|
| 271 |
Closes #1879 |
| 272 |
|
| 273 |
* Fixes duplicate-errors not working with -j2+ |
| 274 |
|
| 275 |
Closes #3314 |
| 276 |
|
| 277 |
* ``generated-members`` now matches the qualified name of members |
| 278 |
|
| 279 |
Closes #2498 |
| 280 |
|
| 281 |
* Add check for bool function to ``len-as-condition`` |
| 282 |
|
| 283 |
* Add ``simplifiable-condition`` check for extraneous constants in conditionals using and/or. |
| 284 |
|
| 285 |
* Add ``condition-evals-to-constant`` check for conditionals using and/or that evaluate to a constant. |
| 286 |
|
| 287 |
Closes #3407 |
| 288 |
|
| 289 |
* Changed setup.py to work with `distlib <https://pypi.org/project/distlib>`_ |
| 290 |
|
| 291 |
Closes #3555 |
| 292 |
|
| 293 |
* New check: ``consider-using-generator`` |
| 294 |
|
| 295 |
This check warns when a comprehension is used inside an ``any`` or ``all`` function, |
| 296 |
since it is unnecessary and should be replaced by a generator instead. |
| 297 |
Using a generator would be less code and way faster. |
| 298 |
|
| 299 |
Closes #3165 |
| 300 |
|
| 301 |
* Add Github Actions to replace Travis and AppVeyor in the future |