diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-04-24 21:26:46 +0200 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-04-24 21:42:23 +0200 |
commit | 7dece5b2302f446d7d63829a34b1253ae6e32e6b (patch) | |
tree | c3fa74dab5ba71cc5e2382da7bff284c423cddc5 | |
parent | bcfb46d169457f82a79575b547171ef05c2673a9 (diff) | |
download | pylint-git-7dece5b2302f446d7d63829a34b1253ae6e32e6b.tar.gz |
Prepare for 2.8.0 releasepylint-2.8.0
-rw-r--r-- | .copyrite_aliases | 25 | ||||
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | doc/whatsnew/2.8.rst | 2 | ||||
-rw-r--r-- | pylint/__init__.py | 2 | ||||
-rw-r--r-- | pylint/__pkginfo__.py | 2 | ||||
-rw-r--r-- | pylint/checkers/__init__.py | 4 | ||||
-rw-r--r-- | pylint/checkers/base.py | 3 | ||||
-rw-r--r-- | pylint/checkers/classes.py | 3 | ||||
-rw-r--r-- | pylint/checkers/format.py | 1 | ||||
-rw-r--r-- | pylint/checkers/misc.py | 1 | ||||
-rw-r--r-- | pylint/checkers/raw_metrics.py | 2 | ||||
-rw-r--r-- | pylint/checkers/similar.py | 2 | ||||
-rw-r--r-- | pylint/checkers/spelling.py | 1 | ||||
-rw-r--r-- | pylint/checkers/stdlib.py | 2 | ||||
-rw-r--r-- | pylint/checkers/variables.py | 1 | ||||
-rwxr-xr-x | pylint/epylint.py | 1 | ||||
-rw-r--r-- | pylint/extensions/comparetozero.py | 1 | ||||
-rw-r--r-- | pylint/extensions/confusing_elif.py | 1 | ||||
-rw-r--r-- | pylint/graph.py | 1 | ||||
-rw-r--r-- | pylint/pyreverse/writer.py | 1 | ||||
-rw-r--r-- | pylint/utils/__init__.py | 2 | ||||
-rw-r--r-- | tests/checkers/unittest_format.py | 1 | ||||
-rw-r--r-- | tests/checkers/unittest_similar.py | 2 | ||||
-rw-r--r-- | tests/checkers/unittest_spelling.py | 1 | ||||
-rw-r--r-- | tests/extensions/test_confusing_elif.py | 1 | ||||
-rw-r--r-- | tests/test_self.py | 2 |
26 files changed, 54 insertions, 13 deletions
diff --git a/.copyrite_aliases b/.copyrite_aliases index 2aaf214d8..175e7771f 100644 --- a/.copyrite_aliases +++ b/.copyrite_aliases @@ -74,5 +74,30 @@ ], "authoritative_mail": "ville.skytta@iki.fi", "name": "Ville Skyttä" + }, + { + "mails": [ + "ubuntu@ip-172-31-89-59.ec2.internal", + "eli88fine@gmail.com", + "ejfine@gmail.com" + ], + "authoritative_mail": "ejfine@gmail.com", + "name": "Eli Fine" + }, + { + "mails": [ + "andi.finkler@gmail.com", + "3929834+DudeNr33@users.noreply.github.com" + ], + "authoritative_mail": "andi.finkler@gmail.com", + "name": "Andreas Finkler" + }, + { + "mails": [ + "matusvalo@users.noreply.github.com", + "matusvalo@gmail.com" + ], + "authoritative_mail": "matusvalo@users.noreply.github.com", + "name": "Matus Valo" } ] @@ -7,7 +7,7 @@ Pylint's ChangeLog What's New in Pylint 2.8.0? =========================== -Release date: 2021-04-25 +Release date: 2021-04-24 * New refactoring message ``consider-using-with``. This message is emitted if resource-allocating functions or methods of the standard library (like ``open()`` or ``threading.Lock.acquire()``) that can be used as a context manager are called without diff --git a/doc/whatsnew/2.8.rst b/doc/whatsnew/2.8.rst index 240cb1aaa..23a6a8436 100644 --- a/doc/whatsnew/2.8.rst +++ b/doc/whatsnew/2.8.rst @@ -3,7 +3,7 @@ ************************** :Release: 2.8 -:Date: undefined +:Date: 2021-04-24 Summary -- Release highlights ============================= diff --git a/pylint/__init__.py b/pylint/__init__.py index b84259d81..b02d57e73 100644 --- a/pylint/__init__.py +++ b/pylint/__init__.py @@ -3,7 +3,7 @@ # Copyright (c) 2014 Arun Persaud <arun@nubati.net> # Copyright (c) 2015 Ionel Cristian Maries <contact@ionelmc.ro> # Copyright (c) 2018 Nick Drozd <nicholasdrozd@gmail.com> -# Copyright (c) 2020 Pierre Sassoulas <pierre.sassoulas@gmail.com> +# Copyright (c) 2020-2021 Pierre Sassoulas <pierre.sassoulas@gmail.com> # Copyright (c) 2021 Marc Mueller <30130371+cdce8p@users.noreply.github.com> # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html diff --git a/pylint/__pkginfo__.py b/pylint/__pkginfo__.py index 887029357..16fb00977 100644 --- a/pylint/__pkginfo__.py +++ b/pylint/__pkginfo__.py @@ -6,7 +6,7 @@ from typing import Optional __version__ = "2.8.0" # For an official release, use 'alpha_version = False' and 'dev_version = None' alpha_version: bool = False # Release will be an alpha version if True (ex: '1.2.3a6') -dev_version: Optional[int] = 1 +dev_version: Optional[int] = None if dev_version is not None: if alpha_version: diff --git a/pylint/checkers/__init__.py b/pylint/checkers/__init__.py index 3ba3b2c55..24ad8ca99 100644 --- a/pylint/checkers/__init__.py +++ b/pylint/checkers/__init__.py @@ -10,9 +10,9 @@ # Copyright (c) 2018-2021 Pierre Sassoulas <pierre.sassoulas@gmail.com> # Copyright (c) 2018 ssolanki <sushobhitsolanki@gmail.com> # Copyright (c) 2019 Bruno P. Kinoshita <kinow@users.noreply.github.com> +# Copyright (c) 2020-2021 hippo91 <guillaume.peillex@gmail.com> # Copyright (c) 2020 Frank Harrison <frank@doublethefish.com> -# Copyright (c) 2020 hippo91 <guillaume.peillex@gmail.com> -# Copyright (c) 2021 Matus Valo <matusvalo@gmail.com> +# Copyright (c) 2021 Matus Valo <matusvalo@users.noreply.github.com> # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html # For details: https://github.com/PyCQA/pylint/blob/master/LICENSE diff --git a/pylint/checkers/base.py b/pylint/checkers/base.py index 0f641f723..772a5b36c 100644 --- a/pylint/checkers/base.py +++ b/pylint/checkers/base.py @@ -20,7 +20,7 @@ # Copyright (c) 2016 Yannack <yannack@users.noreply.github.com> # Copyright (c) 2016 Alex Jurkiewicz <alex@jurkiewi.cz> # Copyright (c) 2017, 2019-2021 Pierre Sassoulas <pierre.sassoulas@gmail.com> -# Copyright (c) 2017, 2019-2020 hippo91 <guillaume.peillex@gmail.com> +# Copyright (c) 2017, 2019-2021 hippo91 <guillaume.peillex@gmail.com> # Copyright (c) 2017 danields <danields761@gmail.com> # Copyright (c) 2017 Jacques Kvam <jwkvam@gmail.com> # Copyright (c) 2017 ttenhoeve-aa <ttenhoeve@appannie.com> @@ -52,6 +52,7 @@ # Copyright (c) 2020 Gabriel R Sezefredo <g@briel.dev> # Copyright (c) 2020 Benny <benny.mueller91@gmail.com> # Copyright (c) 2020 Anubhav <35621759+anubh-v@users.noreply.github.com> +# Copyright (c) 2021 Andreas Finkler <andi.finkler@gmail.com> # Copyright (c) 2021 Marc Mueller <30130371+cdce8p@users.noreply.github.com> # Copyright (c) 2021 Or Bahari <orbahari@mail.tau.ac.il> diff --git a/pylint/checkers/classes.py b/pylint/checkers/classes.py index e4c1151ff..66825d449 100644 --- a/pylint/checkers/classes.py +++ b/pylint/checkers/classes.py @@ -33,8 +33,9 @@ # Copyright (c) 2019 Andrzej Klajnert <github@aklajnert.pl> # Copyright (c) 2019 Pascal Corpet <pcorpet@users.noreply.github.com> # Copyright (c) 2020 GergelyKalmar <gergely.kalmar@logikal.jp> -# Copyright (c) 2021 tiagohonorato <61059243+tiagohonorato@users.noreply.github.com> # Copyright (c) 2021 Marc Mueller <30130371+cdce8p@users.noreply.github.com> +# Copyright (c) 2021 James Sinclair <james@nurfherder.com> +# Copyright (c) 2021 tiagohonorato <61059243+tiagohonorato@users.noreply.github.com> # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html # For details: https://github.com/PyCQA/pylint/blob/master/LICENSE diff --git a/pylint/checkers/format.py b/pylint/checkers/format.py index 3193cf683..d83bc55a9 100644 --- a/pylint/checkers/format.py +++ b/pylint/checkers/format.py @@ -36,6 +36,7 @@ # Copyright (c) 2019 Nick Drozd <nicholasdrozd@gmail.com> # Copyright (c) 2019 Hugo van Kemenade <hugovk@users.noreply.github.com> # Copyright (c) 2020 Raphael Gaschignard <raphael@rtpg.co> +# Copyright (c) 2021 Marc Mueller <30130371+cdce8p@users.noreply.github.com> # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html # For details: https://github.com/PyCQA/pylint/blob/master/LICENSE diff --git a/pylint/checkers/misc.py b/pylint/checkers/misc.py index 070abbc94..4ae912f4f 100644 --- a/pylint/checkers/misc.py +++ b/pylint/checkers/misc.py @@ -16,6 +16,7 @@ # Copyright (c) 2020 wtracy <afishionado@gmail.com> # Copyright (c) 2020 Anthony Sottile <asottile@umich.edu> # Copyright (c) 2020 Benny <benny.mueller91@gmail.com> +# Copyright (c) 2021 Marc Mueller <30130371+cdce8p@users.noreply.github.com> # Copyright (c) 2021 Konstantina Saketou <56515303+ksaketou@users.noreply.github.com> # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html diff --git a/pylint/checkers/raw_metrics.py b/pylint/checkers/raw_metrics.py index d9e438466..5878da737 100644 --- a/pylint/checkers/raw_metrics.py +++ b/pylint/checkers/raw_metrics.py @@ -7,7 +7,7 @@ # Copyright (c) 2016 Glenn Matthews <glenn@e-dad.net> # Copyright (c) 2018 ssolanki <sushobhitsolanki@gmail.com> # Copyright (c) 2019-2021 Pierre Sassoulas <pierre.sassoulas@gmail.com> -# Copyright (c) 2020 hippo91 <guillaume.peillex@gmail.com> +# Copyright (c) 2020-2021 hippo91 <guillaume.peillex@gmail.com> # Copyright (c) 2020 谭九鼎 <109224573@qq.com> # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html diff --git a/pylint/checkers/similar.py b/pylint/checkers/similar.py index e15c0f032..8f6ae11a0 100644 --- a/pylint/checkers/similar.py +++ b/pylint/checkers/similar.py @@ -14,7 +14,7 @@ # Copyright (c) 2019 Hugo van Kemenade <hugovk@users.noreply.github.com> # Copyright (c) 2019 Taewon D. Kim <kimt33@mcmaster.ca> # Copyright (c) 2020 Frank Harrison <frank@doublethefish.com> -# Copyright (c) 2020 Eli Fine <eli88fine@gmail.com> +# Copyright (c) 2020 Eli Fine <ejfine@gmail.com> # Copyright (c) 2020 hippo91 <guillaume.peillex@gmail.com> # Copyright (c) 2020 Shiv Venkatasubrahmanyam <shvenkat@users.noreply.github.com> diff --git a/pylint/checkers/spelling.py b/pylint/checkers/spelling.py index 49c511990..dfa1d7738 100644 --- a/pylint/checkers/spelling.py +++ b/pylint/checkers/spelling.py @@ -17,6 +17,7 @@ # Copyright (c) 2020 Ganden Schaffner <gschaffner@pm.me> # Copyright (c) 2020 hippo91 <guillaume.peillex@gmail.com> # Copyright (c) 2020 Damien Baty <damien.baty@polyconseil.fr> +# Copyright (c) 2021 Andreas Finkler <andi.finkler@gmail.com> # Copyright (c) 2021 Eli Fine <ejfine@gmail.com> # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html diff --git a/pylint/checkers/stdlib.py b/pylint/checkers/stdlib.py index f2a2ac2c9..2a2d26993 100644 --- a/pylint/checkers/stdlib.py +++ b/pylint/checkers/stdlib.py @@ -26,7 +26,7 @@ # Copyright (c) 2020 hippo91 <guillaume.peillex@gmail.com> # Copyright (c) 2020 谭九鼎 <109224573@qq.com> # Copyright (c) 2020 Anthony Sottile <asottile@umich.edu> -# Copyright (c) 2021 Matus Valo <matusvalo@gmail.com> +# Copyright (c) 2021 Matus Valo <matusvalo@users.noreply.github.com> # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html # For details: https://github.com/PyCQA/pylint/blob/master/LICENSE diff --git a/pylint/checkers/variables.py b/pylint/checkers/variables.py index c611ae2f0..de5075af7 100644 --- a/pylint/checkers/variables.py +++ b/pylint/checkers/variables.py @@ -39,6 +39,7 @@ # Copyright (c) 2020 Andrew Simmons <a.simmons@deakin.edu.au> # Copyright (c) 2020 Anthony Sottile <asottile@umich.edu> # Copyright (c) 2020 Ashley Whetter <ashleyw@activestate.com> +# Copyright (c) 2021 haasea <44787650+haasea@users.noreply.github.com> # Copyright (c) 2021 Marc Mueller <30130371+cdce8p@users.noreply.github.com> # Copyright (c) 2021 Alexander Kapshuna <kapsh@kap.sh> diff --git a/pylint/epylint.py b/pylint/epylint.py index 9d3dbb54c..12f541c7a 100755 --- a/pylint/epylint.py +++ b/pylint/epylint.py @@ -20,6 +20,7 @@ # Copyright (c) 2019 Hugo van Kemenade <hugovk@users.noreply.github.com> # Copyright (c) 2020 Damien Baty <damien.baty@polyconseil.fr> # Copyright (c) 2020 Anthony Sottile <asottile@umich.edu> +# Copyright (c) 2021 Andreas Finkler <andi.finkler@gmail.com> # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html # For details: https://github.com/PyCQA/pylint/blob/master/LICENSE diff --git a/pylint/extensions/comparetozero.py b/pylint/extensions/comparetozero.py index 4379b348d..9c6b73ee4 100644 --- a/pylint/extensions/comparetozero.py +++ b/pylint/extensions/comparetozero.py @@ -3,6 +3,7 @@ # Copyright (c) 2019, 2021 Pierre Sassoulas <pierre.sassoulas@gmail.com> # Copyright (c) 2020 hippo91 <guillaume.peillex@gmail.com> # Copyright (c) 2020 Anthony Sottile <asottile@umich.edu> +# Copyright (c) 2021 bernie gray <bfgray3@users.noreply.github.com> # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html # For details: https://github.com/PyCQA/pylint/blob/master/LICENSE diff --git a/pylint/extensions/confusing_elif.py b/pylint/extensions/confusing_elif.py index 70222b778..07b6c4ac4 100644 --- a/pylint/extensions/confusing_elif.py +++ b/pylint/extensions/confusing_elif.py @@ -1,3 +1,4 @@ +# Copyright (c) 2021 Pierre Sassoulas <pierre.sassoulas@gmail.com> # Copyright (c) 2021 Andreas Finkler <andi.finkler@gmail.com> # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html diff --git a/pylint/graph.py b/pylint/graph.py index 3c4bbcef1..366206a37 100644 --- a/pylint/graph.py +++ b/pylint/graph.py @@ -8,6 +8,7 @@ # Copyright (c) 2020 Damien Baty <damien.baty@polyconseil.fr> # Copyright (c) 2020 谭九鼎 <109224573@qq.com> # Copyright (c) 2020 Benjamin Graham <benwilliamgraham@gmail.com> +# Copyright (c) 2021 Andreas Finkler <andi.finkler@gmail.com> # Copyright (c) 2021 Andrew Howe <howeaj@users.noreply.github.com> # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html diff --git a/pylint/pyreverse/writer.py b/pylint/pyreverse/writer.py index 3102fdda6..0d80bb9ca 100644 --- a/pylint/pyreverse/writer.py +++ b/pylint/pyreverse/writer.py @@ -8,6 +8,7 @@ # Copyright (c) 2018 ssolanki <sushobhitsolanki@gmail.com> # Copyright (c) 2019-2021 Pierre Sassoulas <pierre.sassoulas@gmail.com> # Copyright (c) 2019 Kylian <development@goudcode.nl> +# Copyright (c) 2021 Andreas Finkler <andi.finkler@gmail.com> # Copyright (c) 2021 Mark Byrne <mbyrnepr2@gmail.com> # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html diff --git a/pylint/utils/__init__.py b/pylint/utils/__init__.py index 1830ab839..948e5d5ce 100644 --- a/pylint/utils/__init__.py +++ b/pylint/utils/__init__.py @@ -19,7 +19,7 @@ # Copyright (c) 2016 Ashley Whetter <ashley@awhetter.co.uk> # Copyright (c) 2016 xmo-odoo <xmo-odoo@users.noreply.github.com> # Copyright (c) 2017-2021 Pierre Sassoulas <pierre.sassoulas@gmail.com> -# Copyright (c) 2017-2018, 2020 hippo91 <guillaume.peillex@gmail.com> +# Copyright (c) 2017-2018, 2020-2021 hippo91 <guillaume.peillex@gmail.com> # Copyright (c) 2017, 2020 Anthony Sottile <asottile@umich.edu> # Copyright (c) 2017-2018 Bryce Guinta <bryce.paul.guinta@gmail.com> # Copyright (c) 2017 Chris Lamb <chris@chris-lamb.co.uk> diff --git a/tests/checkers/unittest_format.py b/tests/checkers/unittest_format.py index a2aa4687f..8d1c9077d 100644 --- a/tests/checkers/unittest_format.py +++ b/tests/checkers/unittest_format.py @@ -19,6 +19,7 @@ # Copyright (c) 2019 Hugo van Kemenade <hugovk@users.noreply.github.com> # Copyright (c) 2019 Ashley Whetter <ashley@awhetter.co.uk> # Copyright (c) 2020 hippo91 <guillaume.peillex@gmail.com> +# Copyright (c) 2021 Andreas Finkler <andi.finkler@gmail.com> # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html # For details: https://github.com/PyCQA/pylint/blob/master/LICENSE diff --git a/tests/checkers/unittest_similar.py b/tests/checkers/unittest_similar.py index 510dd64af..01b2bab6e 100644 --- a/tests/checkers/unittest_similar.py +++ b/tests/checkers/unittest_similar.py @@ -10,7 +10,7 @@ # Copyright (c) 2019 Ashley Whetter <ashley@awhetter.co.uk> # Copyright (c) 2019 Taewon D. Kim <kimt33@mcmaster.ca> # Copyright (c) 2020 Frank Harrison <frank@doublethefish.com> -# Copyright (c) 2020 Eli Fine <eli88fine@gmail.com> +# Copyright (c) 2020 Eli Fine <ejfine@gmail.com> # Copyright (c) 2020 hippo91 <guillaume.peillex@gmail.com> # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html diff --git a/tests/checkers/unittest_spelling.py b/tests/checkers/unittest_spelling.py index 176ae34db..009ec21d3 100644 --- a/tests/checkers/unittest_spelling.py +++ b/tests/checkers/unittest_spelling.py @@ -10,6 +10,7 @@ # Copyright (c) 2019 agutole <toldo_carp@hotmail.com> # Copyright (c) 2020 Ganden Schaffner <gschaffner@pm.me> # Copyright (c) 2020 hippo91 <guillaume.peillex@gmail.com> +# Copyright (c) 2021 Eli Fine <ejfine@gmail.com> # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html # For details: https://github.com/PyCQA/pylint/blob/master/LICENSE diff --git a/tests/extensions/test_confusing_elif.py b/tests/extensions/test_confusing_elif.py index f45589e85..131e908a2 100644 --- a/tests/extensions/test_confusing_elif.py +++ b/tests/extensions/test_confusing_elif.py @@ -1,3 +1,4 @@ +# Copyright (c) 2021 Pierre Sassoulas <pierre.sassoulas@gmail.com> # Copyright (c) 2021 Andreas Finkler <andi.finkler@gmail.com> # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html diff --git a/tests/test_self.py b/tests/test_self.py index a42ed1d07..59f302e9a 100644 --- a/tests/test_self.py +++ b/tests/test_self.py @@ -24,6 +24,8 @@ # Copyright (c) 2020 Pieter Engelbrecht <pengelbrecht@rems2.com> # Copyright (c) 2020 Clément Pit-Claudel <cpitclaudel@users.noreply.github.com> # Copyright (c) 2020 Anthony Sottile <asottile@umich.edu> +# Copyright (c) 2021 Andreas Finkler <andi.finkler@gmail.com> +# Copyright (c) 2021 chohner <mail@chohner.com> # Copyright (c) 2021 Marc Mueller <30130371+cdce8p@users.noreply.github.com> # Copyright (c) 2021 Louis Sautier <sautier.louis@gmail.com> |