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

Bump pylint to 2.14.0, update changelog #6785

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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``
-->
Expand Down
10 changes: 6 additions & 4 deletions CONTRIBUTORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Maintainers
- Marc Mueller <[email protected]>
- Hippo91 <[email protected]>
- Jacob Walls <[email protected]>
- Matus Valo <[email protected]>
- Andreas Finkler <[email protected]>
- Łukasz Rogalski <[email protected]>
- Ashley Whetter <[email protected]>
Expand Down Expand Up @@ -50,7 +51,7 @@ contributors:
* wrong-spelling-in-comment
* wrong-spelling-in-docstring
* parallel execution on multiple CPUs
- Matus Valo <matusvalo@users.noreply.github.com>
- Mark Byrne <31762852+mbyrnepr2@users.noreply.github.com>
- Bruno Daniel <[email protected]>: check_docs extension.
- Sushobhit <[email protected]> (sushobhit27)
* Added new check 'comparison-with-itself'.
Expand All @@ -76,7 +77,6 @@ contributors:
* redefined-variable-type
- Alexandre Fayolle <[email protected]> (Logilab): TkInter gui, documentation, debian support
- Nick Drozd <[email protected]>: performance improvements to astroid
- Mark Byrne <[email protected]>
- Julien Cristau <[email protected]> (Logilab): python 3 support
- Adrien Di Mascio <[email protected]>
- Frank Harrison <[email protected]> (doublethefish)
Expand All @@ -96,10 +96,10 @@ contributors:
- Cezar Elnazli <[email protected]>: deprecated-method
- Joseph Young <[email protected]> (jpy-git)
- Nicolas Chauvat <[email protected]>
- Tim Martin <[email protected]>
- Radu Ciorba <[email protected]>: not-context-manager and confusing-with-statement warnings.
- Holger Peters <[email protected]>
- Cosmin PoieanΔƒ <[email protected]>: unichr-builtin and improvements to bad-open-mode.
- Tim Martin <[email protected]>
- Steven Myint <[email protected]>: duplicate-except.
- Peter Kolbus <[email protected]> (Garmin)
- Luigi Bertaco Cristofolini <[email protected]> (luigibertaco)
Expand Down Expand Up @@ -160,6 +160,7 @@ contributors:
- Takahide Nojima <[email protected]>
- Taewon D. Kim <[email protected]>
- Sneaky Pete <[email protected]>
- Sergey B Kirpichev <[email protected]>
- Rene Zhang <[email protected]>
- Or Bahari <[email protected]>
- Mr. Senko <[email protected]>
Expand All @@ -186,7 +187,6 @@ contributors:
- chohner <[email protected]>
- Tiago Honorato <[email protected]>
- Steven M. Vascellaro <[email protected]>
- Sergey B Kirpichev <[email protected]>
- Roberto Leinardi <[email protected]>: PyCharm plugin maintainer
- Ricardo Gemignani <[email protected]>
- Pieter Engelbrecht <[email protected]>
Expand Down Expand Up @@ -290,6 +290,7 @@ contributors:
- [email protected] <[email protected]>
- paschich <[email protected]>
- oittaa <[email protected]>
- nyabkun <[email protected]>
- moxian <[email protected]>
- mar-chi-pan <[email protected]>
- [email protected] <[email protected]>
Expand Down Expand Up @@ -460,6 +461,7 @@ contributors:
- Emmanuel Chaudron <[email protected]>
- Elizabeth Bott <[email protected]>
- Eisuke Kawashima <[email protected]> (e-kwsm)
- Edward K. Ream <[email protected]>
- Edgemaster <[email protected]>
- Drew Risinger <[email protected]>
- Dr. Nick <[email protected]>
Expand Down
11 changes: 3 additions & 8 deletions doc/development_guide/contributor_guide/contribute.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
8 changes: 7 additions & 1 deletion doc/whatsnew/2/2.14/full.rst
Original file line number Diff line number Diff line change
@@ -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()``.

Expand Down
44 changes: 44 additions & 0 deletions doc/whatsnew/2/2.15/index.rst
Original file line number Diff line number Diff line change
@@ -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
================
1 change: 1 addition & 0 deletions doc/whatsnew/2/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
.. toctree::
:maxdepth: 2

2.15/index
2.14/index
2.13/index
2.12/index
Expand Down
3 changes: 1 addition & 2 deletions examples/pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 1 addition & 2 deletions examples/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion pylint/__pkginfo__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

from __future__ import annotations

__version__ = "2.14.0-b1"
__version__ = "2.15.0-dev0"


def get_numversion_from_version(v: str) -> tuple[int, int, int]:
Expand Down
3 changes: 2 additions & 1 deletion script/.contributors_aliases.json
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,8 @@
},
"[email protected]": {
"mails": ["[email protected]", "[email protected]"],
"name": "Matus Valo"
"name": "Matus Valo",
"team": "Maintainers"
},
"[email protected]": {
"mails": [
Expand Down
7 changes: 4 additions & 3 deletions script/bump_changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion tbump.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
github_url = "https://github.com/PyCQA/pylint"

[version]
current = "2.14.0-b1"
current = "2.15.0-dev0"
regex = '''
^(?P<major>0|[1-9]\d*)
\.
Expand Down