Skip to content

Commit eec287f

Browse files
Bump pylint to 2.12.2, update changelog
1 parent 7def527 commit eec287f

16 files changed

+38
-28
lines changed

ChangeLog

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,23 @@ Release date: TBA
1515
(Ie. not necessarily at the end)
1616

1717

18-
What's New in Pylint 2.12.2?
18+
What's New in Pylint 2.12.3?
1919
============================
2020
Release date: TBA
2121

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

25+
26+
..
27+
Insert your changelog randomly, it will reduce merge conflicts
28+
(Ie. not necessarily at the end)
29+
30+
31+
What's New in Pylint 2.12.2?
32+
============================
33+
Release date: 2021-11-25
34+
2535
* Fixed a false positive for ``unused-import`` where everything
2636
was not analyzed properly inside typing guards.
2737

@@ -54,9 +64,14 @@ Release date: TBA
5464

5565
Closes #5452
5666

57-
..
58-
Insert your changelog randomly, it will reduce merge conflicts
59-
(Ie. not necessarily at the end)
67+
* Fix false negative for ``consider-iterating-dictionary`` during membership checks encapsulated in iterables
68+
or ``not in`` checks
69+
70+
Closes #5323
71+
72+
* ``unused-import`` now check all ancestors for typing guards
73+
74+
Closes #5316
6075

6176

6277
What's New in Pylint 2.12.1?
@@ -86,11 +101,6 @@ Release date: 2021-11-24
86101

87102
Closes #4412 #5287
88103

89-
* Fix false negative for ``consider-iterating-dictionary`` during membership checks encapsulated in iterables
90-
or ``not in`` checks
91-
92-
Closes #5323
93-
94104
* Fix ``install graphiz`` message which isn't needed for puml output format.
95105

96106
* ``MessageTest`` of the unittest ``testutil`` now requires the ``confidence`` attribute

doc/whatsnew/2.12.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,3 +250,8 @@ Other Changes
250250
* Add ``endLine`` and ``endColumn`` keys to output of ``JSONReporter``.
251251

252252
Closes #5380
253+
254+
* Fix false negative for ``consider-iterating-dictionary`` during membership checks encapsulated in iterables
255+
or ``not in`` checks
256+
257+
Closes #5323

doc/whatsnew/2.13.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@ Extensions
2020
Other Changes
2121
=============
2222

23-
* Fix false negative for ``consider-iterating-dictionary`` during membership checks encapsulated in iterables
24-
or ``not in`` checks
25-
26-
Closes #5323
27-
2823
* Require Python ``3.6.2`` to run pylint.
2924

3025
Closes #5065

pylint/__pkginfo__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# For details: https://github.com/PyCQA/pylint/blob/main/LICENSE
33
from typing import Tuple
44

5-
__version__ = "2.12.2-dev0"
5+
__version__ = "2.12.2"
66

77

88
def get_numversion_from_version(v: str) -> Tuple:

pylint/checkers/classes.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,9 @@
3939
# Copyright (c) 2021 Samuel Freilich <[email protected]>
4040
# Copyright (c) 2021 Nick Pesce <[email protected]>
4141
# Copyright (c) 2021 bot <[email protected]>
42-
# Copyright (c) 2021 yushao2 <[email protected]>
42+
# Copyright (c) 2021 Yu Shao, Pang <[email protected]>
4343
# Copyright (c) 2021 SupImDos <[email protected]>
4444
# Copyright (c) 2021 Kayran Schmidt <[email protected]>
45-
# Copyright (c) 2021 Yu Shao, Pang <[email protected]>
4645
# Copyright (c) 2021 Konstantina Saketou <[email protected]>
4746
# Copyright (c) 2021 James Sinclair <[email protected]>
4847
# Copyright (c) 2021 tiagohonorato <[email protected]>

pylint/checkers/design_analysis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
# Copyright (c) 2021 Melvin <[email protected]>
2424
# Copyright (c) 2021 Rebecca Turner <[email protected]>
2525
# Copyright (c) 2021 Marc Mueller <[email protected]>
26-
# Copyright (c) 2021 yushao2 <[email protected]>
26+
# Copyright (c) 2021 Yu Shao, Pang <[email protected]>
2727

2828
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
2929
# For details: https://github.com/PyCQA/pylint/blob/main/LICENSE

pylint/checkers/imports.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
# Copyright (c) 2021 Marc Mueller <[email protected]>
4040
# Copyright (c) 2021 Will Shanks <[email protected]>
4141
# Copyright (c) 2021 Matus Valo <[email protected]>
42-
# Copyright (c) 2021 yushao2 <[email protected]>
42+
# Copyright (c) 2021 Yu Shao, Pang <[email protected]>
4343
# Copyright (c) 2021 Andrew Howe <[email protected]>
4444

4545
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html

pylint/checkers/typecheck.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
# Copyright (c) 2021 Daniël van Noord <[email protected]>
4848
# Copyright (c) 2021 David Liu <[email protected]>
4949
# Copyright (c) 2021 doranid <[email protected]>
50-
# Copyright (c) 2021 yushao2 <[email protected]>
50+
# Copyright (c) 2021 Yu Shao, Pang <[email protected]>
5151
# Copyright (c) 2021 Andrew Haigh <[email protected]>
5252
# Copyright (c) 2021 Jens H. Nielsen <[email protected]>
5353
# Copyright (c) 2021 Ikraduya Edian <[email protected]>

