diff --git a/.copyrite_aliases b/.copyrite_aliases index 2aaf214d8f..175e7771ff 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" } ] diff --git a/ChangeLog b/ChangeLog index a28aecfc7f..e07ba1f58f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 240cb1aaab..23a6a84362 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 b84259d819..b02d57e735 100644 --- a/pylint/__init__.py +++ b/pylint/__init__.py @@ -3,7 +3,7 @@ # Copyright (c) 2014 Arun Persaud # Copyright (c) 2015 Ionel Cristian Maries # Copyright (c) 2018 Nick Drozd -# Copyright (c) 2020 Pierre Sassoulas +# Copyright (c) 2020-2021 Pierre Sassoulas # 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 887029357b..16fb009777 100644 --- a/pylint/__pkginfo__.py +++ b/pylint/__pkginfo__.py @@ -6,7 +6,7 @@ __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 3ba3b2c559..24ad8ca99a 100644 --- a/pylint/checkers/__init__.py +++ b/pylint/checkers/__init__.py @@ -10,9 +10,9 @@ # Copyright (c) 2018-2021 Pierre Sassoulas # Copyright (c) 2018 ssolanki # Copyright (c) 2019 Bruno P. Kinoshita +# Copyright (c) 2020-2021 hippo91 # Copyright (c) 2020 Frank Harrison -# Copyright (c) 2020 hippo91 -# Copyright (c) 2021 Matus Valo +# Copyright (c) 2021 Matus Valo # 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 0f641f7238..772a5b36cf 100644 --- a/pylint/checkers/base.py +++ b/pylint/checkers/base.py @@ -20,7 +20,7 @@ # Copyright (c) 2016 Yannack # Copyright (c) 2016 Alex Jurkiewicz # Copyright (c) 2017, 2019-2021 Pierre Sassoulas -# Copyright (c) 2017, 2019-2020 hippo91 +# Copyright (c) 2017, 2019-2021 hippo91 # Copyright (c) 2017 danields # Copyright (c) 2017 Jacques Kvam # Copyright (c) 2017 ttenhoeve-aa @@ -52,6 +52,7 @@ # Copyright (c) 2020 Gabriel R Sezefredo # Copyright (c) 2020 Benny # Copyright (c) 2020 Anubhav <35621759+anubh-v@users.noreply.github.com> +# Copyright (c) 2021 Andreas Finkler # Copyright (c) 2021 Marc Mueller <30130371+cdce8p@users.noreply.github.com> # Copyright (c) 2021 Or Bahari diff --git a/pylint/checkers/classes.py b/pylint/checkers/classes.py index e4c1151ff3..66825d4493 100644 --- a/pylint/checkers/classes.py +++ b/pylint/checkers/classes.py @@ -33,8 +33,9 @@ # Copyright (c) 2019 Andrzej Klajnert # Copyright (c) 2019 Pascal Corpet # Copyright (c) 2020 GergelyKalmar -# 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 +# 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 3193cf6834..d83bc55a93 100644 --- a/pylint/checkers/format.py +++ b/pylint/checkers/format.py @@ -36,6 +36,7 @@ # Copyright (c) 2019 Nick Drozd # Copyright (c) 2019 Hugo van Kemenade # Copyright (c) 2020 Raphael Gaschignard +# 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 070abbc941..4ae912f4f5 100644 --- a/pylint/checkers/misc.py +++ b/pylint/checkers/misc.py @@ -16,6 +16,7 @@ # Copyright (c) 2020 wtracy # Copyright (c) 2020 Anthony Sottile # Copyright (c) 2020 Benny +# 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 d9e438466d..5878da737a 100644 --- a/pylint/checkers/raw_metrics.py +++ b/pylint/checkers/raw_metrics.py @@ -7,7 +7,7 @@ # Copyright (c) 2016 Glenn Matthews # Copyright (c) 2018 ssolanki # Copyright (c) 2019-2021 Pierre Sassoulas -# Copyright (c) 2020 hippo91 +# Copyright (c) 2020-2021 hippo91 # 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 e15c0f0320..8f6ae11a0b 100644 --- a/pylint/checkers/similar.py +++ b/pylint/checkers/similar.py @@ -14,7 +14,7 @@ # Copyright (c) 2019 Hugo van Kemenade # Copyright (c) 2019 Taewon D. Kim # Copyright (c) 2020 Frank Harrison -# Copyright (c) 2020 Eli Fine +# Copyright (c) 2020 Eli Fine # Copyright (c) 2020 hippo91 # Copyright (c) 2020 Shiv Venkatasubrahmanyam diff --git a/pylint/checkers/spelling.py b/pylint/checkers/spelling.py index 49c5119902..dfa1d7738c 100644 --- a/pylint/checkers/spelling.py +++ b/pylint/checkers/spelling.py @@ -17,6 +17,7 @@ # Copyright (c) 2020 Ganden Schaffner # Copyright (c) 2020 hippo91 # Copyright (c) 2020 Damien Baty +# Copyright (c) 2021 Andreas Finkler # Copyright (c) 2021 Eli Fine # 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 f2a2ac2c91..2a2d269933 100644 --- a/pylint/checkers/stdlib.py +++ b/pylint/checkers/stdlib.py @@ -26,7 +26,7 @@ # Copyright (c) 2020 hippo91 # Copyright (c) 2020 谭九鼎 <109224573@qq.com> # Copyright (c) 2020 Anthony Sottile -# Copyright (c) 2021 Matus Valo +# Copyright (c) 2021 Matus Valo # 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 c611ae2f08..de5075af7b 100644 --- a/pylint/checkers/variables.py +++ b/pylint/checkers/variables.py @@ -39,6 +39,7 @@ # Copyright (c) 2020 Andrew Simmons # Copyright (c) 2020 Anthony Sottile # Copyright (c) 2020 Ashley Whetter +# 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 diff --git a/pylint/epylint.py b/pylint/epylint.py index 9d3dbb54c2..12f541c7af 100755 --- a/pylint/epylint.py +++ b/pylint/epylint.py @@ -20,6 +20,7 @@ # Copyright (c) 2019 Hugo van Kemenade # Copyright (c) 2020 Damien Baty # Copyright (c) 2020 Anthony Sottile +# Copyright (c) 2021 Andreas Finkler # 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 4379b348d0..9c6b73ee4a 100644 --- a/pylint/extensions/comparetozero.py +++ b/pylint/extensions/comparetozero.py @@ -3,6 +3,7 @@ # Copyright (c) 2019, 2021 Pierre Sassoulas # Copyright (c) 2020 hippo91 # Copyright (c) 2020 Anthony Sottile +# Copyright (c) 2021 bernie gray # 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 70222b7783..07b6c4ac47 100644 --- a/pylint/extensions/confusing_elif.py +++ b/pylint/extensions/confusing_elif.py @@ -1,3 +1,4 @@ +# Copyright (c) 2021 Pierre Sassoulas # Copyright (c) 2021 Andreas Finkler # 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 3c4bbcef1f..366206a376 100644 --- a/pylint/graph.py +++ b/pylint/graph.py @@ -8,6 +8,7 @@ # Copyright (c) 2020 Damien Baty # Copyright (c) 2020 谭九鼎 <109224573@qq.com> # Copyright (c) 2020 Benjamin Graham +# Copyright (c) 2021 Andreas Finkler # Copyright (c) 2021 Andrew Howe # 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 3102fdda66..0d80bb9ca6 100644 --- a/pylint/pyreverse/writer.py +++ b/pylint/pyreverse/writer.py @@ -8,6 +8,7 @@ # Copyright (c) 2018 ssolanki # Copyright (c) 2019-2021 Pierre Sassoulas # Copyright (c) 2019 Kylian +# Copyright (c) 2021 Andreas Finkler # Copyright (c) 2021 Mark Byrne # 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 1830ab839d..948e5d5ce5 100644 --- a/pylint/utils/__init__.py +++ b/pylint/utils/__init__.py @@ -19,7 +19,7 @@ # Copyright (c) 2016 Ashley Whetter # Copyright (c) 2016 xmo-odoo # Copyright (c) 2017-2021 Pierre Sassoulas -# Copyright (c) 2017-2018, 2020 hippo91 +# Copyright (c) 2017-2018, 2020-2021 hippo91 # Copyright (c) 2017, 2020 Anthony Sottile # Copyright (c) 2017-2018 Bryce Guinta # Copyright (c) 2017 Chris Lamb diff --git a/tests/checkers/unittest_format.py b/tests/checkers/unittest_format.py index a2aa4687f9..8d1c9077d1 100644 --- a/tests/checkers/unittest_format.py +++ b/tests/checkers/unittest_format.py @@ -19,6 +19,7 @@ # Copyright (c) 2019 Hugo van Kemenade # Copyright (c) 2019 Ashley Whetter # Copyright (c) 2020 hippo91 +# Copyright (c) 2021 Andreas Finkler # 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 510dd64afd..01b2bab6e7 100644 --- a/tests/checkers/unittest_similar.py +++ b/tests/checkers/unittest_similar.py @@ -10,7 +10,7 @@ # Copyright (c) 2019 Ashley Whetter # Copyright (c) 2019 Taewon D. Kim # Copyright (c) 2020 Frank Harrison -# Copyright (c) 2020 Eli Fine +# Copyright (c) 2020 Eli Fine # Copyright (c) 2020 hippo91 # 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 176ae34dbb..009ec21d35 100644 --- a/tests/checkers/unittest_spelling.py +++ b/tests/checkers/unittest_spelling.py @@ -10,6 +10,7 @@ # Copyright (c) 2019 agutole # Copyright (c) 2020 Ganden Schaffner # Copyright (c) 2020 hippo91 +# Copyright (c) 2021 Eli Fine # 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 f45589e854..131e908a20 100644 --- a/tests/extensions/test_confusing_elif.py +++ b/tests/extensions/test_confusing_elif.py @@ -1,3 +1,4 @@ +# Copyright (c) 2021 Pierre Sassoulas # Copyright (c) 2021 Andreas Finkler # 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 a42ed1d076..59f302e9ab 100644 --- a/tests/test_self.py +++ b/tests/test_self.py @@ -24,6 +24,8 @@ # Copyright (c) 2020 Pieter Engelbrecht # Copyright (c) 2020 Clément Pit-Claudel # Copyright (c) 2020 Anthony Sottile +# Copyright (c) 2021 Andreas Finkler +# Copyright (c) 2021 chohner # Copyright (c) 2021 Marc Mueller <30130371+cdce8p@users.noreply.github.com> # Copyright (c) 2021 Louis Sautier