Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update pylint to 2.11.1 #104

Closed
wants to merge 1 commit into from
Closed

Conversation

pyup-bot
Copy link
Collaborator

This PR updates pylint from 2.9.6 to 2.11.1.

Changelog

2.11.1

============================
Release date: 2021-09-16

..
Put bug fixes that should not wait for a new minor version here

* ``unspecified-encoding`` now checks the encoding of ``pathlib.Path()`` correctly

Closes 5017

2.11.0

============================
Release date: 2021-09-16

* The python3 porting mode checker and it's ``py3k`` option were removed. You can still find it in older pylint
versions.

* ``raising-bad-type`` is now properly emitted when  raising a string

* Added new extension ``SetMembershipChecker`` with ``use-set-for-membership`` check:
Emitted when using an in-place defined ``list`` or ``tuple`` to do a membership test. ``sets`` are better optimized for that.

Closes 4776


* Added ``py-version`` config key (if ``[MASTER]`` section). Used for version dependant checks.
Will default to whatever Python version pylint is executed with.

* ``CodeStyleChecker``

* Added ``consider-using-assignment-expr``: Emitted when an assignment is directly followed by an if statement
 and both can be combined by using an assignment expression ``:=``. Requires Python 3.8

 Closes 4862

* Added ``consider-using-f-string``: Emitted when .format() or '%' is being used to format a string.

Closes 3592

* Fix false positive for ``consider-using-with`` if a context manager is assigned to a
variable in different paths of control flow (e. g. if-else clause).

Closes 4751

* https is now prefered in the documentation and http://pylint.pycqa.org correctly redirect to https://pylint.pycqa.org

Closes 3802

* Fix false positive for ``function-redefined`` for simple type annotations

Closes 4936

* Fix false positive for ``protected-access`` if a protected member is used in type hints of function definitions

* Fix false positive ``dict-iter-missing-items`` for dictionaries only using tuples as keys

Closes 3282

* The ``unspecified-encoding`` checker now also checks calls to ``pathlib.Path().read_text()``
and ``pathlib.Path().write_text()``

Closes 4945

* Fix false positive ``superfluous-parens`` for tuples created with inner tuples

Closes 4907

* Fix false positive ``unused-private-member`` for accessing attributes in a class using ``cls``

Closes 4849

* Fix false positive ``unused-private-member`` for private staticmethods accessed in classmethods.

Closes 4849

* Extended ``consider-using-in`` check to work for attribute access.

* Setting ``min-similarity-lines`` to 0 now makes the similarty checker stop checking for duplicate code

Closes 4901

* Fix a bug where pylint complained if the cache's parent directory does not exist

Closes 4900

* The ``global-variable-not-assigned`` checker now catches global variables that are never reassigned in a
local scope and catches (reassigned) functions

Closes 1375
Closes 330

* Fix false positives for invalid-all-format that are lists or tuples at runtime

Closes 4711

* Fix ``no-self-use`` and ``docparams extension`` for async functions and methods.

* Add documentation for ``pyreverse`` and ``symilar``

Closes 4616

* Non symbolic messages with the wrong capitalisation now correctly trigger ``use-symbolic-message-instead``

Closes 5000

* The ``consider-iterating-dictionary`` checker now also considers membership checks

Closes 4069

* The ``invalid-name`` message is now more detailed when using multiple naming style regexes.

2.10.2

============================
Release date: 2021-08-21

* We now use platformdirs instead of appdirs since the latter is not maintained.

Closes 4886

* Fix a crash in the checker raising ``shallow-copy-environ`` when failing to infer
on ``copy.copy``

Closes 4891

2.10.1

============================
Release date: 2021-08-20

* pylint does not crash when PYLINT_HOME does not exist.

Closes 4883

2.10.0

============================
Release date: 2021-08-20

* pyreverse: add option to produce colored output.

Closes 4488

* pyreverse: add output in PlantUML format.

Closes 4498

* ``consider-using-with`` is no longer triggered if a context manager is returned from a function.

Closes 4748

* pylint does not crash with a traceback anymore when a file is problematic. It
creates a template text file for opening an issue on the bug tracker instead.
The linting can go on for other non problematic files instead of being impossible.

* pyreverse: Show class has-a relationships inferred from the type-hint

Closes 4744

* Fixed a crash when importing beyond the top level package during ``import-error``
message creation

Closes 4775

* Added ``ignored-parents`` option to the design checker to ignore specific
classes from the ``too-many-ancestors`` check (R0901).

Partially closes 3057

* Added ``unspecified-encoding``: Emitted when open() is called without specifying an encoding

Closes 3826

* Improved the Similarity checker performance. Fix issue with ``--min-similarity-lines`` used with ``--jobs``.