pylint/checkers/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,17 @@
4242
# Copyright (c) 2020 Slavfox <[email protected]>
4343
# Copyright (c) 2020 Anthony Sottile <[email protected]>
4444
# Copyright (c) 2021 Daniël van Noord <[email protected]>
45+
# Copyright (c) 2021 bot <[email protected]>
46+
# Copyright (c) 2021 Yu Shao, Pang <[email protected]>
4547
# Copyright (c) 2021 Mark Byrne <[email protected]>
4648
# Copyright (c) 2021 Nick Drozd <[email protected]>
4749
# Copyright (c) 2021 Arianna Y <[email protected]>
4850
# Copyright (c) 2021 Jaehoon Hwang <[email protected]>
4951
# Copyright (c) 2021 Samuel FORESTIER <[email protected]>
5052
# Copyright (c) 2021 Marc Mueller <[email protected]>
51-
# Copyright (c) 2021 bot <[email protected]>
5253
# Copyright (c) 2021 David Liu <[email protected]>
5354
# Copyright (c) 2021 Matus Valo <[email protected]>
5455
# Copyright (c) 2021 Lorena B <[email protected]>
55-
# Copyright (c) 2021 yushao2 <[email protected]>
5656

5757
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
5858
# For details: https://github.com/PyCQA/pylint/blob/main/LICENSE

pylint/extensions/_check_docs_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
# Copyright (c) 2019 Zeb Nicholls <[email protected]>
1616
# Copyright (c) 2021 Pierre Sassoulas <[email protected]>
1717
# Copyright (c) 2021 Daniël van Noord <[email protected]>
18+
# Copyright (c) 2021 allanc65 <[email protected]>
1819
# Copyright (c) 2021 Konstantina Saketou <[email protected]>
1920
# Copyright (c) 2021 Marc Mueller <[email protected]>
2021

pylint/reporters/json_reporter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
# Copyright (c) 2019 Hugo van Kemenade <[email protected]>
77
# Copyright (c) 2020 hippo91 <[email protected]>
88
# Copyright (c) 2020 Clément Pit-Claudel <[email protected]>
9-
# Copyright (c) 2021 Daniël van Noord <[email protected]>
109
# Copyright (c) 2021 Marc Mueller <[email protected]>
10+
# Copyright (c) 2021 Daniël van Noord <[email protected]>
1111

1212
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
1313
# For details: https://github.com/PyCQA/pylint/blob/main/LICENSE

pylint/reporters/text.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
# Copyright (c) 2019-2021 Pierre Sassoulas <[email protected]>
1313
# Copyright (c) 2019 Hugo van Kemenade <[email protected]>
1414
# Copyright (c) 2020 hippo91 <[email protected]>
15-
# Copyright (c) 2021 Marc Mueller <[email protected]>
1615
# Copyright (c) 2021 Daniël van Noord <[email protected]>
16+
# Copyright (c) 2021 Marc Mueller <[email protected]>
1717
# Copyright (c) 2021 bot <[email protected]>
1818

1919
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html

tbump.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
github_url = "https://github.com/PyCQA/pylint"
22

33
[version]
4-
current = "2.12.2-dev0"
4+
current = "2.12.2"
55
regex = '''
66
^(?P<major>0|[1-9]\d*)
77
\.

tests/checkers/unittest_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
# Copyright (c) 2019 Nathan Marrow <[email protected]>
1212
# Copyright (c) 2020 hippo91 <[email protected]>
1313
# Copyright (c) 2020 Anthony Sottile <[email protected]>
14+
# Copyright (c) 2021 Daniël van Noord <[email protected]>
1415
# Copyright (c) 2021 Jaehoon Hwang <[email protected]>
1516
# Copyright (c) 2021 Marc Mueller <[email protected]>
16-
# Copyright (c) 2021 Daniël van Noord <[email protected]>
1717

1818
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
1919
# For details: https://github.com/PyCQA/pylint/blob/main/LICENSE

tests/unittest_reporters_json.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
# Copyright (c) 2019-2021 Pierre Sassoulas <[email protected]>
88
# Copyright (c) 2019 Ashley Whetter <[email protected]>
99
# Copyright (c) 2020 hippo91 <[email protected]>
10-
# Copyright (c) 2021 Daniël van Noord <[email protected]>
1110
# Copyright (c) 2021 Marc Mueller <[email protected]>
11+
# Copyright (c) 2021 Daniël van Noord <[email protected]>
1212

1313
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
1414
# For details: https://github.com/PyCQA/pylint/blob/main/LICENSE

tests/unittest_reporting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
# Copyright (c) 2019-2021 Pierre Sassoulas <[email protected]>
1010
# Copyright (c) 2019 Ashley Whetter <[email protected]>
1111
# Copyright (c) 2020 hippo91 <[email protected]>
12-
# Copyright (c) 2021 Daniël van Noord <[email protected]>
1312
# Copyright (c) 2021 Marc Mueller <[email protected]>
13+
# Copyright (c) 2021 Daniël van Noord <[email protected]>
1414
# Copyright (c) 2021 ruro <[email protected]>
1515

1616
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html

0 commit comments

Comments
 (0)