diff --git a/ChangeLog b/ChangeLog index 31a5609fa8..29228417a2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,15 +3,27 @@ Pylint's ChangeLog ------------------ -What's New in Pylint 2.10.0? +What's New in Pylint 2.11.0? ============================ Release date: TBA .. - Put new features here and also in 'doc/whatsnew/2.10.rst' + Put new features here and also in 'doc/whatsnew/2.11.rst' + + +What's New in Pylint 2.10.1? +============================ +Release date: TBA + .. Put bug fixes that should not wait for a new minor version here + + +What's New in Pylint 2.10.0? +============================ +Release date: 2021-08-20 + * pyreverse: add option to produce colored output. Closes #4488 diff --git a/doc/release.md b/doc/release.md index 462c9512a7..0854464af9 100644 --- a/doc/release.md +++ b/doc/release.md @@ -46,7 +46,7 @@ issue labelled as blocker. - Close milestone `X.Y.Z` - Create the milestones for `X.Y.Z+1`, (or `X.Y+1.0`, and `X+1.0.0` if applicable) -#### Whatsnew +#### What's new If it's a minor release, create a new `What's new in Pylint X.Y+1` document. Add it to `doc/index.rst`. Take a look at the examples from `doc/whatsnew`. diff --git a/doc/whatsnew/2.10.rst b/doc/whatsnew/2.10.rst index becc9be44e..85cba1c3fe 100644 --- a/doc/whatsnew/2.10.rst +++ b/doc/whatsnew/2.10.rst @@ -3,11 +3,28 @@ *************************** :Release: 2.10 -:Date: TBA +:Date: 2021-08-20 Summary -- Release highlights ============================= +In 2.10, we added several new default check, like ``unspecified-encoding``, ``forgotten-debug-statement`` or +``use-dict-literal``. There's also a few opinionated optional one. You can now forbid while loop or +profess your exclusive love of ternary expressions publicly. We promise you hours of arguing fun with +your whole team if you add those to your configuration. + +We've also fixed some long standing bugs, false positives, or missing options like ``ignore-signature`` that +will now work on inner function's signatures. + +A new option to disable the next line, ``disable-next``, has been added. It's also possible to export +colored diagrams, and plantuml diagram using pyreverse. ``PYLINT_HOME`` is now ``XDG_CACHE_HOME`` if not set. + +The performance of the similarity checker has been improved, as well as several small performance fixes. + +We're going to continue working on improving performance during 2.11. We're also going to finalize +a new ``possible-forgotten-f-prefix`` check that had too much false positives at release time. Check +https://github.com/PyCQA/pylint/pull/4787 if you want to provide knowledge or use case :) + New checkers ============ @@ -24,20 +41,20 @@ New checkers Closes #4365 -* Added optional extension ``consider-ternary-expression``: Emitted whenever a variable is assigned in both branches of an if/else block. +* Added ``forgotten-debug-statement``: Emitted when ``breakpoint``, ``pdb.set_trace`` or ``sys.breakpointhook`` calls are found - Closes # 4366 + Closes #3692 -* Added optional extension ``while-used``: Emitted whenever a ``while`` loop is used. +* Added ``use-sequence-for-iteration``: Emitted when iterating over an in-place defined ``set``. - Closes # 4367 -* Added ``forgotten-debug-statement``: Emitted when ``breakpoint``, ``pdb.set_trace`` or ``sys.breakpointhook`` calls are found +* Added ``format-string-without-interpolation`` checker: Emitted when formatting is applied to a string without any variables to be replaced - Closes #3692 + Closes #4042 -* Added ``use-sequence-for-iteration``: Emitted when iterating over an in-place defined ``set``. +* Added ``redundant-u-string-prefix`` checker: Emitted when the u prefix is added to a string + Closes #4102 Extensions ========== @@ -48,6 +65,13 @@ Extensions * Emit ``consider-using-tuple`` even if list contains a ``starred`` expression. +* Added optional extension ``consider-ternary-expression``: Emitted whenever a variable is assigned in both branches of an if/else block. + + Closes # 4366 + +* Added optional extension ``while-used``: Emitted whenever a ``while`` loop is used. + + Closes # 4367 Other Changes ============= @@ -97,14 +121,6 @@ Other Changes Closes #1682 -* Added ``format-string-without-interpolation`` checker: Emitted when formatting is applied to a string without any variables to be replaced - - Closes #4042 - -* Added ``redundant-u-string-prefix`` checker: Emitted when the u prefix is added to a string - - Closes #4102 - * Fixed ``cell-var-from-loop`` checker: handle cell variables in comprehensions within functions, and function default argument expressions. Also handle basic variable shadowing. diff --git a/pylint/__pkginfo__.py b/pylint/__pkginfo__.py index 7afafb6c36..29e94f2269 100644 --- a/pylint/__pkginfo__.py +++ b/pylint/__pkginfo__.py @@ -2,7 +2,7 @@ # For details: https://github.com/PyCQA/pylint/blob/main/LICENSE from typing import Tuple -__version__ = "2.10.0-dev0" +__version__ = "2.10.0" def get_numversion_from_version(v: str) -> Tuple: diff --git a/pylint/checkers/base.py b/pylint/checkers/base.py index 7114d7bd42..4422ab3360 100644 --- a/pylint/checkers/base.py +++ b/pylint/checkers/base.py @@ -24,7 +24,7 @@ # Copyright (c) 2017 danields # Copyright (c) 2017 Jacques Kvam # Copyright (c) 2017 ttenhoeve-aa -# Copyright (c) 2018-2019 Nick Drozd +# Copyright (c) 2018-2019, 2021 Nick Drozd # Copyright (c) 2018-2019 Ville Skyttä # Copyright (c) 2018 Sergei Lebedev <185856+superbobry@users.noreply.github.com> # Copyright (c) 2018 Lucas Cimon diff --git a/pylint/checkers/classes.py b/pylint/checkers/classes.py index f2fc159fea..92395114b6 100644 --- a/pylint/checkers/classes.py +++ b/pylint/checkers/classes.py @@ -33,9 +33,9 @@ # Copyright (c) 2019 Andrzej Klajnert # Copyright (c) 2019 Pascal Corpet # Copyright (c) 2020 GergelyKalmar -# Copyright (c) 2021 Yu Shao, Pang # Copyright (c) 2021 Marc Mueller <30130371+cdce8p@users.noreply.github.com> # Copyright (c) 2021 yushao2 <36848472+yushao2@users.noreply.github.com> +# Copyright (c) 2021 Yu Shao, Pang # Copyright (c) 2021 Konstantina Saketou <56515303+ksaketou@users.noreply.github.com> # Copyright (c) 2021 James Sinclair # Copyright (c) 2021 tiagohonorato <61059243+tiagohonorato@users.noreply.github.com> diff --git a/pylint/checkers/design_analysis.py b/pylint/checkers/design_analysis.py index 26cd77cc52..de4099d4c4 100644 --- a/pylint/checkers/design_analysis.py +++ b/pylint/checkers/design_analysis.py @@ -15,6 +15,7 @@ # Copyright (c) 2019 Michael Scott Cuthbert # Copyright (c) 2020 hippo91 # Copyright (c) 2020 Anthony Sottile +# Copyright (c) 2021 Rebecca Turner # Copyright (c) 2021 Marc Mueller <30130371+cdce8p@users.noreply.github.com> # Copyright (c) 2021 yushao2 <36848472+yushao2@users.noreply.github.com> diff --git a/pylint/checkers/format.py b/pylint/checkers/format.py index ea7678230b..901259c3ab 100644 --- a/pylint/checkers/format.py +++ b/pylint/checkers/format.py @@ -36,8 +36,8 @@ # Copyright (c) 2019 Nick Drozd # Copyright (c) 2019 Hugo van Kemenade # Copyright (c) 2020 Raphael Gaschignard +# Copyright (c) 2021 Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> # Copyright (c) 2021 Marc Mueller <30130371+cdce8p@users.noreply.github.com> -# Copyright (c) 2021 Daniel van Noord <13665637+DanielNoord@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/main/LICENSE diff --git a/pylint/checkers/imports.py b/pylint/checkers/imports.py index 63d68eb744..5cae080434 100644 --- a/pylint/checkers/imports.py +++ b/pylint/checkers/imports.py @@ -26,8 +26,8 @@ # Copyright (c) 2018 Mike Frysinger # Copyright (c) 2018 Sushobhit <31987769+sushobhit27@users.noreply.github.com> # Copyright (c) 2018 Marianna Polatoglou +# Copyright (c) 2019, 2021 Nick Drozd # Copyright (c) 2019-2021 Pierre Sassoulas -# Copyright (c) 2019 Nick Drozd # Copyright (c) 2019 Hugo van Kemenade # Copyright (c) 2019 Nick Smith # Copyright (c) 2019 Paul Renvoisé diff --git a/pylint/checkers/misc.py b/pylint/checkers/misc.py index 18ecfe5662..4fd9ffd9c0 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 Nick Drozd # Copyright (c) 2021 Marc Mueller <30130371+cdce8p@users.noreply.github.com> # Copyright (c) 2021 Konstantina Saketou <56515303+ksaketou@users.noreply.github.com> diff --git a/pylint/checkers/similar.py b/pylint/checkers/similar.py index e9792ebebf..215b816b22 100644 --- a/pylint/checkers/similar.py +++ b/pylint/checkers/similar.py @@ -13,12 +13,13 @@ # Copyright (c) 2019, 2021 Pierre Sassoulas # Copyright (c) 2019 Hugo van Kemenade # Copyright (c) 2019 Taewon D. Kim +# Copyright (c) 2020-2021 hippo91 # Copyright (c) 2020 Frank Harrison # Copyright (c) 2020 Eli Fine -# Copyright (c) 2020 hippo91 # Copyright (c) 2020 Shiv Venkatasubrahmanyam -# Copyright (c) 2021 Maksym Humetskyi # Copyright (c) 2021 Marc Mueller <30130371+cdce8p@users.noreply.github.com> +# Copyright (c) 2021 Maksym Humetskyi +# Copyright (c) 2021 Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> # Copyright (c) 2021 bot # Copyright (c) 2021 Aditya Gupta diff --git a/pylint/checkers/spelling.py b/pylint/checkers/spelling.py index 1b0a7f653b..16685272f0 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 Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> # Copyright (c) 2021 Marc Mueller <30130371+cdce8p@users.noreply.github.com> # Copyright (c) 2021 bot # Copyright (c) 2021 Andreas Finkler diff --git a/pylint/checkers/stdlib.py b/pylint/checkers/stdlib.py index 4cdfd43361..cffc8a4d55 100644 --- a/pylint/checkers/stdlib.py +++ b/pylint/checkers/stdlib.py @@ -26,11 +26,11 @@ # Copyright (c) 2020 hippo91 # Copyright (c) 2020 谭九鼎 <109224573@qq.com> # Copyright (c) 2020 Anthony Sottile -# Copyright (c) 2021 Yilei "Dolee" Yang # Copyright (c) 2021 Marc Mueller <30130371+cdce8p@users.noreply.github.com> +# Copyright (c) 2021 Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> +# Copyright (c) 2021 Yilei "Dolee" Yang # Copyright (c) 2021 Matus Valo # Copyright (c) 2021 victor <16359131+jiajunsu@users.noreply.github.com> -# Copyright (c) 2021 Daniel van Noord <13665637+DanielNoord@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/main/LICENSE diff --git a/pylint/checkers/strings.py b/pylint/checkers/strings.py index a0944825ea..666ffb3c67 100644 --- a/pylint/checkers/strings.py +++ b/pylint/checkers/strings.py @@ -25,6 +25,7 @@ # Copyright (c) 2020 谭九鼎 <109224573@qq.com> # Copyright (c) 2020 Anthony # Copyright (c) 2021 Marc Mueller <30130371+cdce8p@users.noreply.github.com> +# Copyright (c) 2021 Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> # Copyright (c) 2021 Peter Kolbus diff --git a/pylint/checkers/typecheck.py b/pylint/checkers/typecheck.py index e35616f3f4..749428376a 100644 --- a/pylint/checkers/typecheck.py +++ b/pylint/checkers/typecheck.py @@ -20,7 +20,7 @@ # Copyright (c) 2017 Łukasz Rogalski # Copyright (c) 2017 Derek Gustafson # Copyright (c) 2017 Ville Skyttä -# Copyright (c) 2018-2019 Nick Drozd +# Copyright (c) 2018-2019, 2021 Nick Drozd # Copyright (c) 2018 Pablo Galindo # Copyright (c) 2018 Jim Robertson # Copyright (c) 2018 Lucas Cimon @@ -42,8 +42,9 @@ # Copyright (c) 2020 Ram Rachum # Copyright (c) 2020 Anthony Sottile # Copyright (c) 2020 Anubhav <35621759+anubh-v@users.noreply.github.com> -# Copyright (c) 2021 doranid +# Copyright (c) 2021 David Liu # Copyright (c) 2021 Marc Mueller <30130371+cdce8p@users.noreply.github.com> +# Copyright (c) 2021 doranid # Copyright (c) 2021 yushao2 <36848472+yushao2@users.noreply.github.com> # Copyright (c) 2021 Andrew Haigh # Copyright (c) 2021 Jens H. Nielsen diff --git a/pylint/checkers/utils.py b/pylint/checkers/utils.py index 4a7d3600b4..05f69401c9 100644 --- a/pylint/checkers/utils.py +++ b/pylint/checkers/utils.py @@ -42,6 +42,9 @@ # Copyright (c) 2020 Slavfox # Copyright (c) 2020 Anthony Sottile # Copyright (c) 2021 Marc Mueller <30130371+cdce8p@users.noreply.github.com> +# Copyright (c) 2021 Nick Drozd +# Copyright (c) 2021 David Liu +# Copyright (c) 2021 Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> # Copyright (c) 2021 Matus Valo # Copyright (c) 2021 Lorena B <46202743+lorena-b@users.noreply.github.com> # Copyright (c) 2021 yushao2 <36848472+yushao2@users.noreply.github.com> diff --git a/pylint/checkers/variables.py b/pylint/checkers/variables.py index b51fd5ce57..ab5d04d7c8 100644 --- a/pylint/checkers/variables.py +++ b/pylint/checkers/variables.py @@ -39,8 +39,10 @@ # Copyright (c) 2020 Andrew Simmons # Copyright (c) 2020 Anthony Sottile # Copyright (c) 2020 Ashley Whetter -# Copyright (c) 2021 Marcin Kurczewski # Copyright (c) 2021 Marc Mueller <30130371+cdce8p@users.noreply.github.com> +# Copyright (c) 2021 David Liu +# Copyright (c) 2021 kasium <15907922+kasium@users.noreply.github.com> +# Copyright (c) 2021 Marcin Kurczewski # Copyright (c) 2021 Sergei Lebedev <185856+superbobry@users.noreply.github.com> # Copyright (c) 2021 Lorena B <46202743+lorena-b@users.noreply.github.com> # Copyright (c) 2021 haasea <44787650+haasea@users.noreply.github.com> diff --git a/pylint/config/__init__.py b/pylint/config/__init__.py index 6bdd5a82dd..01c3e671e7 100644 --- a/pylint/config/__init__.py +++ b/pylint/config/__init__.py @@ -27,6 +27,8 @@ # Copyright (c) 2019 Janne Rönkkö # Copyright (c) 2019 Ashley Whetter # Copyright (c) 2019 Hugo van Kemenade +# Copyright (c) 2021 Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> +# Copyright (c) 2021 Eisuke Kawashima # 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/epylint.py b/pylint/epylint.py index 76a2f2b3dc..59028864f5 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 Nick Drozd # Copyright (c) 2021 Marc Mueller <30130371+cdce8p@users.noreply.github.com> # Copyright (c) 2021 Andreas Finkler diff --git a/pylint/exceptions.py b/pylint/exceptions.py index 68d03b269a..f4c0fda0ee 100644 --- a/pylint/exceptions.py +++ b/pylint/exceptions.py @@ -5,6 +5,7 @@ # Copyright (c) 2019 Thomas Hisch # Copyright (c) 2020 hippo91 # Copyright (c) 2020 Anthony Sottile +# Copyright (c) 2021 Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> # Copyright (c) 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/extensions/_check_docs_utils.py b/pylint/extensions/_check_docs_utils.py index d41988414c..597010ad83 100644 --- a/pylint/extensions/_check_docs_utils.py +++ b/pylint/extensions/_check_docs_utils.py @@ -13,8 +13,8 @@ # Copyright (c) 2019 Hugo van Kemenade # Copyright (c) 2019 Danny Hermes # Copyright (c) 2019 Zeb Nicholls -# Copyright (c) 2021 Pierre Sassoulas # Copyright (c) 2021 Marc Mueller <30130371+cdce8p@users.noreply.github.com> +# Copyright (c) 2021 Pierre Sassoulas # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html # For details: https://github.com/PyCQA/pylint/blob/main/LICENSE diff --git a/pylint/extensions/bad_builtin.py b/pylint/extensions/bad_builtin.py index 05e05e2acb..ad5d3120ac 100644 --- a/pylint/extensions/bad_builtin.py +++ b/pylint/extensions/bad_builtin.py @@ -3,6 +3,7 @@ # Copyright (c) 2019 Hugo van Kemenade # Copyright (c) 2020 Peter Kolbus # Copyright (c) 2020 hippo91 +# Copyright (c) 2021 Nick Drozd # 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/extensions/confusing_elif.py b/pylint/extensions/confusing_elif.py index 418aad6004..987dd2b9c2 100644 --- a/pylint/extensions/confusing_elif.py +++ b/pylint/extensions/confusing_elif.py @@ -1,5 +1,5 @@ -# Copyright (c) 2021 Pierre Sassoulas # Copyright (c) 2021 Marc Mueller <30130371+cdce8p@users.noreply.github.com> +# 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/pyreverse/diagrams.py b/pylint/pyreverse/diagrams.py index 372911a751..6160fb48c4 100644 --- a/pylint/pyreverse/diagrams.py +++ b/pylint/pyreverse/diagrams.py @@ -7,6 +7,7 @@ # Copyright (c) 2019-2021 Pierre Sassoulas # Copyright (c) 2020 hippo91 # Copyright (c) 2021 Marc Mueller <30130371+cdce8p@users.noreply.github.com> +# Copyright (c) 2021 Andreas Finkler # Copyright (c) 2021 Mark Byrne <31762852+mbyrnepr2@users.noreply.github.com> # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html diff --git a/pylint/pyreverse/dot_printer.py b/pylint/pyreverse/dot_printer.py index 4ff1e3de81..09852e598f 100644 --- a/pylint/pyreverse/dot_printer.py +++ b/pylint/pyreverse/dot_printer.py @@ -1,3 +1,5 @@ +# Copyright (c) 2021 Nick Drozd +# Copyright (c) 2021 Marc Mueller <30130371+cdce8p@users.noreply.github.com> # Copyright (c) 2021 Andreas Finkler # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html diff --git a/pylint/pyreverse/inspector.py b/pylint/pyreverse/inspector.py index 8ba828b17c..7a07492436 100644 --- a/pylint/pyreverse/inspector.py +++ b/pylint/pyreverse/inspector.py @@ -7,6 +7,7 @@ # Copyright (c) 2020 hippo91 # Copyright (c) 2020 Anthony Sottile # Copyright (c) 2021 Marc Mueller <30130371+cdce8p@users.noreply.github.com> +# Copyright (c) 2021 Nick Drozd # Copyright (c) 2021 Mark Byrne <31762852+mbyrnepr2@users.noreply.github.com> # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html diff --git a/pylint/pyreverse/main.py b/pylint/pyreverse/main.py index 1057e9ce58..601e672528 100644 --- a/pylint/pyreverse/main.py +++ b/pylint/pyreverse/main.py @@ -9,9 +9,9 @@ # Copyright (c) 2019 Hugo van Kemenade # Copyright (c) 2020 Peter Kolbus # Copyright (c) 2020 hippo91 +# Copyright (c) 2021 Andreas Finkler # Copyright (c) 2021 Marc Mueller <30130371+cdce8p@users.noreply.github.com> # Copyright (c) 2021 Mark Byrne <31762852+mbyrnepr2@users.noreply.github.com> -# 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/main/LICENSE diff --git a/pylint/pyreverse/printer.py b/pylint/pyreverse/printer.py index f7a0d56d38..7d4236026d 100644 --- a/pylint/pyreverse/printer.py +++ b/pylint/pyreverse/printer.py @@ -1,3 +1,4 @@ +# Copyright (c) 2021 Marc Mueller <30130371+cdce8p@users.noreply.github.com> # Copyright (c) 2021 Andreas Finkler # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html diff --git a/pylint/pyreverse/utils.py b/pylint/pyreverse/utils.py index 220a624d94..b68073a26b 100644 --- a/pylint/pyreverse/utils.py +++ b/pylint/pyreverse/utils.py @@ -13,6 +13,7 @@ # Copyright (c) 2021 Marc Mueller <30130371+cdce8p@users.noreply.github.com> # Copyright (c) 2021 Mark Byrne <31762852+mbyrnepr2@users.noreply.github.com> # Copyright (c) 2021 Andreas Finkler +# Copyright (c) 2021 Daniël van Noord <13665637+DanielNoord@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/main/LICENSE diff --git a/pylint/pyreverse/vcg_printer.py b/pylint/pyreverse/vcg_printer.py index 8868443d20..ca8bf6d72b 100644 --- a/pylint/pyreverse/vcg_printer.py +++ b/pylint/pyreverse/vcg_printer.py @@ -6,8 +6,8 @@ # Copyright (c) 2020 Ram Rachum # Copyright (c) 2020 谭九鼎 <109224573@qq.com> # Copyright (c) 2020 Anthony Sottile -# Copyright (c) 2021 Marc Mueller <30130371+cdce8p@users.noreply.github.com> # Copyright (c) 2021 Andreas Finkler +# 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/main/LICENSE diff --git a/pylint/pyreverse/writer.py b/pylint/pyreverse/writer.py index bf31c1f9ba..fa2ce18362 100644 --- a/pylint/pyreverse/writer.py +++ b/pylint/pyreverse/writer.py @@ -9,8 +9,9 @@ # Copyright (c) 2019-2021 Pierre Sassoulas # Copyright (c) 2019 Kylian # Copyright (c) 2021 Marc Mueller <30130371+cdce8p@users.noreply.github.com> -# Copyright (c) 2021 Mark Byrne <31762852+mbyrnepr2@users.noreply.github.com> # Copyright (c) 2021 Andreas Finkler +# Copyright (c) 2021 Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> +# Copyright (c) 2021 Mark Byrne <31762852+mbyrnepr2@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/main/LICENSE diff --git a/pylint/reporters/ureports/__init__.py b/pylint/reporters/ureports/__init__.py index 2b0a52c504..4126cf4ce6 100644 --- a/pylint/reporters/ureports/__init__.py +++ b/pylint/reporters/ureports/__init__.py @@ -4,6 +4,7 @@ # Copyright (c) 2018 Anthony Sottile # Copyright (c) 2019, 2021 Pierre Sassoulas # Copyright (c) 2020 hippo91 +# Copyright (c) 2021 Nick Drozd # 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/script/bump_changelog.py b/script/bump_changelog.py index 41c8c3c8a9..8d8225379d 100644 --- a/script/bump_changelog.py +++ b/script/bump_changelog.py @@ -75,9 +75,9 @@ def get_next_versions(version: str, version_type: VersionType) -> List[str]: def get_version_type(version: str) -> VersionType: - if version.endswith("0.0"): + if version.endswith(".0.0"): version_type = VersionType.MAJOR - elif version.endswith("0"): + elif version.endswith(".0"): version_type = VersionType.MINOR else: version_type = VersionType.PATCH diff --git a/tbump.toml b/tbump.toml index c41294e600..46f050b139 100644 --- a/tbump.toml +++ b/tbump.toml @@ -1,7 +1,7 @@ github_url = "https://github.com/PyCQA/pylint" [version] -current = "2.10.0-dev0" +current = "2.10.0" regex = ''' ^(?P0|[1-9]\d*) \. diff --git a/tests/checkers/unittest_design.py b/tests/checkers/unittest_design.py index e3d4519903..d3058225f2 100644 --- a/tests/checkers/unittest_design.py +++ b/tests/checkers/unittest_design.py @@ -1,4 +1,4 @@ -# Copyright (c) 2021 Rebecca Turner +# Copyright (c) 2021 Rebecca Turner # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html # For details: https://github.com/PyCQA/pylint/blob/main/LICENSE diff --git a/tests/checkers/unittest_format.py b/tests/checkers/unittest_format.py index 8cb07d2169..b84ce44386 100644 --- a/tests/checkers/unittest_format.py +++ b/tests/checkers/unittest_format.py @@ -19,9 +19,9 @@ # Copyright (c) 2019 Hugo van Kemenade # Copyright (c) 2019 Ashley Whetter # Copyright (c) 2020 hippo91 +# Copyright (c) 2021 Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> # Copyright (c) 2021 Marc Mueller <30130371+cdce8p@users.noreply.github.com> # Copyright (c) 2021 Andreas Finkler -# Copyright (c) 2021 Daniel van Noord <13665637+DanielNoord@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/main/LICENSE diff --git a/tests/checkers/unittest_similar.py b/tests/checkers/unittest_similar.py index 922fce6544..467033e62c 100644 --- a/tests/checkers/unittest_similar.py +++ b/tests/checkers/unittest_similar.py @@ -9,10 +9,11 @@ # Copyright (c) 2019-2021 Pierre Sassoulas # Copyright (c) 2019 Ashley Whetter # Copyright (c) 2019 Taewon D. Kim +# Copyright (c) 2020-2021 hippo91 # Copyright (c) 2020 Frank Harrison # Copyright (c) 2020 Eli Fine -# Copyright (c) 2020 hippo91 # Copyright (c) 2021 Maksym Humetskyi +# Copyright (c) 2021 Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> # Copyright (c) 2021 Marc Mueller <30130371+cdce8p@users.noreply.github.com> # Copyright (c) 2021 Aditya Gupta diff --git a/tests/checkers/unittest_typecheck.py b/tests/checkers/unittest_typecheck.py index 9c5acd398b..136d60fca1 100644 --- a/tests/checkers/unittest_typecheck.py +++ b/tests/checkers/unittest_typecheck.py @@ -17,6 +17,7 @@ # Copyright (c) 2020 hippo91 # Copyright (c) 2020 Damien Baty # Copyright (c) 2020 Anthony Sottile +# Copyright (c) 2021 David Liu # Copyright (c) 2021 Marc Mueller <30130371+cdce8p@users.noreply.github.com> # Copyright (c) 2021 David Gilman diff --git a/tests/lint/unittest_lint.py b/tests/lint/unittest_lint.py index 20c8a75004..8c8a1c550e 100644 --- a/tests/lint/unittest_lint.py +++ b/tests/lint/unittest_lint.py @@ -28,6 +28,9 @@ # Copyright (c) 2020 Martin Vielsmaier # Copyright (c) 2020 hippo91 # Copyright (c) 2020 Damien Baty +# Copyright (c) 2021 Michal Vasilek +# Copyright (c) 2021 Eisuke Kawashima +# Copyright (c) 2021 Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> # Copyright (c) 2021 Marc Mueller <30130371+cdce8p@users.noreply.github.com> # Copyright (c) 2021 Andreas Finkler diff --git a/tests/pyreverse/test_diadefs.py b/tests/pyreverse/test_diadefs.py index 4c994b5cb6..497e1eebee 100644 --- a/tests/pyreverse/test_diadefs.py +++ b/tests/pyreverse/test_diadefs.py @@ -11,6 +11,8 @@ # Copyright (c) 2020 Damien Baty # Copyright (c) 2020 Anthony Sottile # Copyright (c) 2021 Marc Mueller <30130371+cdce8p@users.noreply.github.com> +# Copyright (c) 2021 Andreas Finkler +# Copyright (c) 2021 Mark Byrne <31762852+mbyrnepr2@users.noreply.github.com> # Copyright (c) 2021 bot # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html diff --git a/tests/pyreverse/test_inspector.py b/tests/pyreverse/test_inspector.py index 3a04dfa0b4..0c8873f970 100644 --- a/tests/pyreverse/test_inspector.py +++ b/tests/pyreverse/test_inspector.py @@ -5,6 +5,8 @@ # Copyright (c) 2020 hippo91 # Copyright (c) 2020 Damien Baty # Copyright (c) 2021 Marc Mueller <30130371+cdce8p@users.noreply.github.com> +# Copyright (c) 2021 Andreas Finkler +# Copyright (c) 2021 Mark Byrne <31762852+mbyrnepr2@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/main/LICENSE diff --git a/tests/pyreverse/test_utils.py b/tests/pyreverse/test_utils.py index 85c2a0f865..6fe52d7db4 100644 --- a/tests/pyreverse/test_utils.py +++ b/tests/pyreverse/test_utils.py @@ -1,4 +1,5 @@ -# Copyright (c) 2021 Mark Byrne +# Copyright (c) 2021 Marc Mueller <30130371+cdce8p@users.noreply.github.com> +# Copyright (c) 2021 Mark Byrne <31762852+mbyrnepr2@users.noreply.github.com> # Copyright (c) 2021 Andreas Finkler # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html diff --git a/tests/pyreverse/test_writer.py b/tests/pyreverse/test_writer.py index 3b92ab39aa..66a150bbc3 100644 --- a/tests/pyreverse/test_writer.py +++ b/tests/pyreverse/test_writer.py @@ -9,9 +9,9 @@ # Copyright (c) 2019 Ashley Whetter # Copyright (c) 2020 hippo91 # Copyright (c) 2020 Anthony Sottile -# Copyright (c) 2021 Marc Mueller <30130371+cdce8p@users.noreply.github.com> -# Copyright (c) 2021 Mark Byrne <31762852+mbyrnepr2@users.noreply.github.com> # Copyright (c) 2021 Andreas Finkler +# Copyright (c) 2021 Mark Byrne <31762852+mbyrnepr2@users.noreply.github.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 # For details: https://github.com/PyCQA/pylint/blob/main/LICENSE diff --git a/tests/test_check_parallel.py b/tests/test_check_parallel.py index 931e5be308..79e373ee07 100644 --- a/tests/test_check_parallel.py +++ b/tests/test_check_parallel.py @@ -1,6 +1,7 @@ """Puts the check_parallel system under test""" # Copyright (c) 2020-2021 Pierre Sassoulas # Copyright (c) 2020 Frank Harrison +# Copyright (c) 2021 Julien Palard # 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/tests/test_func.py b/tests/test_func.py index 8742b42f96..0e093458aa 100644 --- a/tests/test_func.py +++ b/tests/test_func.py @@ -12,6 +12,7 @@ # Copyright (c) 2019 Ashley Whetter # Copyright (c) 2020 hippo91 # Copyright (c) 2020 Anthony Sottile +# Copyright (c) 2021 Daniël van Noord <13665637+DanielNoord@users.noreply.github.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/tests/test_functional.py b/tests/test_functional.py index 4ab7617388..5924af2705 100644 --- a/tests/test_functional.py +++ b/tests/test_functional.py @@ -15,6 +15,7 @@ # Copyright (c) 2020 Damien Baty # Copyright (c) 2020 Anthony Sottile # Copyright (c) 2020 bernie gray +# Copyright (c) 2021 Daniël van Noord <13665637+DanielNoord@users.noreply.github.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/tests/test_import_graph.py b/tests/test_import_graph.py index 07a0937591..b2061c0063 100644 --- a/tests/test_import_graph.py +++ b/tests/test_import_graph.py @@ -10,6 +10,7 @@ # Copyright (c) 2020 hippo91 # Copyright (c) 2020 Damien Baty # Copyright (c) 2020 Frank Harrison +# Copyright (c) 2021 Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> # Copyright (c) 2021 Marc Mueller <30130371+cdce8p@users.noreply.github.com> # Copyright (c) 2021 Andrew Howe diff --git a/tests/test_self.py b/tests/test_self.py index de63ebd6fb..a8877d6d34 100644 --- a/tests/test_self.py +++ b/tests/test_self.py @@ -24,6 +24,7 @@ # Copyright (c) 2020 Pieter Engelbrecht # Copyright (c) 2020 Clément Pit-Claudel # Copyright (c) 2020 Anthony Sottile +# Copyright (c) 2021 Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> # Copyright (c) 2021 Mark Bell # Copyright (c) 2021 Marc Mueller <30130371+cdce8p@users.noreply.github.com> # Copyright (c) 2021 Dr. Nick diff --git a/tests/unittest_reporting.py b/tests/unittest_reporting.py index 3946ec61d3..d1d483a359 100644 --- a/tests/unittest_reporting.py +++ b/tests/unittest_reporting.py @@ -9,6 +9,7 @@ # Copyright (c) 2019-2021 Pierre Sassoulas # Copyright (c) 2019 Ashley Whetter # Copyright (c) 2020 hippo91 +# Copyright (c) 2021 Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> # Copyright (c) 2021 Marc Mueller <30130371+cdce8p@users.noreply.github.com> # Copyright (c) 2021 ruro