diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2023-04-03 14:16:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-03 14:16:52 +0200 |
commit | de0147e92586be56cdee9711dd3d3a7a7e1c9ef2 (patch) | |
tree | 89175cb99316b888cc0130db7bfc2176bcd9c457 | |
parent | 84c197d1674eb2aa1642e84a2580987190971ed1 (diff) | |
download | pylint-git-de0147e92586be56cdee9711dd3d3a7a7e1c9ef2.tar.gz |
Bump pylint to 2.17.2, update changelog (#8533)v2.17.2
-rw-r--r-- | doc/whatsnew/2/2.17/index.rst | 36 | ||||
-rw-r--r-- | doc/whatsnew/fragments/8485.false_positive | 5 | ||||
-rw-r--r-- | doc/whatsnew/fragments/8487.false_positive | 3 | ||||
-rw-r--r-- | doc/whatsnew/fragments/8496.false_positive | 5 | ||||
-rw-r--r-- | doc/whatsnew/fragments/8504.bugfix | 3 | ||||
-rw-r--r-- | pylint/__pkginfo__.py | 2 | ||||
-rw-r--r-- | tbump.toml | 2 | ||||
-rw-r--r-- | towncrier.toml | 2 |
8 files changed, 39 insertions, 19 deletions
diff --git a/doc/whatsnew/2/2.17/index.rst b/doc/whatsnew/2/2.17/index.rst index b3f4b6175..cd06bbc2e 100644 --- a/doc/whatsnew/2/2.17/index.rst +++ b/doc/whatsnew/2/2.17/index.rst @@ -29,6 +29,42 @@ so we find problems before the actual release. .. towncrier release notes start +What's new in Pylint 2.17.2? +---------------------------- +Release date: 2023-04-03 + + +False Positives Fixed +--------------------- + +- ``invalid-name`` now allows for integers in ``typealias`` names: + - now valid: ``Good2Name``, ``GoodName2``. + - still invalid: ``_1BadName``. + + Closes #8485 (`#8485 <https://github.com/PyCQA/pylint/issues/8485>`_) + +- No longer consider ``Union`` as type annotation as type alias for naming + checks. + + Closes #8487 (`#8487 <https://github.com/PyCQA/pylint/issues/8487>`_) + +- ``unnecessary-lambda`` no longer warns on lambdas which use its parameters in + their body (other than the final arguments), e.g. + ``lambda foo: (bar if foo else baz)(foo)``. + + Closes #8496 (`#8496 <https://github.com/PyCQA/pylint/issues/8496>`_) + + + +Other Bug Fixes +--------------- + +- Fix a crash in pyreverse when "/" characters are used in the output filename + e.g pyreverse -o png -p name/ path/to/project. + + Closes #8504 (`#8504 <https://github.com/PyCQA/pylint/issues/8504>`_) + + What's new in Pylint 2.17.1? ---------------------------- Release date: 2023-03-22 diff --git a/doc/whatsnew/fragments/8485.false_positive b/doc/whatsnew/fragments/8485.false_positive deleted file mode 100644 index 8eac08b95..000000000 --- a/doc/whatsnew/fragments/8485.false_positive +++ /dev/null @@ -1,5 +0,0 @@ -``invalid-name`` now allows for integers in ``typealias`` names: -- now valid: ``Good2Name``, ``GoodName2``. -- still invalid: ``_1BadName``. - -Closes #8485 diff --git a/doc/whatsnew/fragments/8487.false_positive b/doc/whatsnew/fragments/8487.false_positive deleted file mode 100644 index 9ff5e3482..000000000 --- a/doc/whatsnew/fragments/8487.false_positive +++ /dev/null @@ -1,3 +0,0 @@ -No longer consider ``Union`` as type annotation as type alias for naming checks. - -Closes #8487 diff --git a/doc/whatsnew/fragments/8496.false_positive b/doc/whatsnew/fragments/8496.false_positive deleted file mode 100644 index 3ea0fca6c..000000000 --- a/doc/whatsnew/fragments/8496.false_positive +++ /dev/null @@ -1,5 +0,0 @@ -``unnecessary-lambda`` no longer warns on lambdas which use its parameters in -their body (other than the final arguments), e.g. -``lambda foo: (bar if foo else baz)(foo)``. - -Closes #8496 diff --git a/doc/whatsnew/fragments/8504.bugfix b/doc/whatsnew/fragments/8504.bugfix deleted file mode 100644 index 2b54ac7b6..000000000 --- a/doc/whatsnew/fragments/8504.bugfix +++ /dev/null @@ -1,3 +0,0 @@ -Fix a crash in pyreverse when "/" characters are used in the output filename e.g pyreverse -o png -p name/ path/to/project. - -Closes #8504 diff --git a/pylint/__pkginfo__.py b/pylint/__pkginfo__.py index 897c373b9..beebd2492 100644 --- a/pylint/__pkginfo__.py +++ b/pylint/__pkginfo__.py @@ -9,7 +9,7 @@ It's updated via tbump, do not modify. from __future__ import annotations -__version__ = "2.17.1" +__version__ = "2.17.2" def get_numversion_from_version(v: str) -> tuple[int, int, int]: diff --git a/tbump.toml b/tbump.toml index 063a79c0e..1f6594b2e 100644 --- a/tbump.toml +++ b/tbump.toml @@ -1,7 +1,7 @@ github_url = "https://github.com/PyCQA/pylint" [version] -current = "2.17.1" +current = "2.17.2" regex = ''' ^(?P<major>0|[1-9]\d*) \. diff --git a/towncrier.toml b/towncrier.toml index b8c00a8ff..35ce27243 100644 --- a/towncrier.toml +++ b/towncrier.toml @@ -1,5 +1,5 @@ [tool.towncrier] -version = "2.17.1" +version = "2.17.2" directory = "doc/whatsnew/fragments" filename = "doc/whatsnew/2/2.17/index.rst" template = "doc/whatsnew/fragments/_template.rst" |