Close 4120
Close 4118

* Don't emit ``no-member`` error if guarded behind if statement.

Ref 1162
Closes 1990
Closes 4168

* The default for ``PYLINTHOME`` is now the standard ``XDG_CACHE_HOME``, and pylint now uses ``appdirs``.

Closes 3878

* Added ``use-list-literal``: Emitted when ``list()`` is called with no arguments instead of using ``[]``

Closes 4365

* Added ``use-dict-literal``: Emitted when ``dict()`` is called with no arguments instead of using ``{}``

Closes 4365

* Added optional extension ``consider-ternary-expression``: Emitted whenever a variable is assigned in both branches of an if/else block.

Closes  4366

* Added optional extension ``while-used``: Emitted whenever a ``while`` loop is used.

Closes  4367

* Added ``forgotten-debug-statement``: Emitted when ``breakpoint``, ``pdb.set_trace`` or ``sys.breakpointhook`` calls are found

Closes 3692

* Fix false-positive of ``unused-private-member`` when using nested functions in a class

Closes 4673

* Fix crash for ``unused-private-member`` that occurred with nested attributes.

Closes 4755

* Fix a false positive for ``unused-private-member`` with class names

Closes 4681

* Fix false positives for ``superfluous-parens`` with walrus operator, ternary operator and inside list comprehension.

Closes 2818
Closes 3249
Closes 3608
Closes 4346

* Added ``format-string-without-interpolation`` checker: Emitted when formatting is applied to a string without any variables to be replaced

Closes 4042

* Refactor of ``--list-msgs`` & ``--list-msgs-enabled``: both options now show whether messages are emittable with the current interpreter.

Closes 4778

* Fix false negative for ``used-before-assignment`` when the variable is assigned
in an exception handler, but used outside of the handler.

Closes 626

* Added ``disable-next`` option: allows using ` pylint: disable-next=msgid` to disable a message for the following line

Closes 1682

* Added ``redundant-u-string-prefix`` checker: Emitted when the u prefix is added to a string

Closes 4102

* Fixed ``cell-var-from-loop`` checker: handle cell variables in comprehensions within functions,
and function default argument expressions. Also handle basic variable shadowing.

Closes 2846
Closes 3107

* Fixed bug with ``cell-var-from-loop`` checker: it no longer has false negatives when
both ``unused-variable`` and ``used-before-assignment`` are disabled.

* Fix false postive for ``invalid-all-format`` if the list or tuple builtin functions are used

Closes 4711

* Config files can now contain environment variables

Closes 3839

* Fix false-positive ``used-before-assignment`` with an assignment expression in a ``Return`` node

Closes 4828

* Added ``use-sequence-for-iteration``: Emitted when iterating over an in-place defined ``set``.

* ``CodeStyleChecker``

* Limit ``consider-using-tuple`` to be emitted only for in-place defined ``lists``.

* Emit ``consider-using-tuple`` even if list contains a ``starred`` expression.

* Ignore decorators lines by similarities checker when ignore signatures flag enabled

Closes 4839

* Allow ``true`` and ``false`` values in ``pylintrc`` for better compatibility with ``toml`` config.

* Class methods' signatures are ignored the same way as functions' with similarities "ignore-signatures" option enabled

Closes 4653

* Improve performance when inferring ``Call`` nodes, by utilizing caching.

* Improve error message for invalid-metaclass when the node is an Instance.
Links

@pyup-bot pyup-bot mentioned this pull request Sep 17, 2021
@aragilar
Copy link
Owner

bors r+

bors bot added a commit that referenced this pull request Oct 28, 2021
100: Update pytest to 6.2.5 r=aragilar a=pyup-bot


