From d0512a063074027725a2e2faebbe7e0262f41342 Mon Sep 17 00:00:00 2001 From: Pierre Sassoulas Date: Wed, 1 Jun 2022 12:45:26 +0200 Subject: [PATCH 1/4] [doc] Matus Valo is now a maintainer --- script/.contributors_aliases.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/script/.contributors_aliases.json b/script/.contributors_aliases.json index a97a65e37b..85892ce0ae 100644 --- a/script/.contributors_aliases.json +++ b/script/.contributors_aliases.json @@ -419,7 +419,8 @@ }, "matusvalo@users.noreply.github.com": { "mails": ["matusvalo@users.noreply.github.com", "matusvalo@gmail.com"], - "name": "Matus Valo" + "name": "Matus Valo", + "team": "Maintainers" }, "me@the-compiler.org": { "mails": [ From cd24ebe591138e7fa5dd98768deb3948626fe5e0 Mon Sep 17 00:00:00 2001 From: Pierre Sassoulas Date: Wed, 1 Jun 2022 12:45:53 +0200 Subject: [PATCH 2/4] [tbump] Upgrade the bump script in preparation of 2.14 maintenance --- script/bump_changelog.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/script/bump_changelog.py b/script/bump_changelog.py index 33a264fa18..f27195bdcd 100644 --- a/script/bump_changelog.py +++ b/script/bump_changelog.py @@ -16,8 +16,9 @@ from datetime import datetime from pathlib import Path -# TODO: 2.14.0 Upgrade bump script -DEFAULT_CHANGELOG_PATH = Path("ChangeLog") +# TODO: 2.15.0 Modify the way we handle the patch version +# release notes +DEFAULT_CHANGELOG_PATH = Path("doc/whatsnew/2/2.14/full.rst") RELEASE_DATE_TEXT = "Release date: TBA" WHATS_NEW_TEXT = "What's New in Pylint" @@ -93,7 +94,7 @@ def get_whats_new( version: str, add_date: bool = False, change_date: bool = False ) -> str: whats_new_text = FULL_WHATS_NEW_TEXT.format(version=version) - result = [whats_new_text, "=" * len(whats_new_text)] + result = [whats_new_text, "-" * len(whats_new_text)] if add_date and change_date: result += [NEW_RELEASE_DATE_MESSAGE] elif add_date: From 8b53307df05fd686cc7716a95540cd8ce417eb46 Mon Sep 17 00:00:00 2001 From: Pierre Sassoulas Date: Wed, 1 Jun 2022 12:46:26 +0200 Subject: [PATCH 3/4] Bump pylint to 2.14.0, update changelog --- .github/PULL_REQUEST_TEMPLATE.md | 6 ++- CONTRIBUTORS.txt | 10 +++-- .../contributor_guide/contribute.rst | 11 ++--- doc/whatsnew/2/2.14/full.rst | 8 +++- doc/whatsnew/2/2.15/index.rst | 44 +++++++++++++++++++ doc/whatsnew/2/index.rst | 1 + examples/pylintrc | 3 +- examples/pyproject.toml | 3 +- pylint/__pkginfo__.py | 2 +- tbump.toml | 2 +- 10 files changed, 69 insertions(+), 21 deletions(-) create mode 100644 doc/whatsnew/2/2.15/index.rst diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 2163a1719b..90a6b12c3a 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -4,8 +4,10 @@ Thank you for submitting a PR to pylint! To ease the process of reviewing your PR, do make sure to complete the following boxes. - [ ] Write a good description on what the PR does. -- [ ] If it's a new feature, or an important bug fix, add a What's New entry in - ``doc/whatsnew/2/2.14/summary.rst`` otherwise in ``doc/whatsnew/2/2.14/full.rst``. +- [ ] Add an entry to the change log describing the change in + `doc/whatsnew/2/2.15/index.rst` (or ``doc/whatsnew/2/2.14/full.rst`` + if the change needs backporting in 2.14). If necessary you can write + details or offer examples on how the new change is supposed to work. - [ ] If you used multiple emails or multiple names when contributing, add your mails and preferred name in ``script/.contributors_aliases.json`` --> diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt index e6c484010d..a84d5b5dae 100644 --- a/CONTRIBUTORS.txt +++ b/CONTRIBUTORS.txt @@ -19,6 +19,7 @@ Maintainers - Marc Mueller <30130371+cdce8p@users.noreply.github.com> - Hippo91 - Jacob Walls +- Matus Valo - Andreas Finkler <3929834+DudeNr33@users.noreply.github.com> - Łukasz Rogalski - Ashley Whetter @@ -50,7 +51,7 @@ contributors: * wrong-spelling-in-comment * wrong-spelling-in-docstring * parallel execution on multiple CPUs -- Matus Valo +- Mark Byrne <31762852+mbyrnepr2@users.noreply.github.com> - Bruno Daniel : check_docs extension. - Sushobhit <31987769+sushobhit27@users.noreply.github.com> (sushobhit27) * Added new check 'comparison-with-itself'. @@ -76,7 +77,6 @@ contributors: * redefined-variable-type - Alexandre Fayolle (Logilab): TkInter gui, documentation, debian support - Nick Drozd : performance improvements to astroid -- Mark Byrne <31762852+mbyrnepr2@users.noreply.github.com> - Julien Cristau (Logilab): python 3 support - Adrien Di Mascio - Frank Harrison (doublethefish) @@ -96,10 +96,10 @@ contributors: - Cezar Elnazli : deprecated-method - Joseph Young <80432516+jpy-git@users.noreply.github.com> (jpy-git) - Nicolas Chauvat +- Tim Martin - Radu Ciorba : not-context-manager and confusing-with-statement warnings. - Holger Peters - Cosmin Poieană : unichr-builtin and improvements to bad-open-mode. -- Tim Martin - Steven Myint : duplicate-except. - Peter Kolbus (Garmin) - Luigi Bertaco Cristofolini (luigibertaco) @@ -160,6 +160,7 @@ contributors: - Takahide Nojima - Taewon D. Kim - Sneaky Pete +- Sergey B Kirpichev - Rene Zhang - Or Bahari - Mr. Senko @@ -186,7 +187,6 @@ contributors: - chohner - Tiago Honorato <61059243+tiagohonorato@users.noreply.github.com> - Steven M. Vascellaro -- Sergey B Kirpichev - Roberto Leinardi : PyCharm plugin maintainer - Ricardo Gemignani - Pieter Engelbrecht @@ -290,6 +290,7 @@ contributors: - pyves@crater.logilab.fr - paschich - oittaa <8972248+oittaa@users.noreply.github.com> +- nyabkun <75878387+nyabkun@users.noreply.github.com> - moxian - mar-chi-pan - ludal@logilab.fr @@ -460,6 +461,7 @@ contributors: - Emmanuel Chaudron - Elizabeth Bott <52465744+elizabethbott@users.noreply.github.com> - Eisuke Kawashima (e-kwsm) +- Edward K. Ream - Edgemaster - Drew Risinger - Dr. Nick diff --git a/doc/development_guide/contributor_guide/contribute.rst b/doc/development_guide/contributor_guide/contribute.rst index 6a22c106be..9dcfd8d949 100644 --- a/doc/development_guide/contributor_guide/contribute.rst +++ b/doc/development_guide/contributor_guide/contribute.rst @@ -13,14 +13,9 @@ your patch gets accepted: you access to the latest ``ast`` parser. - Install the dev dependencies, see :ref:`contributor_install`. - Use our test suite and write new tests, see :ref:`contributor_testing`. - -- Add a short entry to the change log describing the change, except for internal - implementation only changes. - -- Not usually required, but for changes other than small bugs we also add a couple - of sentences in the release document for that release, (:file:`doc/whatsnew/VERSION.rst`, - `What's New` section). For the release document we usually write some more details, - and it is also a good place to offer examples on how the new change is supposed to work. +- Add an entry to the change log describing the change in `doc/whatsnew/2/2.15/index.rst` + (or ``doc/whatsnew/2/2.14/full.rst`` if the change needs backporting in 2.14). + If necessary you can write details or offer examples on how the new change is supposed to work. - Document your change, if it is a non-trivial one. diff --git a/doc/whatsnew/2/2.14/full.rst b/doc/whatsnew/2/2.14/full.rst index ad2335afdc..8790973589 100644 --- a/doc/whatsnew/2/2.14/full.rst +++ b/doc/whatsnew/2/2.14/full.rst @@ -1,11 +1,17 @@ Full changelog ============== -What's New in Pylint 2.14.0? +What's New in Pylint 2.14.1? ---------------------------- Release date: TBA + +What's New in Pylint 2.14.0? +---------------------------- +Release date: 2022-06-01 + + * The refactoring checker now also raises 'consider-using-generator' messages for ``max()``, ``min()`` and ``sum()``. diff --git a/doc/whatsnew/2/2.15/index.rst b/doc/whatsnew/2/2.15/index.rst new file mode 100644 index 0000000000..519232b22e --- /dev/null +++ b/doc/whatsnew/2/2.15/index.rst @@ -0,0 +1,44 @@ +*************************** + What's New in Pylint 2.15 +*************************** + +.. toctree:: + :maxdepth: 2 + +:Release: 2.15 +:Date: TBA + +Summary -- Release highlights +============================= + + +New checkers +============ + + +Removed checkers +================ + + +Extensions +========== + + +False positives fixed +===================== + + +False negatives fixed +===================== + + +Other bug fixes +=============== + + +Other Changes +============= + + +Internal changes +================ diff --git a/doc/whatsnew/2/index.rst b/doc/whatsnew/2/index.rst index cb6dc57fe6..4c1e938b32 100644 --- a/doc/whatsnew/2/index.rst +++ b/doc/whatsnew/2/index.rst @@ -7,6 +7,7 @@ .. toctree:: :maxdepth: 2 + 2.15/index 2.14/index 2.13/index 2.12/index diff --git a/examples/pylintrc b/examples/pylintrc index 8a16610727..5146b9941b 100644 --- a/examples/pylintrc +++ b/examples/pylintrc @@ -277,8 +277,7 @@ signature-mutators= [EXCEPTIONS] -# Exceptions that will emit a warning when being caught. Defaults to -# "BaseException, Exception". +# Exceptions that will emit a warning when caught. overgeneral-exceptions=BaseException, Exception diff --git a/examples/pyproject.toml b/examples/pyproject.toml index 690f0c0a66..138907a68e 100644 --- a/examples/pyproject.toml +++ b/examples/pyproject.toml @@ -259,8 +259,7 @@ max-statements = 50 min-public-methods = 2 [tool.pylint.exceptions] -# Exceptions that will emit a warning when being caught. Defaults to -# "BaseException, Exception". +# Exceptions that will emit a warning when caught. overgeneral-exceptions = ["BaseException", "Exception"] [tool.pylint.format] diff --git a/pylint/__pkginfo__.py b/pylint/__pkginfo__.py index 72e66b3fa0..858b61b499 100644 --- a/pylint/__pkginfo__.py +++ b/pylint/__pkginfo__.py @@ -9,7 +9,7 @@ from __future__ import annotations -__version__ = "2.14.0-b1" +__version__ = "2.14.0" def get_numversion_from_version(v: str) -> tuple[int, int, int]: diff --git a/tbump.toml b/tbump.toml index b904459752..2ae96a798c 100644 --- a/tbump.toml +++ b/tbump.toml @@ -1,7 +1,7 @@ github_url = "https://github.com/PyCQA/pylint" [version] -current = "2.14.0-b1" +current = "2.14.0" regex = ''' ^(?P0|[1-9]\d*) \. From ad627dc7e0967d2c83eb76a0ddd21ae7be1da7ea Mon Sep 17 00:00:00 2001 From: Pierre Sassoulas Date: Wed, 1 Jun 2022 13:08:29 +0200 Subject: [PATCH 4/4] Bump pylint to 2.15.0-dev0, update changelog --- pylint/__pkginfo__.py | 2 +- tbump.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pylint/__pkginfo__.py b/pylint/__pkginfo__.py index 858b61b499..4839aabe1c 100644 --- a/pylint/__pkginfo__.py +++ b/pylint/__pkginfo__.py @@ -9,7 +9,7 @@ from __future__ import annotations -__version__ = "2.14.0" +__version__ = "2.15.0-dev0" def get_numversion_from_version(v: str) -> tuple[int, int, int]: diff --git a/tbump.toml b/tbump.toml index 2ae96a798c..0cda703c73 100644 --- a/tbump.toml +++ b/tbump.toml @@ -1,7 +1,7 @@ github_url = "https://github.com/PyCQA/pylint" [version] -current = "2.14.0" +current = "2.15.0-dev0" regex = ''' ^(?P0|[1-9]\d*) \.