From 6661912105fcfbae8de210eaf9e44dfb60cc9caa Mon Sep 17 00:00:00 2001 From: Pierre Sassoulas Date: Thu, 25 Aug 2022 13:20:51 +0200 Subject: [PATCH] Bump pylint to 2.15.0, update changelog --- CONTRIBUTORS.txt | 3 + doc/whatsnew/2/2.15/index.rst | 160 +++++++++++++++++++++ doc/whatsnew/fragments/1667.bugfix | 3 - doc/whatsnew/fragments/3694.other | 3 - doc/whatsnew/fragments/3860.bugfix | 4 - doc/whatsnew/fragments/3975.false_positive | 3 - doc/whatsnew/fragments/4624.false_negative | 3 - doc/whatsnew/fragments/4951.false_positive | 4 - doc/whatsnew/fragments/5237.other | 4 - doc/whatsnew/fragments/5653.false_negative | 4 - doc/whatsnew/fragments/5767.false_positive | 3 - doc/whatsnew/fragments/5776.false_positive | 3 - doc/whatsnew/fragments/5832.false_positive | 3 - doc/whatsnew/fragments/6643.false_negative | 3 - doc/whatsnew/fragments/6648.false_negative | 4 - doc/whatsnew/fragments/6780.new_check | 4 - doc/whatsnew/fragments/6812.false_negative | 3 - doc/whatsnew/fragments/6883.false_negative | 4 - doc/whatsnew/fragments/6891.internal | 5 - doc/whatsnew/fragments/6896.false_positive | 3 - doc/whatsnew/fragments/6905.internal | 3 - doc/whatsnew/fragments/6909.false_negative | 4 - doc/whatsnew/fragments/6936.false_positive | 3 - doc/whatsnew/fragments/6953.other | 3 - doc/whatsnew/fragments/6974.internal | 5 - doc/whatsnew/fragments/6974.other | 3 - doc/whatsnew/fragments/7034.false_negative | 5 - doc/whatsnew/fragments/7109.bugfix | 3 - doc/whatsnew/fragments/7153.other | 3 - doc/whatsnew/fragments/7202.bugfix | 3 - doc/whatsnew/fragments/7222.bugfix | 3 - doc/whatsnew/fragments/7231.bugfix | 3 - doc/whatsnew/fragments/7246.bugfix | 3 - doc/whatsnew/fragments/7267.internal | 5 - doc/whatsnew/fragments/7270.false_positive | 3 - doc/whatsnew/fragments/7280.other | 3 - doc/whatsnew/fragments/7300.false_positive | 3 - doc/whatsnew/fragments/7311.false_positive | 3 - doc/whatsnew/fragments/7319.bugfix | 4 - pylint/__pkginfo__.py | 2 +- script/.contributors_aliases.json | 2 +- tbump.toml | 2 +- 42 files changed, 166 insertions(+), 131 deletions(-) delete mode 100644 doc/whatsnew/fragments/1667.bugfix delete mode 100644 doc/whatsnew/fragments/3694.other delete mode 100644 doc/whatsnew/fragments/3860.bugfix delete mode 100644 doc/whatsnew/fragments/3975.false_positive delete mode 100644 doc/whatsnew/fragments/4624.false_negative delete mode 100644 doc/whatsnew/fragments/4951.false_positive delete mode 100644 doc/whatsnew/fragments/5237.other delete mode 100644 doc/whatsnew/fragments/5653.false_negative delete mode 100644 doc/whatsnew/fragments/5767.false_positive delete mode 100644 doc/whatsnew/fragments/5776.false_positive delete mode 100644 doc/whatsnew/fragments/5832.false_positive delete mode 100644 doc/whatsnew/fragments/6643.false_negative delete mode 100644 doc/whatsnew/fragments/6648.false_negative delete mode 100644 doc/whatsnew/fragments/6780.new_check delete mode 100644 doc/whatsnew/fragments/6812.false_negative delete mode 100644 doc/whatsnew/fragments/6883.false_negative delete mode 100644 doc/whatsnew/fragments/6891.internal delete mode 100644 doc/whatsnew/fragments/6896.false_positive delete mode 100644 doc/whatsnew/fragments/6905.internal delete mode 100644 doc/whatsnew/fragments/6909.false_negative delete mode 100644 doc/whatsnew/fragments/6936.false_positive delete mode 100644 doc/whatsnew/fragments/6953.other delete mode 100644 doc/whatsnew/fragments/6974.internal delete mode 100644 doc/whatsnew/fragments/6974.other delete mode 100644 doc/whatsnew/fragments/7034.false_negative delete mode 100644 doc/whatsnew/fragments/7109.bugfix delete mode 100644 doc/whatsnew/fragments/7153.other delete mode 100644 doc/whatsnew/fragments/7202.bugfix delete mode 100644 doc/whatsnew/fragments/7222.bugfix delete mode 100644 doc/whatsnew/fragments/7231.bugfix delete mode 100644 doc/whatsnew/fragments/7246.bugfix delete mode 100644 doc/whatsnew/fragments/7267.internal delete mode 100644 doc/whatsnew/fragments/7270.false_positive delete mode 100644 doc/whatsnew/fragments/7280.other delete mode 100644 doc/whatsnew/fragments/7300.false_positive delete mode 100644 doc/whatsnew/fragments/7311.false_positive delete mode 100644 doc/whatsnew/fragments/7319.bugfix diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt index 5f987d3cde1..07578c592c0 100644 --- a/CONTRIBUTORS.txt +++ b/CONTRIBUTORS.txt @@ -118,6 +118,7 @@ contributors: - Julien Palard - David Liu (david-yz-liu) - Dan Goldsmith : support for msg-template in HTML reporter. +- Buck Evan - Mariatta Wijaya * Added new check `logging-fstring-interpolation` * Documentation typo fixes @@ -434,6 +435,7 @@ contributors: - Kevin Phillips - Kevin Jing Qiu - Kayran Schmidt <59456929+yumasheta@users.noreply.github.com> +- Karthik Nadig - Jürgen Hermann - Jérome Perrin - Josselin Feist @@ -484,6 +486,7 @@ contributors: - Dr. Nick - Don Jayamanne - Dmytro Kyrychuk +- DetachHead <57028336+DetachHead@users.noreply.github.com> - Denis Laxalde - David Cain - Danny Hermes diff --git a/doc/whatsnew/2/2.15/index.rst b/doc/whatsnew/2/2.15/index.rst index fe4004bac68..78452aefbf6 100644 --- a/doc/whatsnew/2/2.15/index.rst +++ b/doc/whatsnew/2/2.15/index.rst @@ -18,3 +18,163 @@ We improved ``pylint``'s handling of namespace packages. More packages should be linted without resorting to using the ``--recursive=y`` option. .. towncrier release notes start + +What's new in Pylint 2.15.0? +---------------------------- +Release date: 2022-08-25 + + +New Checks +---------- + +- Added new checker ``missing-timeout`` to warn of default timeout values that could cause + a program to be hanging indefinitely. + + Refs #6780 (`#6780 `_) + + +False Positives Fixed +--------------------- + +- Don't report ``super-init-not-called`` for abstract ``__init__`` methods. + + Closes #3975 (`#3975 `_) +- Don't report ``unsupported-binary-operation`` on Python <= 3.9 when using the ``|`` operator + with types, if one has a metaclass that overloads ``__or__`` or ``__ror__`` as appropriate. + + Closes #4951 (`#4951 `_) +- Don't report ``no-value-for-parameter`` for dataclasses fields annotated with ``KW_ONLY``. + + Closes #5767 (`#5767 `_) +- Fixed inference of ``Enums`` when they are imported under an alias. + + Closes #5776 (`#5776 `_) +- Prevent false positives when accessing ``PurePath.parents`` by index (not slice) on Python 3.10+. + + Closes #5832 (`#5832 `_) +- ``unnecessary-list-index-lookup`` is now more conservative to avoid potential false positives. + + Closes #6896 (`#6896 `_) +- Fix double emitting ``trailing-whitespace`` for multi-line docstrings. + + Closes #6936 (`#6936 `_) +- ``import-error`` now correctly checks for ``contextlib.suppress`` guards on import statements. + + Closes #7270 (`#7270 `_) +- Fix false positive for `no-self-argument`/`no-method-argument` when a staticmethod is applied to a function but uses a different name. + + Closes #7300 (`#7300 `_) +- Fix `undefined-loop-variable` with `break` and `continue` statements in `else` blocks. + + Refs #7311 (`#7311 `_) + + +False Negatives Fixed +--------------------- + +- Emit ``used-before-assignment`` when relying on a name that is reimported later in a function. + + Closes #4624 (`#4624 `_) +- Emit ``used-before-assignment`` for self-referencing named expressions (``:=``) lacking + prior assignments. + + Closes #5653 (`#5653 `_) +- Emit ``used-before-assignment`` for self-referencing assignments under if conditions. + + Closes #6643 (`#6643 `_) +- Emit ``modified-iterating-list`` and analogous messages for dicts and sets when iterating + literals, or when using the ``del`` keyword. + + Closes #6648 (`#6648 `_) +- Emit ``used-before-assignment`` when calling nested functions before assignment. + + Closes #6812 (`#6812 `_) +- Emit ``nonlocal-without-binding`` when a nonlocal name has been assigned at a later point in the same scope. + + Closes #6883 (`#6883 `_) +- Emit ``using-constant-test`` when testing the truth value of a variable or call result + holding a generator. + + Closes #6909 (`#6909 `_) +- Rename ``unhashable-dict-key`` to ``unhashable-member`` and emit when creating sets and dicts, + not just when accessing dicts. + + Closes #7034, Closes #7055 (`#7034 `_) + + +Other Bug Fixes +--------------- + +- Fix a failure to lint packages with ``__init__.py`` contained in directories lacking ``__init__.py``. + + Closes #1667 (`#1667 `_) +- Fixed a syntax-error crash that was not handled properly when the declared encoding of a file + was ``utf-9``. + + Closes #3860 (`#3860 `_) +- Fix a crash in the ``not-callable`` check when there is ambiguity whether an instance is being incorrectly provided to ``__new__()``. + + Closes #7109 (`#7109 `_) +- Fix crash when regex option raises a `re.error` exception. + + Closes #7202 (`#7202 `_) +- Fix `undefined-loop-variable` from walrus in comprehension test. + + Closes #7222 (`#7222 `_) +- Check for `` before removing first item from `sys.path` in `modify_sys_path`. + + Closes #7231 (`#7231 `_) +- Fix sys.path pollution in parallel mode. + + Closes #7246 (`#7246 `_) +- Prevent `useless-parent-delegation` for delegating to a builtin + written in C (e.g. `Exception.__init__`) with non-self arguments. + + Closes #7319 (`#7319 `_) + + +Other Changes +------------- + +- ``bad-exception-context`` has been renamed to ``bad-exception-cause`` as it is about the cause and not the context. + + Closes #3694 (`#3694 `_) +- The message for ``literal-comparison`` is now more explicit about the problem and the + solution. + + Closes #5237 (`#5237 `_) +- ``useless-super-delegation`` has been renamed to ``useless-parent-delegation`` in order to be more generic. + + Closes #6953 (`#6953 `_) +- Pylint now uses ``towncrier`` for changelog generation. + + Refs #6974 (`#6974 `_) +- Update ``astroid`` to 2.12. + + Refs #7153 (`#7153 `_) +- Fix crash when a type-annotated `__slots__` with no value is declared. + + Closes #7280 (`#7280 `_) + + +Internal Changes +---------------- + +- Fixed an issue where it was impossible to update functional tests output when the existing + output was impossible to parse. Instead of raising an error we raise a warning message and + let the functional test fail with a default value. + + Refs #6891 (`#6891 `_) +- ``pylint.testutils.primer`` is now a private API. + + Refs #6905 (`#6905 `_) +- We changed the way we handle the changelog internally by using towncrier. + If you're a contributor you won't have to fix merge conflicts in the + changelog anymore. + + Closes #6974 (`#6974 `_) +- Pylint is now using Scorecards to implement security recommendations from the + `OpenSSF `_. This is done in order to secure our supply chains using a combination + of automated tooling and best practices, most of which were already implemented before. + + Refs #7267 (`#7267 `_) diff --git a/doc/whatsnew/fragments/1667.bugfix b/doc/whatsnew/fragments/1667.bugfix deleted file mode 100644 index f4e3eeec5c7..00000000000 --- a/doc/whatsnew/fragments/1667.bugfix +++ /dev/null @@ -1,3 +0,0 @@ -Fix a failure to lint packages with ``__init__.py`` contained in directories lacking ``__init__.py``. - -Closes #1667 diff --git a/doc/whatsnew/fragments/3694.other b/doc/whatsnew/fragments/3694.other deleted file mode 100644 index 8efd806acfb..00000000000 --- a/doc/whatsnew/fragments/3694.other +++ /dev/null @@ -1,3 +0,0 @@ -``bad-exception-context`` has been renamed to ``bad-exception-cause`` as it is about the cause and not the context. - -Closes #3694 diff --git a/doc/whatsnew/fragments/3860.bugfix b/doc/whatsnew/fragments/3860.bugfix deleted file mode 100644 index 8dcbe087b23..00000000000 --- a/doc/whatsnew/fragments/3860.bugfix +++ /dev/null @@ -1,4 +0,0 @@ -Fixed a syntax-error crash that was not handled properly when the declared encoding of a file -was ``utf-9``. - -Closes #3860 diff --git a/doc/whatsnew/fragments/3975.false_positive b/doc/whatsnew/fragments/3975.false_positive deleted file mode 100644 index f6c7f1f9d2f..00000000000 --- a/doc/whatsnew/fragments/3975.false_positive +++ /dev/null @@ -1,3 +0,0 @@ -Don't report ``super-init-not-called`` for abstract ``__init__`` methods. - -Closes #3975 diff --git a/doc/whatsnew/fragments/4624.false_negative b/doc/whatsnew/fragments/4624.false_negative deleted file mode 100644 index ae490216e81..00000000000 --- a/doc/whatsnew/fragments/4624.false_negative +++ /dev/null @@ -1,3 +0,0 @@ -Emit ``used-before-assignment`` when relying on a name that is reimported later in a function. - -Closes #4624 diff --git a/doc/whatsnew/fragments/4951.false_positive b/doc/whatsnew/fragments/4951.false_positive deleted file mode 100644 index acf104b3697..00000000000 --- a/doc/whatsnew/fragments/4951.false_positive +++ /dev/null @@ -1,4 +0,0 @@ -Don't report ``unsupported-binary-operation`` on Python <= 3.9 when using the ``|`` operator -with types, if one has a metaclass that overloads ``__or__`` or ``__ror__`` as appropriate. - -Closes #4951 diff --git a/doc/whatsnew/fragments/5237.other b/doc/whatsnew/fragments/5237.other deleted file mode 100644 index 2b3fadfc16a..00000000000 --- a/doc/whatsnew/fragments/5237.other +++ /dev/null @@ -1,4 +0,0 @@ -The message for ``literal-comparison`` is now more explicit about the problem and the -solution. - -Closes #5237 diff --git a/doc/whatsnew/fragments/5653.false_negative b/doc/whatsnew/fragments/5653.false_negative deleted file mode 100644 index b017c9e07e7..00000000000 --- a/doc/whatsnew/fragments/5653.false_negative +++ /dev/null @@ -1,4 +0,0 @@ -Emit ``used-before-assignment`` for self-referencing named expressions (``:=``) lacking -prior assignments. - -Closes #5653 diff --git a/doc/whatsnew/fragments/5767.false_positive b/doc/whatsnew/fragments/5767.false_positive deleted file mode 100644 index 331e8152836..00000000000 --- a/doc/whatsnew/fragments/5767.false_positive +++ /dev/null @@ -1,3 +0,0 @@ -Don't report ``no-value-for-parameter`` for dataclasses fields annotated with ``KW_ONLY``. - -Closes #5767 diff --git a/doc/whatsnew/fragments/5776.false_positive b/doc/whatsnew/fragments/5776.false_positive deleted file mode 100644 index cdc5a58af74..00000000000 --- a/doc/whatsnew/fragments/5776.false_positive +++ /dev/null @@ -1,3 +0,0 @@ -Fixed inference of ``Enums`` when they are imported under an alias. - -Closes #5776 diff --git a/doc/whatsnew/fragments/5832.false_positive b/doc/whatsnew/fragments/5832.false_positive deleted file mode 100644 index 40ae0fd1a25..00000000000 --- a/doc/whatsnew/fragments/5832.false_positive +++ /dev/null @@ -1,3 +0,0 @@ -Prevent false positives when accessing ``PurePath.parents`` by index (not slice) on Python 3.10+. - -Closes #5832 diff --git a/doc/whatsnew/fragments/6643.false_negative b/doc/whatsnew/fragments/6643.false_negative deleted file mode 100644 index 8a7c483def1..00000000000 --- a/doc/whatsnew/fragments/6643.false_negative +++ /dev/null @@ -1,3 +0,0 @@ -Emit ``used-before-assignment`` for self-referencing assignments under if conditions. - -Closes #6643 diff --git a/doc/whatsnew/fragments/6648.false_negative b/doc/whatsnew/fragments/6648.false_negative deleted file mode 100644 index 4ce4fd44497..00000000000 --- a/doc/whatsnew/fragments/6648.false_negative +++ /dev/null @@ -1,4 +0,0 @@ -Emit ``modified-iterating-list`` and analogous messages for dicts and sets when iterating -literals, or when using the ``del`` keyword. - -Closes #6648 diff --git a/doc/whatsnew/fragments/6780.new_check b/doc/whatsnew/fragments/6780.new_check deleted file mode 100644 index c822ea735e3..00000000000 --- a/doc/whatsnew/fragments/6780.new_check +++ /dev/null @@ -1,4 +0,0 @@ -Added new checker ``missing-timeout`` to warn of default timeout values that could cause -a program to be hanging indefinitely. - -Refs #6780 diff --git a/doc/whatsnew/fragments/6812.false_negative b/doc/whatsnew/fragments/6812.false_negative deleted file mode 100644 index 5a7cc8c8f87..00000000000 --- a/doc/whatsnew/fragments/6812.false_negative +++ /dev/null @@ -1,3 +0,0 @@ -Emit ``used-before-assignment`` when calling nested functions before assignment. - -Closes #6812 diff --git a/doc/whatsnew/fragments/6883.false_negative b/doc/whatsnew/fragments/6883.false_negative deleted file mode 100644 index 965551466ca..00000000000 --- a/doc/whatsnew/fragments/6883.false_negative +++ /dev/null @@ -1,4 +0,0 @@ - -Emit ``nonlocal-without-binding`` when a nonlocal name has been assigned at a later point in the same scope. - -Closes #6883 diff --git a/doc/whatsnew/fragments/6891.internal b/doc/whatsnew/fragments/6891.internal deleted file mode 100644 index 03e4179d1d2..00000000000 --- a/doc/whatsnew/fragments/6891.internal +++ /dev/null @@ -1,5 +0,0 @@ -Fixed an issue where it was impossible to update functional tests output when the existing -output was impossible to parse. Instead of raising an error we raise a warning message and -let the functional test fail with a default value. - -Refs #6891 diff --git a/doc/whatsnew/fragments/6896.false_positive b/doc/whatsnew/fragments/6896.false_positive deleted file mode 100644 index c15a8451f2a..00000000000 --- a/doc/whatsnew/fragments/6896.false_positive +++ /dev/null @@ -1,3 +0,0 @@ -``unnecessary-list-index-lookup`` is now more conservative to avoid potential false positives. - -Closes #6896 diff --git a/doc/whatsnew/fragments/6905.internal b/doc/whatsnew/fragments/6905.internal deleted file mode 100644 index babca522b71..00000000000 --- a/doc/whatsnew/fragments/6905.internal +++ /dev/null @@ -1,3 +0,0 @@ -``pylint.testutils.primer`` is now a private API. - -Refs #6905 diff --git a/doc/whatsnew/fragments/6909.false_negative b/doc/whatsnew/fragments/6909.false_negative deleted file mode 100644 index 7618d26492d..00000000000 --- a/doc/whatsnew/fragments/6909.false_negative +++ /dev/null @@ -1,4 +0,0 @@ -Emit ``using-constant-test`` when testing the truth value of a variable or call result -holding a generator. - -Closes #6909 diff --git a/doc/whatsnew/fragments/6936.false_positive b/doc/whatsnew/fragments/6936.false_positive deleted file mode 100644 index 6e7a015eeb0..00000000000 --- a/doc/whatsnew/fragments/6936.false_positive +++ /dev/null @@ -1,3 +0,0 @@ -Fix double emitting ``trailing-whitespace`` for multi-line docstrings. - -Closes #6936 diff --git a/doc/whatsnew/fragments/6953.other b/doc/whatsnew/fragments/6953.other deleted file mode 100644 index d1894001265..00000000000 --- a/doc/whatsnew/fragments/6953.other +++ /dev/null @@ -1,3 +0,0 @@ -``useless-super-delegation`` has been renamed to ``useless-parent-delegation`` in order to be more generic. - -Closes #6953 diff --git a/doc/whatsnew/fragments/6974.internal b/doc/whatsnew/fragments/6974.internal deleted file mode 100644 index d34a3f0afba..00000000000 --- a/doc/whatsnew/fragments/6974.internal +++ /dev/null @@ -1,5 +0,0 @@ -We changed the way we handle the changelog internally by using towncrier. -If you're a contributor you won't have to fix merge conflicts in the -changelog anymore. - -Closes #6974 diff --git a/doc/whatsnew/fragments/6974.other b/doc/whatsnew/fragments/6974.other deleted file mode 100644 index 5778769485d..00000000000 --- a/doc/whatsnew/fragments/6974.other +++ /dev/null @@ -1,3 +0,0 @@ -Pylint now uses ``towncrier`` for changelog generation. - -Refs #6974 diff --git a/doc/whatsnew/fragments/7034.false_negative b/doc/whatsnew/fragments/7034.false_negative deleted file mode 100644 index 7a10438de74..00000000000 --- a/doc/whatsnew/fragments/7034.false_negative +++ /dev/null @@ -1,5 +0,0 @@ - -Rename ``unhashable-dict-key`` to ``unhashable-member`` and emit when creating sets and dicts, -not just when accessing dicts. - -Closes #7034, Closes #7055 diff --git a/doc/whatsnew/fragments/7109.bugfix b/doc/whatsnew/fragments/7109.bugfix deleted file mode 100644 index 3468839bde7..00000000000 --- a/doc/whatsnew/fragments/7109.bugfix +++ /dev/null @@ -1,3 +0,0 @@ -Fix a crash in the ``not-callable`` check when there is ambiguity whether an instance is being incorrectly provided to ``__new__()``. - -Closes #7109 diff --git a/doc/whatsnew/fragments/7153.other b/doc/whatsnew/fragments/7153.other deleted file mode 100644 index 9185be078da..00000000000 --- a/doc/whatsnew/fragments/7153.other +++ /dev/null @@ -1,3 +0,0 @@ -Update ``astroid`` to 2.12. - -Refs #7153 diff --git a/doc/whatsnew/fragments/7202.bugfix b/doc/whatsnew/fragments/7202.bugfix deleted file mode 100644 index 4c29748ac99..00000000000 --- a/doc/whatsnew/fragments/7202.bugfix +++ /dev/null @@ -1,3 +0,0 @@ -Fix crash when regex option raises a `re.error` exception. - -Closes #7202 diff --git a/doc/whatsnew/fragments/7222.bugfix b/doc/whatsnew/fragments/7222.bugfix deleted file mode 100644 index 0d18e73da4a..00000000000 --- a/doc/whatsnew/fragments/7222.bugfix +++ /dev/null @@ -1,3 +0,0 @@ -Fix `undefined-loop-variable` from walrus in comprehension test. - -Closes #7222 diff --git a/doc/whatsnew/fragments/7231.bugfix b/doc/whatsnew/fragments/7231.bugfix deleted file mode 100644 index 5c8837e4230..00000000000 --- a/doc/whatsnew/fragments/7231.bugfix +++ /dev/null @@ -1,3 +0,0 @@ -Check for `` before removing first item from `sys.path` in `modify_sys_path`. - -Closes #7231 diff --git a/doc/whatsnew/fragments/7246.bugfix b/doc/whatsnew/fragments/7246.bugfix deleted file mode 100644 index d3c4e28c7d4..00000000000 --- a/doc/whatsnew/fragments/7246.bugfix +++ /dev/null @@ -1,3 +0,0 @@ -Fix sys.path pollution in parallel mode. - -Closes #7246 diff --git a/doc/whatsnew/fragments/7267.internal b/doc/whatsnew/fragments/7267.internal deleted file mode 100644 index 00354026ced..00000000000 --- a/doc/whatsnew/fragments/7267.internal +++ /dev/null @@ -1,5 +0,0 @@ -Pylint is now using Scorecards to implement security recommendations from the -`OpenSSF `_. This is done in order to secure our supply chains using a combination -of automated tooling and best practices, most of which were already implemented before. - -Refs #7267 diff --git a/doc/whatsnew/fragments/7270.false_positive b/doc/whatsnew/fragments/7270.false_positive deleted file mode 100644 index 3011b0f986b..00000000000 --- a/doc/whatsnew/fragments/7270.false_positive +++ /dev/null @@ -1,3 +0,0 @@ -``import-error`` now correctly checks for ``contextlib.suppress`` guards on import statements. - -Closes #7270 diff --git a/doc/whatsnew/fragments/7280.other b/doc/whatsnew/fragments/7280.other deleted file mode 100644 index 84cac7c8f0e..00000000000 --- a/doc/whatsnew/fragments/7280.other +++ /dev/null @@ -1,3 +0,0 @@ -Fix crash when a type-annotated `__slots__` with no value is declared. - -Closes #7280 diff --git a/doc/whatsnew/fragments/7300.false_positive b/doc/whatsnew/fragments/7300.false_positive deleted file mode 100644 index b23352ea996..00000000000 --- a/doc/whatsnew/fragments/7300.false_positive +++ /dev/null @@ -1,3 +0,0 @@ -Fix false positive for `no-self-argument`/`no-method-argument` when a staticmethod is applied to a function but uses a different name. - -Closes #7300 diff --git a/doc/whatsnew/fragments/7311.false_positive b/doc/whatsnew/fragments/7311.false_positive deleted file mode 100644 index 48552fb9c15..00000000000 --- a/doc/whatsnew/fragments/7311.false_positive +++ /dev/null @@ -1,3 +0,0 @@ -Fix `undefined-loop-variable` with `break` and `continue` statements in `else` blocks. - -Refs #7311 diff --git a/doc/whatsnew/fragments/7319.bugfix b/doc/whatsnew/fragments/7319.bugfix deleted file mode 100644 index 62da1c786dd..00000000000 --- a/doc/whatsnew/fragments/7319.bugfix +++ /dev/null @@ -1,4 +0,0 @@ -Prevent `useless-parent-delegation` for delegating to a builtin -written in C (e.g. `Exception.__init__`) with non-self arguments. - -Closes #7319 diff --git a/pylint/__pkginfo__.py b/pylint/__pkginfo__.py index ca2dc0dc166..43b27b6425c 100644 --- a/pylint/__pkginfo__.py +++ b/pylint/__pkginfo__.py @@ -9,7 +9,7 @@ from __future__ import annotations -__version__ = "2.15.0-a0" +__version__ = "2.15.0" def get_numversion_from_version(v: str) -> tuple[int, int, int]: diff --git a/script/.contributors_aliases.json b/script/.contributors_aliases.json index 5eb7f2e071e..e3aa0dc1e4c 100644 --- a/script/.contributors_aliases.json +++ b/script/.contributors_aliases.json @@ -354,7 +354,7 @@ "name": "Jacob Bogdanov" }, "jacobtylerwalls@gmail.com": { - "mails": ["jacobtylerwalls@gmail.com"], + "mails": ["jacobtylerwalls@gmail.com", "jwalls@azavea.com"], "name": "Jacob Walls", "team": "Maintainers" }, diff --git a/tbump.toml b/tbump.toml index ec96c4e121f..6e3ad511a44 100644 --- a/tbump.toml +++ b/tbump.toml @@ -1,7 +1,7 @@ github_url = "https://github.com/PyCQA/pylint" [version] -current = "2.15.0-a0" +current = "2.15.0" regex = ''' ^(?P0|[1-9]\d*) \.