This PR updates [pytest](https://pypi.org/project/pytest) from **6.2.4** to **6.2.5**.



<details>
  <summary>Changelog</summary>
  
  
   ### 6.2.5
   ```
   =========================


Trivial/Internal Changes
------------------------

- `8494 &lt;https://github.com/pytest-dev/pytest/issues/8494&gt;`_: Python 3.10 is now supported.


- `9040 &lt;https://github.com/pytest-dev/pytest/issues/9040&gt;`_: Enable compatibility with ``pluggy 1.0`` or later.
   ```
   
  
</details>


 

<details>
  <summary>Links</summary>
  
  - PyPI: https://pypi.org/project/pytest
  - Changelog: https://pyup.io/changelogs/pytest/
  - Homepage: https://docs.pytest.org/en/latest/
</details>



102: Update sphinx_rtd_theme to 1.0.0 r=aragilar a=pyup-bot


This PR updates [sphinx_rtd_theme](https://pypi.org/project/sphinx_rtd_theme) from **0.5.2** to **1.0.0**.



*The bot wasn't able to find a changelog for this release. [Got an idea?](https://github.com/pyupio/changelogs/issues/new)*

<details>
  <summary>Links</summary>
  
  - PyPI: https://pypi.org/project/sphinx-rtd-theme
  - Repo: https://github.com/readthedocs/sphinx_rtd_theme
</details>



104: Update pylint to 2.11.1 r=aragilar a=pyup-bot


This PR updates [pylint](https://pypi.org/project/pylint) from **2.9.6** to **2.11.1**.



<details>
  <summary>Changelog</summary>
  
  
   ### 2.11.1
   ```
   ============================
Release date: 2021-09-16

..
  Put bug fixes that should not wait for a new minor version here

* ``unspecified-encoding`` now checks the encoding of ``pathlib.Path()`` correctly

  Closes 5017
   ```
   
  
  
   ### 2.11.0
   ```
   ============================
Release date: 2021-09-16

* The python3 porting mode checker and it&#39;s ``py3k`` option were removed. You can still find it in older pylint
  versions.

* ``raising-bad-type`` is now properly emitted when  raising a string

* Added new extension ``SetMembershipChecker`` with ``use-set-for-membership`` check:
  Emitted when using an in-place defined ``list`` or ``tuple`` to do a membership test. ``sets`` are better optimized for that.

  Closes 4776


* Added ``py-version`` config key (if ``[MASTER]`` section). Used for version dependant checks.
  Will default to whatever Python version pylint is executed with.

* ``CodeStyleChecker``

  * Added ``consider-using-assignment-expr``: Emitted when an assignment is directly followed by an if statement
    and both can be combined by using an assignment expression ``:=``. Requires Python 3.8

    Closes 4862

* Added ``consider-using-f-string``: Emitted when .format() or &#39;%&#39; is being used to format a string.

  Closes 3592

* Fix false positive for ``consider-using-with`` if a context manager is assigned to a
  variable in different paths of control flow (e. g. if-else clause).

  Closes 4751

* https is now prefered in the documentation and http://pylint.pycqa.org correctly redirect to https://pylint.pycqa.org

  Closes 3802

* Fix false positive for ``function-redefined`` for simple type annotations

  Closes 4936

* Fix false positive for ``protected-access`` if a protected member is used in type hints of function definitions

* Fix false positive ``dict-iter-missing-items`` for dictionaries only using tuples as keys

  Closes 3282

* The ``unspecified-encoding`` checker now also checks calls to ``pathlib.Path().read_text()``
  and ``pathlib.Path().write_text()``

  Closes 4945

* Fix false positive ``superfluous-parens`` for tuples created with inner tuples

  Closes 4907

* Fix false positive ``unused-private-member`` for accessing attributes in a class using ``cls``

  Closes 4849

* Fix false positive ``unused-private-member`` for private staticmethods accessed in classmethods.

  Closes 4849

* Extended ``consider-using-in`` check to work for attribute access.

* Setting ``min-similarity-lines`` to 0 now makes the similarty checker stop checking for duplicate code

  Closes 4901

* Fix a bug where pylint complained if the cache&#39;s parent directory does not exist

  Closes 4900

* The ``global-variable-not-assigned`` checker now catches global variables that are never reassigned in a
  local scope and catches (reassigned) functions

  Closes 1375
  Closes 330

* Fix false positives for invalid-all-format that are lists or tuples at runtime

  Closes 4711

* Fix ``no-self-use`` and ``docparams extension`` for async functions and methods.

* Add documentation for ``pyreverse`` and ``symilar``

  Closes 4616

* Non symbolic messages with the wrong capitalisation now correctly trigger ``use-symbolic-message-instead``

  Closes 5000

* The ``consider-iterating-dictionary`` checker now also considers membership checks

  Closes 4069

* The ``invalid-name`` message is now more detailed when using multiple naming style regexes.
   ```
   
  
  
   ### 2.10.2
   ```
   ============================
Release date: 2021-08-21

* We now use platformdirs instead of appdirs since the latter is not maintained.

  Closes 4886

* Fix a crash in the checker raising ``shallow-copy-environ`` when failing to infer
  on ``copy.copy``

  Closes 4891
   ```
   
  
  
   ### 2.10.1
   ```
   ============================
Release date: 2021-08-20

* pylint does not crash when PYLINT_HOME does not exist.

  Closes 4883
   ```
   
  
  
   ### 2.10.0
   ```
   ============================
Release date: 2021-08-20

* pyreverse: add option to produce colored output.

  Closes 4488

* pyreverse: add output in PlantUML format.

  Closes 4498

* ``consider-using-with`` is no longer triggered if a context manager is returned from a function.

  Closes 4748

* pylint does not crash with a traceback anymore when a file is problematic. It
  creates a template text file for opening an issue on the bug tracker instead.
  The linting can go on for other non problematic files instead of being impossible.

* pyreverse: Show class has-a relationships inferred from the type-hint

  Closes 4744

* Fixed a crash when importing beyond the top level package during ``import-error``
  message creation

  Closes 4775

* Added ``ignored-parents`` option to the design checker to ignore specific
  classes from the ``too-many-ancestors`` check (R0901).

  Partially closes 3057

* Added ``unspecified-encoding``: Emitted when open() is called without specifying an encoding

  Closes 3826

* Improved the Similarity checker performance. Fix issue with ``--min-similarity-lines`` used with ``--jobs``.

  Close 4120
  Close 4118

* Don&#39;t emit ``no-member`` error if guarded behind if statement.

  Ref 1162
  Closes 1990
  Closes 4168

* The default for ``PYLINTHOME`` is now the standard ``XDG_CACHE_HOME``, and pylint now uses ``appdirs``.

  Closes 3878

* Added ``use-list-literal``: Emitted when ``list()`` is called with no arguments instead of using ``[]``

  Closes 4365

* Added ``use-dict-literal``: Emitted when ``dict()`` is called with no arguments instead of using ``{}``

  Closes 4365

* Added optional extension ``consider-ternary-expression``: Emitted whenever a variable is assigned in both branches of an if/else block.

  Closes  4366

* Added optional extension ``while-used``: Emitted whenever a ``while`` loop is used.

  Closes  4367

* Added ``forgotten-debug-statement``: Emitted when ``breakpoint``, ``pdb.set_trace`` or ``sys.breakpointhook`` calls are found

  Closes 3692

* Fix false-positive of ``unused-private-member`` when using nested functions in a class

  Closes 4673

* Fix crash for ``unused-private-member`` that occurred with nested attributes.

  Closes 4755

* Fix a false positive for ``unused-private-member`` with class names

  Closes 4681

* Fix false positives for ``superfluous-parens`` with walrus operator, ternary operator and inside list comprehension.

  Closes 2818
  Closes 3249
  Closes 3608
  Closes 4346

* Added ``format-string-without-interpolation`` checker: Emitted when formatting is applied to a string without any variables to be replaced

  Closes 4042

* Refactor of ``--list-msgs`` &amp; ``--list-msgs-enabled``: both options now show whether messages are emittable with the current interpreter.

  Closes 4778

* Fix false negative for ``used-before-assignment`` when the variable is assigned
  in an exception handler, but used outside of the handler.

  Closes 626

* Added ``disable-next`` option: allows using ` pylint: disable-next=msgid` to disable a message for the following line

  Closes 1682

* Added ``redundant-u-string-prefix`` checker: Emitted when the u prefix is added to a string

  Closes 4102

* Fixed ``cell-var-from-loop`` checker: handle cell variables in comprehensions within functions,
  and function default argument expressions. Also handle basic variable shadowing.

  Closes 2846
  Closes 3107

* Fixed bug with ``cell-var-from-loop`` checker: it no longer has false negatives when
  both ``unused-variable`` and ``used-before-assignment`` are disabled.

* Fix false postive for ``invalid-all-format`` if the list or tuple builtin functions are used

  Closes 4711

* Config files can now contain environment variables

  Closes 3839

* Fix false-positive ``used-before-assignment`` with an assignment expression in a ``Return`` node

  Closes 4828

* Added ``use-sequence-for-iteration``: Emitted when iterating over an in-place defined ``set``.

* ``CodeStyleChecker``

  * Limit ``consider-using-tuple`` to be emitted only for in-place defined ``lists``.

  * Emit ``consider-using-tuple`` even if list contains a ``starred`` expression.

* Ignore decorators lines by similarities checker when ignore signatures flag enabled

  Closes 4839

* Allow ``true`` and ``false`` values in ``pylintrc`` for better compatibility with ``toml`` config.

* Class methods&#39; signatures are ignored the same way as functions&#39; with similarities &quot;ignore-signatures&quot; option enabled

  Closes 4653

* Improve performance when inferring ``Call`` nodes, by utilizing caching.

* Improve error message for invalid-metaclass when the node is an Instance.
   ```
   
  
</details>


 

<details>
  <summary>Links</summary>
  
  - PyPI: https://pypi.org/project/pylint
  - Changelog: https://pyup.io/changelogs/pylint/
</details>



Co-authored-by: pyup-bot <github-bot@pyup.io>
@pyup-bot
Copy link
Collaborator Author

Closing this in favor of #112

@pyup-bot pyup-bot closed this Nov 25, 2021
@aragilar aragilar deleted the pyup-update-pylint-2.9.6-to-2.11.1 branch November 25, 2021 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants