| 1 |
Full changelog |
| 2 |
============== |
| 3 |
|
| 4 |
What's New in Pylint 2.11.1? |
| 5 |
---------------------------- |
| 6 |
Release date: 2021-09-16 |
| 7 |
|
| 8 |
* ``unspecified-encoding`` now checks the encoding of ``pathlib.Path()`` correctly |
| 9 |
|
| 10 |
Closes #5017 |
| 11 |
|
| 12 |
|
| 13 |
What's New in Pylint 2.11.0? |
| 14 |
---------------------------- |
| 15 |
Release date: 2021-09-16 |
| 16 |
|
| 17 |
* The python3 porting mode checker and its ``py3k`` option were removed. You can still find it in older pylint |
| 18 |
versions. |
| 19 |
|
| 20 |
* ``raising-bad-type`` is now properly emitted when raising a string |
| 21 |
|
| 22 |
* Added new extension ``SetMembershipChecker`` with ``use-set-for-membership`` check: |
| 23 |
Emitted when using an in-place defined ``list`` or ``tuple`` to do a membership test. ``sets`` are better optimized for that. |
| 24 |
|
| 25 |
Closes #4776 |
| 26 |
|
| 27 |
* Added ``py-version`` config key (if ``[MASTER]`` section). Used for version dependent checks. |
| 28 |
Will default to whatever Python version pylint is executed with. |
| 29 |
|
| 30 |
* ``CodeStyleChecker``: Added ``consider-using-assignment-expr``: Emitted when an assignment is directly followed by an if statement |
| 31 |
and both can be combined by using an assignment expression ``:=``. Requires Python 3.8 |
| 32 |
|
| 33 |
Closes #4862 |
| 34 |
|
| 35 |
* Added ``consider-using-f-string``: Emitted when .format() or '%' is being used to format a string. |
| 36 |
|
| 37 |
Closes #3592 |
| 38 |
|
| 39 |
* Fix false positive for ``consider-using-with`` if a context manager is assigned to a |
| 40 |
variable in different paths of control flow (e. g. if-else clause). |
| 41 |
|
| 42 |
Closes #4751 |
| 43 |
|
| 44 |
* https is now preferred in the documentation and http://pylint.pycqa.org correctly redirect to https://pylint.pycqa.org |
| 45 |
|
| 46 |
Closes #3802 |
| 47 |
|
| 48 |
* Fix false positive for ``function-redefined`` for simple type annotations |
| 49 |
|
| 50 |
Closes #4936 |
| 51 |
|
| 52 |
* Fix false positive for ``protected-access`` if a protected member is used in type hints of function definitions |
| 53 |
|
| 54 |
* Fix false positive ``dict-iter-missing-items`` for dictionaries only using tuples as keys |
| 55 |
|
| 56 |
Closes #3282 |
| 57 |
|
| 58 |
* The ``unspecified-encoding`` checker now also checks calls to ``pathlib.Path().read_text()`` |
| 59 |
and ``pathlib.Path().write_text()`` |
| 60 |
|
| 61 |
Closes #4945 |
| 62 |
|
| 63 |
* Fix false positive ``superfluous-parens`` for tuples created with inner tuples |
| 64 |
|
| 65 |
Closes #4907 |
| 66 |
|
| 67 |
* Fix false positive ``unused-private-member`` for accessing attributes in a class using ``cls`` |
| 68 |
|
| 69 |
Closes #4849 |
| 70 |
|
| 71 |
* Fix false positive ``unused-private-member`` for private staticmethods accessed in classmethods. |
| 72 |
|
| 73 |
Closes #4849 |
| 74 |
|
| 75 |
* Extended ``consider-using-in`` check to work for attribute access. |
| 76 |
|
| 77 |
* Setting ``min-similarity-lines`` to 0 now makes the similarty checker stop checking for duplicate code |
| 78 |
|
| 79 |
Closes #4901 |
| 80 |
|
| 81 |
* Fix a bug where pylint complained if the cache's parent directory does not exist |
| 82 |
|
| 83 |
Closes #4900 |
| 84 |
|
| 85 |
* The ``global-variable-not-assigned`` checker now catches global variables that are never reassigned in a |
| 86 |
local scope and catches (reassigned) functions |
| 87 |
|
| 88 |
Closes #1375 |
| 89 |
Closes #330 |
| 90 |
|
| 91 |
* Fix false positives for :ref:`invalid-all-format` that are lists or tuples at runtime |
| 92 |
|
| 93 |
Closes #4711 |
| 94 |
|
| 95 |
* Fix ``no-self-use`` and ``docparams extension`` for async functions and methods. |
| 96 |
|
| 97 |
* Add documentation for ``pyreverse`` and ``symilar`` |
| 98 |
|
| 99 |
Closes #4616 |
| 100 |
|
| 101 |
* Non symbolic messages with the wrong capitalisation now correctly trigger ``use-symbolic-message-instead`` |
| 102 |
|
| 103 |
Closes #5000 |
| 104 |
|
| 105 |
* The ``consider-iterating-dictionary`` checker now also considers membership checks |
| 106 |
|
| 107 |
Closes #4069 |
| 108 |
|
| 109 |
* The ``invalid-name`` message is now more detailed when using multiple naming style regexes. |