diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 99cbcd198c..c824adc492 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,10 +6,6 @@ repos: exclude: "tests/functional/t/trailing_whitespaces.py" - id: end-of-file-fixer exclude: "tests/functional/m/missing/missing_final_newline.py|tests/functional/t/trailing_newlines.py" - - repo: https://github.com/asottile/setup-cfg-fmt - rev: v1.17.0 - hooks: - - id: setup-cfg-fmt - repo: https://github.com/myint/autoflake rev: v1.4 hooks: diff --git a/ChangeLog b/ChangeLog index a1fdaf8518..f35181c84b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -25,6 +25,8 @@ Release date: Undefined only contain ``__version__`` (also accessible with ``pylint.__version__``), other meta-information are still accessible with ``import importlib;metadata.metadata('pylint')``. +* COPYING has been renamed to LICENSE for standardization. + * Fix false-positive ``used-before-assignment`` in function returns. Closes #4301 diff --git a/COPYING b/LICENSE similarity index 100% rename from COPYING rename to LICENSE diff --git a/doc/exts/pylint_extensions.py b/doc/exts/pylint_extensions.py index c06c90e08f..824514be5e 100755 --- a/doc/exts/pylint_extensions.py +++ b/doc/exts/pylint_extensions.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """Script used to generate the extensions file before building the actual documentation.""" diff --git a/doc/exts/pylint_features.py b/doc/exts/pylint_features.py index c70c454aaf..e202f98809 100755 --- a/doc/exts/pylint_features.py +++ b/doc/exts/pylint_features.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """Script used to generate the features file before building the actual documentation.""" diff --git a/pylint/__init__.py b/pylint/__init__.py index e33904356b..b84259d819 100644 --- a/pylint/__init__.py +++ b/pylint/__init__.py @@ -7,7 +7,7 @@ # 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/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE import os import sys diff --git a/pylint/__main__.py b/pylint/__main__.py index 4d76537180..0415e32ac7 100644 --- a/pylint/__main__.py +++ b/pylint/__main__.py @@ -1,7 +1,7 @@ #!/usr/bin/env python # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE import pylint diff --git a/pylint/__pkginfo__.py b/pylint/__pkginfo__.py index 518a4657a6..887029357b 100644 --- a/pylint/__pkginfo__.py +++ b/pylint/__pkginfo__.py @@ -1,5 +1,5 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE from typing import Optional diff --git a/pylint/checkers/__init__.py b/pylint/checkers/__init__.py index 778b710f9e..3ba3b2c559 100644 --- a/pylint/checkers/__init__.py +++ b/pylint/checkers/__init__.py @@ -15,7 +15,7 @@ # 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/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """utilities methods and classes for checkers diff --git a/pylint/checkers/async.py b/pylint/checkers/async.py index 9fde4f551e..4dd019266c 100644 --- a/pylint/checkers/async.py +++ b/pylint/checkers/async.py @@ -4,7 +4,7 @@ # Copyright (c) 2020 hippo91 # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """Checker for anything related to the async protocol (PEP 492).""" diff --git a/pylint/checkers/base.py b/pylint/checkers/base.py index 9cf68083ab..0f641f7238 100644 --- a/pylint/checkers/base.py +++ b/pylint/checkers/base.py @@ -56,7 +56,7 @@ # Copyright (c) 2021 Or Bahari # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """basic checker for Python code""" import builtins diff --git a/pylint/checkers/base_checker.py b/pylint/checkers/base_checker.py index 1c5c57c49d..0ef186f66f 100644 --- a/pylint/checkers/base_checker.py +++ b/pylint/checkers/base_checker.py @@ -13,7 +13,7 @@ # Copyright (c) 2020 hippo91 # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE import functools from inspect import cleandoc from typing import Any diff --git a/pylint/checkers/classes.py b/pylint/checkers/classes.py index 40390afbb2..e4c1151ff3 100644 --- a/pylint/checkers/classes.py +++ b/pylint/checkers/classes.py @@ -37,7 +37,7 @@ # 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/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """classes checker for Python code """ diff --git a/pylint/checkers/deprecated.py b/pylint/checkers/deprecated.py index 8aaa025068..74ee5db838 100644 --- a/pylint/checkers/deprecated.py +++ b/pylint/checkers/deprecated.py @@ -1,5 +1,5 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """Checker mixin for deprecated functionality.""" from itertools import chain diff --git a/pylint/checkers/design_analysis.py b/pylint/checkers/design_analysis.py index e41b78ae4a..bdb35437c5 100644 --- a/pylint/checkers/design_analysis.py +++ b/pylint/checkers/design_analysis.py @@ -18,7 +18,7 @@ # 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/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """check for signs of poor design""" diff --git a/pylint/checkers/exceptions.py b/pylint/checkers/exceptions.py index 3993c65c00..981cb90524 100644 --- a/pylint/checkers/exceptions.py +++ b/pylint/checkers/exceptions.py @@ -28,7 +28,7 @@ # Copyright (c) 2020 Anthony Sottile # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """Checks for various exception related errors.""" import builtins diff --git a/pylint/checkers/format.py b/pylint/checkers/format.py index 170253f435..3193cf6834 100644 --- a/pylint/checkers/format.py +++ b/pylint/checkers/format.py @@ -38,7 +38,7 @@ # Copyright (c) 2020 Raphael Gaschignard # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """Python code format's checker. diff --git a/pylint/checkers/imports.py b/pylint/checkers/imports.py index 0b83c6ea92..a9f03545c9 100644 --- a/pylint/checkers/imports.py +++ b/pylint/checkers/imports.py @@ -38,7 +38,7 @@ # 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/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """imports checkers for Python code""" diff --git a/pylint/checkers/logging.py b/pylint/checkers/logging.py index 852c47370e..932130e0e7 100644 --- a/pylint/checkers/logging.py +++ b/pylint/checkers/logging.py @@ -18,7 +18,7 @@ # Copyright (c) 2019 Svet # Copyright (c) 2020 Anthony Sottile # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """checker for use of Python logging """ diff --git a/pylint/checkers/mapreduce_checker.py b/pylint/checkers/mapreduce_checker.py index a9dfca5080..65b12c31de 100644 --- a/pylint/checkers/mapreduce_checker.py +++ b/pylint/checkers/mapreduce_checker.py @@ -2,7 +2,7 @@ # 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/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE import abc diff --git a/pylint/checkers/misc.py b/pylint/checkers/misc.py index 26cb00a9cf..070abbc941 100644 --- a/pylint/checkers/misc.py +++ b/pylint/checkers/misc.py @@ -19,7 +19,7 @@ # 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 -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """Check source code is ascii only or has an encoding declaration (PEP 263)""" diff --git a/pylint/checkers/newstyle.py b/pylint/checkers/newstyle.py index 3f930e96e4..49eebadeb5 100644 --- a/pylint/checkers/newstyle.py +++ b/pylint/checkers/newstyle.py @@ -16,7 +16,7 @@ # Copyright (c) 2020 hippo91 # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """check for new / old style related problems """ diff --git a/pylint/checkers/python3.py b/pylint/checkers/python3.py index 96a9152de7..935a6ac972 100644 --- a/pylint/checkers/python3.py +++ b/pylint/checkers/python3.py @@ -35,7 +35,7 @@ # Copyright (c) 2021 Tiago Honorato # 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/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """Check Python 2 code for Python 2/3 source-compatible issues.""" import itertools diff --git a/pylint/checkers/raw_metrics.py b/pylint/checkers/raw_metrics.py index 0bdd20f695..d9e438466d 100644 --- a/pylint/checkers/raw_metrics.py +++ b/pylint/checkers/raw_metrics.py @@ -11,7 +11,7 @@ # Copyright (c) 2020 谭九鼎 <109224573@qq.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/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE import tokenize from typing import Any diff --git a/pylint/checkers/refactoring/__init__.py b/pylint/checkers/refactoring/__init__.py index e6b87ec65d..4f30084cca 100644 --- a/pylint/checkers/refactoring/__init__.py +++ b/pylint/checkers/refactoring/__init__.py @@ -31,7 +31,7 @@ # Copyright (c) 2020 Anthony Sottile # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """Looks for code which can be refactored.""" diff --git a/pylint/checkers/refactoring/len_checker.py b/pylint/checkers/refactoring/len_checker.py index a5897915c7..9ee7760bed 100644 --- a/pylint/checkers/refactoring/len_checker.py +++ b/pylint/checkers/refactoring/len_checker.py @@ -1,5 +1,5 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE from typing import List import astroid diff --git a/pylint/checkers/refactoring/not_checker.py b/pylint/checkers/refactoring/not_checker.py index 48592c1b53..ea3bae30f1 100644 --- a/pylint/checkers/refactoring/not_checker.py +++ b/pylint/checkers/refactoring/not_checker.py @@ -1,5 +1,5 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE import builtins diff --git a/pylint/checkers/refactoring/recommendation_checker.py b/pylint/checkers/refactoring/recommendation_checker.py index 062cda8827..b1175f03e0 100644 --- a/pylint/checkers/refactoring/recommendation_checker.py +++ b/pylint/checkers/refactoring/recommendation_checker.py @@ -1,5 +1,5 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE import astroid diff --git a/pylint/checkers/refactoring/refactoring_checker.py b/pylint/checkers/refactoring/refactoring_checker.py index b1db895811..a95bed97b6 100644 --- a/pylint/checkers/refactoring/refactoring_checker.py +++ b/pylint/checkers/refactoring/refactoring_checker.py @@ -1,5 +1,5 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE import collections import copy diff --git a/pylint/checkers/similar.py b/pylint/checkers/similar.py index b594a032c0..e15c0f0320 100644 --- a/pylint/checkers/similar.py +++ b/pylint/checkers/similar.py @@ -19,7 +19,7 @@ # Copyright (c) 2020 Shiv Venkatasubrahmanyam # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE # pylint: disable=redefined-builtin """a similarities / code duplication command line tool and pylint checker diff --git a/pylint/checkers/spelling.py b/pylint/checkers/spelling.py index 41e53afbe7..3f32d4762c 100644 --- a/pylint/checkers/spelling.py +++ b/pylint/checkers/spelling.py @@ -20,7 +20,7 @@ # 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/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """Checker for spelling errors in comments and docstrings. """ diff --git a/pylint/checkers/stdlib.py b/pylint/checkers/stdlib.py index 0c0be85b40..f2a2ac2c91 100644 --- a/pylint/checkers/stdlib.py +++ b/pylint/checkers/stdlib.py @@ -29,7 +29,7 @@ # 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/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """Checkers for various standard library functions.""" diff --git a/pylint/checkers/strings.py b/pylint/checkers/strings.py index 5e6b9db576..5268ea54bb 100644 --- a/pylint/checkers/strings.py +++ b/pylint/checkers/strings.py @@ -27,7 +27,7 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """Checker for string formatting operations. """ diff --git a/pylint/checkers/typecheck.py b/pylint/checkers/typecheck.py index e08cf15b7f..f058921524 100644 --- a/pylint/checkers/typecheck.py +++ b/pylint/checkers/typecheck.py @@ -47,7 +47,7 @@ # Copyright (c) 2021 Ikraduya Edian # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """try to find more bugs in the code using astroid inference capabilities """ diff --git a/pylint/checkers/utils.py b/pylint/checkers/utils.py index ab6e3e96c4..2e1c659ed8 100644 --- a/pylint/checkers/utils.py +++ b/pylint/checkers/utils.py @@ -44,7 +44,7 @@ # 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/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """some functions that may be useful for various checkers """ diff --git a/pylint/checkers/variables.py b/pylint/checkers/variables.py index 66bd4fdd47..2a1587eeb0 100644 --- a/pylint/checkers/variables.py +++ b/pylint/checkers/variables.py @@ -43,7 +43,7 @@ # Copyright (c) 2021 Alexander Kapshuna # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """variables checkers for Python code """ diff --git a/pylint/config/__init__.py b/pylint/config/__init__.py index 69e13d0992..a4246e26ba 100644 --- a/pylint/config/__init__.py +++ b/pylint/config/__init__.py @@ -29,7 +29,7 @@ # Copyright (c) 2019 Hugo van Kemenade # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE import os import pickle diff --git a/pylint/config/configuration_mixin.py b/pylint/config/configuration_mixin.py index 1dcb51ef65..2b8402b1de 100644 --- a/pylint/config/configuration_mixin.py +++ b/pylint/config/configuration_mixin.py @@ -1,5 +1,5 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE from pylint.config.option_manager_mixin import OptionsManagerMixIn from pylint.config.options_provider_mixin import OptionsProviderMixIn diff --git a/pylint/config/find_default_config_files.py b/pylint/config/find_default_config_files.py index b1457a892f..54cfad00f5 100644 --- a/pylint/config/find_default_config_files.py +++ b/pylint/config/find_default_config_files.py @@ -1,5 +1,5 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE import configparser import os diff --git a/pylint/config/man_help_formatter.py b/pylint/config/man_help_formatter.py index bd15e76a3c..0d4ec278df 100644 --- a/pylint/config/man_help_formatter.py +++ b/pylint/config/man_help_formatter.py @@ -1,5 +1,5 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE import optparse import sys diff --git a/pylint/config/option.py b/pylint/config/option.py index b2573e96e4..034c2094d4 100644 --- a/pylint/config/option.py +++ b/pylint/config/option.py @@ -1,5 +1,5 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE import copy import optparse diff --git a/pylint/config/option_manager_mixin.py b/pylint/config/option_manager_mixin.py index db75fa8f21..f8625aa560 100644 --- a/pylint/config/option_manager_mixin.py +++ b/pylint/config/option_manager_mixin.py @@ -1,5 +1,5 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE import collections diff --git a/pylint/config/option_parser.py b/pylint/config/option_parser.py index 36ebbe5faf..096d81a6b2 100644 --- a/pylint/config/option_parser.py +++ b/pylint/config/option_parser.py @@ -1,5 +1,5 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE import optparse diff --git a/pylint/config/options_provider_mixin.py b/pylint/config/options_provider_mixin.py index 395626aec0..8ad7dfa461 100644 --- a/pylint/config/options_provider_mixin.py +++ b/pylint/config/options_provider_mixin.py @@ -1,5 +1,5 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE import optparse diff --git a/pylint/constants.py b/pylint/constants.py index 805d565b83..b95d701c04 100644 --- a/pylint/constants.py +++ b/pylint/constants.py @@ -1,5 +1,5 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE import sys diff --git a/pylint/epylint.py b/pylint/epylint.py index 849955cee6..a969bf0b17 100755 --- a/pylint/epylint.py +++ b/pylint/epylint.py @@ -22,7 +22,7 @@ # Copyright (c) 2020 Anthony Sottile # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """Emacs and Flymake compatible Pylint. diff --git a/pylint/exceptions.py b/pylint/exceptions.py index fa3f0ffb6e..f159f3e3d9 100644 --- a/pylint/exceptions.py +++ b/pylint/exceptions.py @@ -7,7 +7,7 @@ # Copyright (c) 2020 Anthony Sottile # 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/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """Exception classes raised by various operations within pylint.""" diff --git a/pylint/extensions/_check_docs_utils.py b/pylint/extensions/_check_docs_utils.py index 7e01de8fbd..0a6f230df1 100644 --- a/pylint/extensions/_check_docs_utils.py +++ b/pylint/extensions/_check_docs_utils.py @@ -16,7 +16,7 @@ # 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/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """Utility methods for docstring checking.""" diff --git a/pylint/extensions/bad_builtin.py b/pylint/extensions/bad_builtin.py index 2405461e2e..bb2090114a 100644 --- a/pylint/extensions/bad_builtin.py +++ b/pylint/extensions/bad_builtin.py @@ -5,7 +5,7 @@ # Copyright (c) 2020 hippo91 # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """Checker for deprecated builtins.""" import astroid diff --git a/pylint/extensions/broad_try_clause.py b/pylint/extensions/broad_try_clause.py index cea49e6c1a..5c14c99fe7 100644 --- a/pylint/extensions/broad_try_clause.py +++ b/pylint/extensions/broad_try_clause.py @@ -5,7 +5,7 @@ # 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/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """Looks for try/except statements with too much code in the try clause.""" diff --git a/pylint/extensions/check_docs.py b/pylint/extensions/check_docs.py index b3eec9b5a0..0a34b098a4 100644 --- a/pylint/extensions/check_docs.py +++ b/pylint/extensions/check_docs.py @@ -5,7 +5,7 @@ # 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/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE import warnings diff --git a/pylint/extensions/check_elif.py b/pylint/extensions/check_elif.py index e58b512384..613f17f4ec 100644 --- a/pylint/extensions/check_elif.py +++ b/pylint/extensions/check_elif.py @@ -7,7 +7,7 @@ # Copyright (c) 2020 Anthony Sottile # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE import astroid diff --git a/pylint/extensions/comparetozero.py b/pylint/extensions/comparetozero.py index 2ae019adf2..4379b348d0 100644 --- a/pylint/extensions/comparetozero.py +++ b/pylint/extensions/comparetozero.py @@ -5,7 +5,7 @@ # Copyright (c) 2020 Anthony Sottile # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """Looks for comparisons to zero.""" diff --git a/pylint/extensions/confusing_elif.py b/pylint/extensions/confusing_elif.py index f61be02f9b..70222b7783 100644 --- a/pylint/extensions/confusing_elif.py +++ b/pylint/extensions/confusing_elif.py @@ -1,7 +1,7 @@ # 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/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE import astroid diff --git a/pylint/extensions/docparams.py b/pylint/extensions/docparams.py index 93fc272344..b53802bce5 100644 --- a/pylint/extensions/docparams.py +++ b/pylint/extensions/docparams.py @@ -18,7 +18,7 @@ # Copyright (c) 2021 Logan Miller <14319179+komodo472@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/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """Pylint plugin for checking in Sphinx, Google, or Numpy style docstrings """ diff --git a/pylint/extensions/docstyle.py b/pylint/extensions/docstyle.py index 52f41b1a7f..9f0e54566b 100644 --- a/pylint/extensions/docstyle.py +++ b/pylint/extensions/docstyle.py @@ -6,7 +6,7 @@ # Copyright (c) 2020 Anthony Sottile # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE import linecache diff --git a/pylint/extensions/emptystring.py b/pylint/extensions/emptystring.py index 7a1649fac9..82a1a5fe6f 100644 --- a/pylint/extensions/emptystring.py +++ b/pylint/extensions/emptystring.py @@ -5,7 +5,7 @@ # Copyright (c) 2020 Anthony Sottile # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """Looks for comparisons to empty string.""" diff --git a/pylint/extensions/mccabe.py b/pylint/extensions/mccabe.py index 2b35fda91a..a541d09ae8 100644 --- a/pylint/extensions/mccabe.py +++ b/pylint/extensions/mccabe.py @@ -6,7 +6,7 @@ # Copyright (c) 2020 Anthony Sottile # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """Module to add McCabe checker class for pylint. """ diff --git a/pylint/extensions/overlapping_exceptions.py b/pylint/extensions/overlapping_exceptions.py index 4c019cc666..4f9f41b458 100644 --- a/pylint/extensions/overlapping_exceptions.py +++ b/pylint/extensions/overlapping_exceptions.py @@ -1,5 +1,5 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """Looks for overlapping exceptions.""" diff --git a/pylint/extensions/redefined_variable_type.py b/pylint/extensions/redefined_variable_type.py index 2409967d44..4bfa1addd2 100644 --- a/pylint/extensions/redefined_variable_type.py +++ b/pylint/extensions/redefined_variable_type.py @@ -7,7 +7,7 @@ # Copyright (c) 2020 Anthony Sottile # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE import astroid diff --git a/pylint/graph.py b/pylint/graph.py index 519012f870..88095cb0dd 100644 --- a/pylint/graph.py +++ b/pylint/graph.py @@ -11,7 +11,7 @@ # Copyright (c) 2021 Andrew Howe # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """Graph manipulation utilities. diff --git a/pylint/interfaces.py b/pylint/interfaces.py index 44ded414df..e61a049281 100644 --- a/pylint/interfaces.py +++ b/pylint/interfaces.py @@ -12,7 +12,7 @@ # Copyright (c) 2020 Anthony Sottile # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """Interfaces for Pylint objects""" from collections import namedtuple diff --git a/pylint/lint/__init__.py b/pylint/lint/__init__.py index 658212edc2..a7c50f3ad6 100644 --- a/pylint/lint/__init__.py +++ b/pylint/lint/__init__.py @@ -56,7 +56,7 @@ # Copyright (c) 2020 anubh-v # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """ pylint [options] modules_or_packages diff --git a/pylint/lint/parallel.py b/pylint/lint/parallel.py index fe9ce06051..29fc2c1d0e 100644 --- a/pylint/lint/parallel.py +++ b/pylint/lint/parallel.py @@ -1,5 +1,5 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE import collections import functools diff --git a/pylint/lint/pylinter.py b/pylint/lint/pylinter.py index 1fe6f96be2..a151c44510 100644 --- a/pylint/lint/pylinter.py +++ b/pylint/lint/pylinter.py @@ -1,5 +1,5 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE import collections import contextlib diff --git a/pylint/lint/report_functions.py b/pylint/lint/report_functions.py index 8c36588d50..34afbde1e8 100644 --- a/pylint/lint/report_functions.py +++ b/pylint/lint/report_functions.py @@ -1,5 +1,5 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE import collections diff --git a/pylint/lint/run.py b/pylint/lint/run.py index 825d0d7f68..020faf781d 100644 --- a/pylint/lint/run.py +++ b/pylint/lint/run.py @@ -1,5 +1,5 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE import os import sys diff --git a/pylint/lint/utils.py b/pylint/lint/utils.py index 3d17f3b380..a90abfb974 100644 --- a/pylint/lint/utils.py +++ b/pylint/lint/utils.py @@ -1,5 +1,5 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE import contextlib import sys diff --git a/pylint/message/__init__.py b/pylint/message/__init__.py index 5162773462..45403bce93 100644 --- a/pylint/message/__init__.py +++ b/pylint/message/__init__.py @@ -34,7 +34,7 @@ # Copyright (c) 2018 Nick Drozd # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """All the classes related to Message handling.""" diff --git a/pylint/message/message.py b/pylint/message/message.py index 3453f535e1..ae99c94ae8 100644 --- a/pylint/message/message.py +++ b/pylint/message/message.py @@ -1,5 +1,5 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE import collections diff --git a/pylint/message/message_definition.py b/pylint/message/message_definition.py index 6f5f0dc519..f286a17484 100644 --- a/pylint/message/message_definition.py +++ b/pylint/message/message_definition.py @@ -1,5 +1,5 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE import sys diff --git a/pylint/message/message_definition_store.py b/pylint/message/message_definition_store.py index 07c3be8b2e..417c2ac4fe 100644 --- a/pylint/message/message_definition_store.py +++ b/pylint/message/message_definition_store.py @@ -1,5 +1,5 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE import collections diff --git a/pylint/message/message_handler_mix_in.py b/pylint/message/message_handler_mix_in.py index 94d36c6a95..5bd83992a3 100644 --- a/pylint/message/message_handler_mix_in.py +++ b/pylint/message/message_handler_mix_in.py @@ -1,5 +1,5 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE import sys from typing import List, Tuple diff --git a/pylint/message/message_id_store.py b/pylint/message/message_id_store.py index 3f156fcb8a..9f4d4fd2a3 100644 --- a/pylint/message/message_id_store.py +++ b/pylint/message/message_id_store.py @@ -1,5 +1,5 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE from typing import List diff --git a/pylint/pyreverse/__init__.py b/pylint/pyreverse/__init__.py index 9ca1da5c6a..95a760d441 100644 --- a/pylint/pyreverse/__init__.py +++ b/pylint/pyreverse/__init__.py @@ -1,5 +1,5 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """ pyreverse.extensions diff --git a/pylint/pyreverse/diadefslib.py b/pylint/pyreverse/diadefslib.py index 9ccaaf4eff..5d803c9295 100644 --- a/pylint/pyreverse/diadefslib.py +++ b/pylint/pyreverse/diadefslib.py @@ -14,7 +14,7 @@ # Copyright (c) 2020 Anthony Sottile # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """handle diagram generation options for class diagram or default diagrams """ diff --git a/pylint/pyreverse/diagrams.py b/pylint/pyreverse/diagrams.py index a958aede22..bf9f67af66 100644 --- a/pylint/pyreverse/diagrams.py +++ b/pylint/pyreverse/diagrams.py @@ -8,7 +8,7 @@ # Copyright (c) 2020 hippo91 # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """diagram objects """ diff --git a/pylint/pyreverse/inspector.py b/pylint/pyreverse/inspector.py index fab88bee7c..8fa1220224 100644 --- a/pylint/pyreverse/inspector.py +++ b/pylint/pyreverse/inspector.py @@ -8,7 +8,7 @@ # Copyright (c) 2020 Anthony Sottile # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """ Visitor doing some postprocessing on the astroid tree. diff --git a/pylint/pyreverse/main.py b/pylint/pyreverse/main.py index 5839f62922..a62a1c2e7f 100644 --- a/pylint/pyreverse/main.py +++ b/pylint/pyreverse/main.py @@ -12,7 +12,7 @@ # Copyright (c) 2021 Mark Byrne # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """ %prog [options] diff --git a/pylint/pyreverse/utils.py b/pylint/pyreverse/utils.py index 237e323047..a28f16d3a3 100644 --- a/pylint/pyreverse/utils.py +++ b/pylint/pyreverse/utils.py @@ -12,7 +12,7 @@ # Copyright (c) 2020 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/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """Generic classes/functions for pyreverse core/extensions. """ import os diff --git a/pylint/pyreverse/vcgutils.py b/pylint/pyreverse/vcgutils.py index a76198e7f1..38193b3254 100644 --- a/pylint/pyreverse/vcgutils.py +++ b/pylint/pyreverse/vcgutils.py @@ -8,7 +8,7 @@ # Copyright (c) 2020 Anthony Sottile # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """Functions to generate files readable with Georg Sander's vcg (Visualization of Compiler Graphs). diff --git a/pylint/pyreverse/writer.py b/pylint/pyreverse/writer.py index 0ea1ead144..5feb1eb688 100644 --- a/pylint/pyreverse/writer.py +++ b/pylint/pyreverse/writer.py @@ -11,7 +11,7 @@ # Copyright (c) 2021 Mark Byrne # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """Utilities for creating VCG and Dot diagrams""" diff --git a/pylint/reporters/__init__.py b/pylint/reporters/__init__.py index e764e25544..5db03d1ee3 100644 --- a/pylint/reporters/__init__.py +++ b/pylint/reporters/__init__.py @@ -16,7 +16,7 @@ # Copyright (c) 2020 Anthony Sottile # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """utilities methods and classes for reporters""" diff --git a/pylint/reporters/base_reporter.py b/pylint/reporters/base_reporter.py index 279ede610c..8fd66a4342 100644 --- a/pylint/reporters/base_reporter.py +++ b/pylint/reporters/base_reporter.py @@ -1,5 +1,5 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE import os import sys diff --git a/pylint/reporters/collecting_reporter.py b/pylint/reporters/collecting_reporter.py index f33451ee32..68c0cbf9e8 100644 --- a/pylint/reporters/collecting_reporter.py +++ b/pylint/reporters/collecting_reporter.py @@ -1,5 +1,5 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE from pylint.reporters.base_reporter import BaseReporter diff --git a/pylint/reporters/json_reporter.py b/pylint/reporters/json_reporter.py index acdd614784..1a53f5f3d3 100644 --- a/pylint/reporters/json_reporter.py +++ b/pylint/reporters/json_reporter.py @@ -8,7 +8,7 @@ # Copyright (c) 2020 Clément Pit-Claudel # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """JSON reporter""" import json diff --git a/pylint/reporters/reports_handler_mix_in.py b/pylint/reporters/reports_handler_mix_in.py index 101f52ea1c..2d7cc8bc2a 100644 --- a/pylint/reporters/reports_handler_mix_in.py +++ b/pylint/reporters/reports_handler_mix_in.py @@ -1,5 +1,5 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE import collections diff --git a/pylint/reporters/text.py b/pylint/reporters/text.py index 72d40eb94a..9142c594ea 100644 --- a/pylint/reporters/text.py +++ b/pylint/reporters/text.py @@ -14,7 +14,7 @@ # Copyright (c) 2020 hippo91 # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """Plain text reporters: diff --git a/pylint/reporters/ureports/__init__.py b/pylint/reporters/ureports/__init__.py index f2d2543765..53a3a37b7c 100644 --- a/pylint/reporters/ureports/__init__.py +++ b/pylint/reporters/ureports/__init__.py @@ -6,7 +6,7 @@ # Copyright (c) 2020 hippo91 # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """Universal report objects and some formatting drivers. diff --git a/pylint/reporters/ureports/nodes.py b/pylint/reporters/ureports/nodes.py index 87420b5442..dbc34d48a3 100644 --- a/pylint/reporters/ureports/nodes.py +++ b/pylint/reporters/ureports/nodes.py @@ -7,7 +7,7 @@ # 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/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """Micro reports objects. diff --git a/pylint/reporters/ureports/text_writer.py b/pylint/reporters/ureports/text_writer.py index 1391567038..17272080be 100644 --- a/pylint/reporters/ureports/text_writer.py +++ b/pylint/reporters/ureports/text_writer.py @@ -5,7 +5,7 @@ # Copyright (c) 2020 hippo91 # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """Text formatting drivers for ureports""" diff --git a/pylint/testutils/__init__.py b/pylint/testutils/__init__.py index 0dd9c6fdda..52bfcf2549 100644 --- a/pylint/testutils/__init__.py +++ b/pylint/testutils/__init__.py @@ -24,7 +24,7 @@ # Copyright (c) 2021 Lefteris Karapetsas # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """Functional/non regression tests for pylint""" diff --git a/pylint/testutils/checker_test_case.py b/pylint/testutils/checker_test_case.py index d6846e18fa..77fe6f226e 100644 --- a/pylint/testutils/checker_test_case.py +++ b/pylint/testutils/checker_test_case.py @@ -1,5 +1,5 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE import contextlib from typing import Dict, Optional, Type diff --git a/pylint/testutils/constants.py b/pylint/testutils/constants.py index f56cb8ae4d..e5a7c84a13 100644 --- a/pylint/testutils/constants.py +++ b/pylint/testutils/constants.py @@ -1,5 +1,5 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE import operator import re diff --git a/pylint/testutils/decorator.py b/pylint/testutils/decorator.py index 5e5077e7bc..52440ee718 100644 --- a/pylint/testutils/decorator.py +++ b/pylint/testutils/decorator.py @@ -1,5 +1,5 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE import functools diff --git a/pylint/testutils/functional_test_file.py b/pylint/testutils/functional_test_file.py index 53651527b9..2923412e9b 100644 --- a/pylint/testutils/functional_test_file.py +++ b/pylint/testutils/functional_test_file.py @@ -1,5 +1,5 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE import configparser from os.path import basename, exists, join diff --git a/pylint/testutils/get_test_info.py b/pylint/testutils/get_test_info.py index ea2caea1ef..1e0c1263c3 100644 --- a/pylint/testutils/get_test_info.py +++ b/pylint/testutils/get_test_info.py @@ -1,5 +1,5 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE from glob import glob from os.path import basename, join, splitext diff --git a/pylint/testutils/global_test_linter.py b/pylint/testutils/global_test_linter.py index 75a55e9c06..905210e0a6 100644 --- a/pylint/testutils/global_test_linter.py +++ b/pylint/testutils/global_test_linter.py @@ -1,5 +1,5 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE from pylint import checkers diff --git a/pylint/testutils/lint_module_test.py b/pylint/testutils/lint_module_test.py index 500513ce3e..1d9396bfff 100644 --- a/pylint/testutils/lint_module_test.py +++ b/pylint/testutils/lint_module_test.py @@ -1,5 +1,5 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE import csv import operator diff --git a/pylint/testutils/output_line.py b/pylint/testutils/output_line.py index bad3d46eea..a5284e47f1 100644 --- a/pylint/testutils/output_line.py +++ b/pylint/testutils/output_line.py @@ -1,5 +1,5 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE import collections diff --git a/pylint/testutils/reporter_for_tests.py b/pylint/testutils/reporter_for_tests.py index 4343694a35..70cb8a8432 100644 --- a/pylint/testutils/reporter_for_tests.py +++ b/pylint/testutils/reporter_for_tests.py @@ -1,5 +1,5 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE from io import StringIO from os import getcwd, linesep, sep diff --git a/pylint/testutils/tokenize_str.py b/pylint/testutils/tokenize_str.py index 2b3c5f2c17..96094faf87 100644 --- a/pylint/testutils/tokenize_str.py +++ b/pylint/testutils/tokenize_str.py @@ -1,5 +1,5 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE import tokenize from io import StringIO diff --git a/pylint/testutils/unittest_linter.py b/pylint/testutils/unittest_linter.py index 5408746116..ff902c2736 100644 --- a/pylint/testutils/unittest_linter.py +++ b/pylint/testutils/unittest_linter.py @@ -1,5 +1,5 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE from pylint.testutils.global_test_linter import linter from pylint.testutils.output_line import Message diff --git a/pylint/utils/__init__.py b/pylint/utils/__init__.py index 76dab0ea7a..1830ab839d 100644 --- a/pylint/utils/__init__.py +++ b/pylint/utils/__init__.py @@ -36,7 +36,7 @@ # Copyright (c) 2020 Damien Baty # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """some various utilities and helper classes, most of them used in the main pylint class diff --git a/pylint/utils/ast_walker.py b/pylint/utils/ast_walker.py index dbad0cc480..e9f801092a 100644 --- a/pylint/utils/ast_walker.py +++ b/pylint/utils/ast_walker.py @@ -1,5 +1,5 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE import collections diff --git a/pylint/utils/file_state.py b/pylint/utils/file_state.py index e42ce625fb..ba843691c0 100644 --- a/pylint/utils/file_state.py +++ b/pylint/utils/file_state.py @@ -1,5 +1,5 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE import collections diff --git a/pylint/utils/pragma_parser.py b/pylint/utils/pragma_parser.py index b991855a91..060c6da87a 100644 --- a/pylint/utils/pragma_parser.py +++ b/pylint/utils/pragma_parser.py @@ -1,5 +1,5 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE import re from collections import namedtuple diff --git a/pylint/utils/utils.py b/pylint/utils/utils.py index 93324d0784..4d4aecc1db 100644 --- a/pylint/utils/utils.py +++ b/pylint/utils/utils.py @@ -1,5 +1,5 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE try: diff --git a/setup.cfg b/setup.cfg index 8bc8357312..0448df5942 100644 --- a/setup.cfg +++ b/setup.cfg @@ -7,15 +7,15 @@ long_description_content_type = text/x-rst url = https://github.com/PyCQA/pylint author = Python Code Quality Authority author_email = code-quality@python.org -license = GPL-2.0-or-later +license = GPL-2.0 license_files = - COPYING + LICENSE CONTRIBUTORS.txt classifiers = Development Status :: 6 - Mature Environment :: Console Intended Audience :: Developers - License :: OSI Approved :: GNU General Public License (GPL) + License :: OSI Approved :: GNU General Public License v2 (GPLv2) Operating System :: OS Independent Programming Language :: Python Programming Language :: Python :: 3 diff --git a/tests/acceptance/test_stdlib.py b/tests/acceptance/test_stdlib.py index 1b97fd2ea6..17981177cf 100644 --- a/tests/acceptance/test_stdlib.py +++ b/tests/acceptance/test_stdlib.py @@ -1,5 +1,5 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE import contextlib import io diff --git a/tests/benchmark/test_baseline_benchmarks.py b/tests/benchmark/test_baseline_benchmarks.py index 60ab96574c..368f376dea 100644 --- a/tests/benchmark/test_baseline_benchmarks.py +++ b/tests/benchmark/test_baseline_benchmarks.py @@ -5,7 +5,7 @@ # Copyright (c) 2020 Frank Harrison # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE # pylint: disable=protected-access,missing-function-docstring,no-self-use diff --git a/tests/checkers/unittest_base.py b/tests/checkers/unittest_base.py index 6ccfe1a351..a210d67d14 100644 --- a/tests/checkers/unittest_base.py +++ b/tests/checkers/unittest_base.py @@ -20,7 +20,7 @@ # Copyright (c) 2021 David Gilman # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """Unittest for the base checker.""" diff --git a/tests/checkers/unittest_classes.py b/tests/checkers/unittest_classes.py index daec6217bf..4b4cda3396 100644 --- a/tests/checkers/unittest_classes.py +++ b/tests/checkers/unittest_classes.py @@ -11,7 +11,7 @@ # 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/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """Unit tests for the variables checker.""" import astroid diff --git a/tests/checkers/unittest_exceptions.py b/tests/checkers/unittest_exceptions.py index d6ad3e812f..affd5cdc9f 100644 --- a/tests/checkers/unittest_exceptions.py +++ b/tests/checkers/unittest_exceptions.py @@ -10,7 +10,7 @@ # Copyright (c) 2020 hippo91 # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """Tests for pylint.checkers.exceptions.""" import astroid diff --git a/tests/checkers/unittest_format.py b/tests/checkers/unittest_format.py index 937b827395..80d654f98b 100644 --- a/tests/checkers/unittest_format.py +++ b/tests/checkers/unittest_format.py @@ -21,7 +21,7 @@ # Copyright (c) 2020 hippo91 # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """Check format checker helper functions""" diff --git a/tests/checkers/unittest_imports.py b/tests/checkers/unittest_imports.py index 6443b3679e..f10255eba3 100644 --- a/tests/checkers/unittest_imports.py +++ b/tests/checkers/unittest_imports.py @@ -13,7 +13,7 @@ # Copyright (c) 2020 Anthony Sottile # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """Unit tests for the imports checker.""" diff --git a/tests/checkers/unittest_logging.py b/tests/checkers/unittest_logging.py index 7e315dbffc..ee7824e1ea 100644 --- a/tests/checkers/unittest_logging.py +++ b/tests/checkers/unittest_logging.py @@ -10,7 +10,7 @@ # Copyright (c) 2020 hippo91 # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """Unittest for the logging checker.""" import sys diff --git a/tests/checkers/unittest_misc.py b/tests/checkers/unittest_misc.py index 0aa1afffef..fc059ba5c2 100644 --- a/tests/checkers/unittest_misc.py +++ b/tests/checkers/unittest_misc.py @@ -12,7 +12,7 @@ # Copyright (c) 2020 hippo91 # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """Tests for the misc checker.""" diff --git a/tests/checkers/unittest_python3.py b/tests/checkers/unittest_python3.py index 2593e7e672..c33d166a84 100644 --- a/tests/checkers/unittest_python3.py +++ b/tests/checkers/unittest_python3.py @@ -23,7 +23,7 @@ # Copyright (c) 2021 David Gilman # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """Tests for the python3 checkers.""" diff --git a/tests/checkers/unittest_refactoring.py b/tests/checkers/unittest_refactoring.py index 2a0ca99e24..15e18db460 100644 --- a/tests/checkers/unittest_refactoring.py +++ b/tests/checkers/unittest_refactoring.py @@ -1,5 +1,5 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE import astroid diff --git a/tests/checkers/unittest_similar.py b/tests/checkers/unittest_similar.py index 66a8ae4bdf..510dd64afd 100644 --- a/tests/checkers/unittest_similar.py +++ b/tests/checkers/unittest_similar.py @@ -14,7 +14,7 @@ # Copyright (c) 2020 hippo91 # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE from contextlib import redirect_stdout from io import StringIO diff --git a/tests/checkers/unittest_spelling.py b/tests/checkers/unittest_spelling.py index 2d48670cb3..176ae34dbb 100644 --- a/tests/checkers/unittest_spelling.py +++ b/tests/checkers/unittest_spelling.py @@ -12,7 +12,7 @@ # Copyright (c) 2020 hippo91 # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """Unittest for the spelling checker.""" diff --git a/tests/checkers/unittest_stdlib.py b/tests/checkers/unittest_stdlib.py index fc5dc60503..962b33f379 100644 --- a/tests/checkers/unittest_stdlib.py +++ b/tests/checkers/unittest_stdlib.py @@ -7,7 +7,7 @@ # Copyright (c) 2020 hippo91 # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE import contextlib diff --git a/tests/checkers/unittest_strings.py b/tests/checkers/unittest_strings.py index d7361f137c..c8e860dcfa 100644 --- a/tests/checkers/unittest_strings.py +++ b/tests/checkers/unittest_strings.py @@ -7,7 +7,7 @@ # Copyright (c) 2020 hippo91 # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE import astroid diff --git a/tests/checkers/unittest_typecheck.py b/tests/checkers/unittest_typecheck.py index e67a49bfb5..88d3dab4a8 100644 --- a/tests/checkers/unittest_typecheck.py +++ b/tests/checkers/unittest_typecheck.py @@ -20,7 +20,7 @@ # Copyright (c) 2021 David Gilman # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE import astroid import pytest diff --git a/tests/checkers/unittest_utils.py b/tests/checkers/unittest_utils.py index e682cd25e2..18115bfa45 100644 --- a/tests/checkers/unittest_utils.py +++ b/tests/checkers/unittest_utils.py @@ -13,7 +13,7 @@ # Copyright (c) 2020 Anthony Sottile # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """Tests for the pylint.checkers.utils module.""" diff --git a/tests/checkers/unittest_variables.py b/tests/checkers/unittest_variables.py index c63574c109..65ab22f3ce 100644 --- a/tests/checkers/unittest_variables.py +++ b/tests/checkers/unittest_variables.py @@ -15,7 +15,7 @@ # Copyright (c) 2020 Anthony Sottile # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE import os import re diff --git a/tests/extensions/test_bad_builtin.py b/tests/extensions/test_bad_builtin.py index 3a7877bbed..427dd20ec9 100644 --- a/tests/extensions/test_bad_builtin.py +++ b/tests/extensions/test_bad_builtin.py @@ -6,7 +6,7 @@ # Copyright (c) 2020 Damien Baty # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """Tests for the pylint checker in :mod:`pylint.extensions.bad_builtin """ diff --git a/tests/extensions/test_broad_try_clause.py b/tests/extensions/test_broad_try_clause.py index c3ce5830ab..3ba2b81181 100644 --- a/tests/extensions/test_broad_try_clause.py +++ b/tests/extensions/test_broad_try_clause.py @@ -7,7 +7,7 @@ # Copyright (c) 2020 Anthony Sottile # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """Tests for the pylint checker in :mod:`pylint.extensions.broad_try_clause`""" import unittest diff --git a/tests/extensions/test_check_docs.py b/tests/extensions/test_check_docs.py index daf8589a74..a65bf93167 100644 --- a/tests/extensions/test_check_docs.py +++ b/tests/extensions/test_check_docs.py @@ -15,7 +15,7 @@ # Copyright (c) 2021 Logan Miller <14319179+komodo472@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/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """Unit tests for the pylint checkers in :mod:`pylint.extensions.check_docs`, in particular the parameter documentation checker `DocstringChecker` diff --git a/tests/extensions/test_check_docs_utils.py b/tests/extensions/test_check_docs_utils.py index ff0651f4ad..49a2eacc93 100644 --- a/tests/extensions/test_check_docs_utils.py +++ b/tests/extensions/test_check_docs_utils.py @@ -8,7 +8,7 @@ # Copyright (c) 2020 Damien Baty # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """Unit tests for the pylint checkers in :mod:`pylint.extensions.check_docs`, in particular the parameter documentation checker `DocstringChecker` diff --git a/tests/extensions/test_check_mccabe.py b/tests/extensions/test_check_mccabe.py index db6d66d0b8..0dcb347c05 100644 --- a/tests/extensions/test_check_mccabe.py +++ b/tests/extensions/test_check_mccabe.py @@ -7,7 +7,7 @@ # Copyright (c) 2020 Damien Baty # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """Tests for the pylint checker in :mod:`pylint.extensions.check_mccabe""" # pylint: disable=redefined-outer-name diff --git a/tests/extensions/test_check_raise_docs.py b/tests/extensions/test_check_raise_docs.py index aa85c6bed0..7ed7c405cf 100644 --- a/tests/extensions/test_check_raise_docs.py +++ b/tests/extensions/test_check_raise_docs.py @@ -10,7 +10,7 @@ # Copyright (c) 2020 hippo91 # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """Unit tests for the raised exception documentation checking in the `DocstringChecker` in :mod:`pylint.extensions.check_docs` diff --git a/tests/extensions/test_check_return_docs.py b/tests/extensions/test_check_return_docs.py index de28eaa52a..20494c9722 100644 --- a/tests/extensions/test_check_return_docs.py +++ b/tests/extensions/test_check_return_docs.py @@ -11,7 +11,7 @@ # Copyright (c) 2020 Anthony Sottile # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """Unit tests for the return documentation checking in the `DocstringChecker` in :mod:`pylint.extensions.check_docs` diff --git a/tests/extensions/test_check_yields_docs.py b/tests/extensions/test_check_yields_docs.py index bcf17cae13..3dc34345ef 100644 --- a/tests/extensions/test_check_yields_docs.py +++ b/tests/extensions/test_check_yields_docs.py @@ -7,7 +7,7 @@ # Copyright (c) 2020 hippo91 # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """Unit tests for the yield documentation checking in the `DocstringChecker` in :mod:`pylint.extensions.check_docs` diff --git a/tests/extensions/test_comparetozero.py b/tests/extensions/test_comparetozero.py index 87a81fa370..51af084984 100644 --- a/tests/extensions/test_comparetozero.py +++ b/tests/extensions/test_comparetozero.py @@ -7,7 +7,7 @@ # Copyright (c) 2020 Anthony Sottile # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """Tests for the pylint checker in :mod:`pylint.extensions.emptystring""" diff --git a/tests/extensions/test_confusing_elif.py b/tests/extensions/test_confusing_elif.py index 3392b4401d..f45589e854 100644 --- a/tests/extensions/test_confusing_elif.py +++ b/tests/extensions/test_confusing_elif.py @@ -1,7 +1,7 @@ # 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/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """Tests for the pylint checker in :mod:`pylint.extensions.confusing_elif """ diff --git a/tests/extensions/test_docstyle.py b/tests/extensions/test_docstyle.py index 86579f9567..336cd314fa 100644 --- a/tests/extensions/test_docstyle.py +++ b/tests/extensions/test_docstyle.py @@ -6,7 +6,7 @@ # Copyright (c) 2020 hippo91 # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """Tests for the pylint checker in :mod:`pylint.extensions.check_docstring """ diff --git a/tests/extensions/test_elseif_used.py b/tests/extensions/test_elseif_used.py index b3035f44bd..8326458d02 100644 --- a/tests/extensions/test_elseif_used.py +++ b/tests/extensions/test_elseif_used.py @@ -7,7 +7,7 @@ # Copyright (c) 2020 Damien Baty # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """Tests for the pylint checker in :mod:`pylint.extensions.check_elif """ diff --git a/tests/extensions/test_emptystring.py b/tests/extensions/test_emptystring.py index f07e6f1c32..5279189725 100644 --- a/tests/extensions/test_emptystring.py +++ b/tests/extensions/test_emptystring.py @@ -9,7 +9,7 @@ # Copyright (c) 2020 Anthony Sottile # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """Tests for the pylint checker in :mod:`pylint.extensions.emptystring """ diff --git a/tests/extensions/test_overlapping_exceptions.py b/tests/extensions/test_overlapping_exceptions.py index 7f13bc726b..e94a8f2a40 100644 --- a/tests/extensions/test_overlapping_exceptions.py +++ b/tests/extensions/test_overlapping_exceptions.py @@ -1,5 +1,5 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """Tests for the pylint checker in :mod:`pylint.extensions.overlapping_exceptions """ diff --git a/tests/extensions/test_redefined.py b/tests/extensions/test_redefined.py index 343fc40517..eefe4b3df0 100644 --- a/tests/extensions/test_redefined.py +++ b/tests/extensions/test_redefined.py @@ -6,7 +6,7 @@ # Copyright (c) 2020 Damien Baty # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """Tests for the pylint checker in :mod:`pylint.extensions.check_elif""" from os import path as osp diff --git a/tests/lint/unittest_expand_modules.py b/tests/lint/unittest_expand_modules.py index a1dd75c8f9..f4d64b7b3a 100644 --- a/tests/lint/unittest_expand_modules.py +++ b/tests/lint/unittest_expand_modules.py @@ -1,5 +1,5 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE import re diff --git a/tests/lint/unittest_lint.py b/tests/lint/unittest_lint.py index f9438e2003..7aa567490b 100644 --- a/tests/lint/unittest_lint.py +++ b/tests/lint/unittest_lint.py @@ -30,7 +30,7 @@ # Copyright (c) 2020 Damien Baty # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE # pylint: disable=redefined-outer-name import os diff --git a/tests/message/conftest.py b/tests/message/conftest.py index c4e50571e7..1f5036db40 100644 --- a/tests/message/conftest.py +++ b/tests/message/conftest.py @@ -1,5 +1,5 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE # pylint: disable=redefined-outer-name diff --git a/tests/message/unittest_message.py b/tests/message/unittest_message.py index c740270139..583eb14947 100644 --- a/tests/message/unittest_message.py +++ b/tests/message/unittest_message.py @@ -1,5 +1,5 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE from pylint.message import Message diff --git a/tests/message/unittest_message_definition.py b/tests/message/unittest_message_definition.py index c9870e8a14..1935d84954 100644 --- a/tests/message/unittest_message_definition.py +++ b/tests/message/unittest_message_definition.py @@ -1,5 +1,5 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE import sys from unittest import mock diff --git a/tests/message/unittest_message_definition_store.py b/tests/message/unittest_message_definition_store.py index 74db423278..bb65b3fdf8 100644 --- a/tests/message/unittest_message_definition_store.py +++ b/tests/message/unittest_message_definition_store.py @@ -1,5 +1,5 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE from contextlib import redirect_stdout from io import StringIO diff --git a/tests/message/unittest_message_id_store.py b/tests/message/unittest_message_id_store.py index ad4ca3d9f7..019dbfae34 100644 --- a/tests/message/unittest_message_id_store.py +++ b/tests/message/unittest_message_id_store.py @@ -1,5 +1,5 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE import pytest diff --git a/tests/profile/test_profile_against_externals.py b/tests/profile/test_profile_against_externals.py index 147075e256..430014abc0 100644 --- a/tests/profile/test_profile_against_externals.py +++ b/tests/profile/test_profile_against_externals.py @@ -3,7 +3,7 @@ # Copyright (c) 2020 Frank Harrison # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE # pylint: disable=protected-access,missing-function-docstring,no-self-use diff --git a/tests/test_check_parallel.py b/tests/test_check_parallel.py index ddd1a5baf7..fc437bec8a 100644 --- a/tests/test_check_parallel.py +++ b/tests/test_check_parallel.py @@ -3,7 +3,7 @@ # Copyright (c) 2020 Frank Harrison # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE # pylint: disable=protected-access,missing-function-docstring,no-self-use diff --git a/tests/test_func.py b/tests/test_func.py index 646371899b..3141619f68 100644 --- a/tests/test_func.py +++ b/tests/test_func.py @@ -14,7 +14,7 @@ # Copyright (c) 2020 Anthony Sottile # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """functional/non regression tests for pylint""" diff --git a/tests/test_functional.py b/tests/test_functional.py index 806c273bda..0d82409e6d 100644 --- a/tests/test_functional.py +++ b/tests/test_functional.py @@ -18,7 +18,7 @@ # 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/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """Functional full-module tests for PyLint.""" import csv diff --git a/tests/test_import_graph.py b/tests/test_import_graph.py index b40a4a3d2a..816e78a0ff 100644 --- a/tests/test_import_graph.py +++ b/tests/test_import_graph.py @@ -13,7 +13,7 @@ # Copyright (c) 2021 Andrew Howe # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE # pylint: disable=redefined-outer-name import os diff --git a/tests/test_regr.py b/tests/test_regr.py index 886779196e..995bab8085 100644 --- a/tests/test_regr.py +++ b/tests/test_regr.py @@ -12,7 +12,7 @@ # Copyright (c) 2020 Damien Baty # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """non regression tests for pylint, which requires a too specific configuration to be incorporated in the automatic functional test framework diff --git a/tests/test_self.py b/tests/test_self.py index 6761a6de87..b5664aea1d 100644 --- a/tests/test_self.py +++ b/tests/test_self.py @@ -28,7 +28,7 @@ # Copyright (c) 2021 Louis Sautier # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE # pylint: disable=too-many-public-methods diff --git a/tests/unittest_config.py b/tests/unittest_config.py index b811fd0269..e43d81fe0f 100644 --- a/tests/unittest_config.py +++ b/tests/unittest_config.py @@ -8,7 +8,7 @@ # Copyright (c) 2020 Anthony Sottile # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """Unit tests for the config module.""" diff --git a/tests/unittest_pyreverse_diadefs.py b/tests/unittest_pyreverse_diadefs.py index d10f0c647e..e90db22512 100644 --- a/tests/unittest_pyreverse_diadefs.py +++ b/tests/unittest_pyreverse_diadefs.py @@ -12,7 +12,7 @@ # Copyright (c) 2020 Anthony Sottile # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """Unit test for the extensions.diadefslib modules""" # pylint: disable=redefined-outer-name diff --git a/tests/unittest_pyreverse_inspector.py b/tests/unittest_pyreverse_inspector.py index add2910d2f..e1ff6378ee 100644 --- a/tests/unittest_pyreverse_inspector.py +++ b/tests/unittest_pyreverse_inspector.py @@ -6,7 +6,7 @@ # Copyright (c) 2020 Damien Baty # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """ for the visitors.diadefs module diff --git a/tests/unittest_pyreverse_writer.py b/tests/unittest_pyreverse_writer.py index 22fc279788..98bb014881 100644 --- a/tests/unittest_pyreverse_writer.py +++ b/tests/unittest_pyreverse_writer.py @@ -12,7 +12,7 @@ # Copyright (c) 2021 Mark Byrne # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """ unit test for visitors.diadefs and extensions.diadefslib modules diff --git a/tests/unittest_reporters_json.py b/tests/unittest_reporters_json.py index 72baa14771..11d37760e4 100644 --- a/tests/unittest_reporters_json.py +++ b/tests/unittest_reporters_json.py @@ -9,7 +9,7 @@ # Copyright (c) 2020 hippo91 # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE """Test for the JSON reporter.""" diff --git a/tests/unittest_reporting.py b/tests/unittest_reporting.py index beb3cd8431..abd912b27d 100644 --- a/tests/unittest_reporting.py +++ b/tests/unittest_reporting.py @@ -11,7 +11,7 @@ # Copyright (c) 2020 hippo91 # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE # pylint: disable=redefined-outer-name import warnings diff --git a/tests/utils/unittest_ast_walker.py b/tests/utils/unittest_ast_walker.py index 57487bd3f2..5bf5b5bc6d 100644 --- a/tests/utils/unittest_ast_walker.py +++ b/tests/utils/unittest_ast_walker.py @@ -1,5 +1,5 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE import warnings diff --git a/tests/utils/unittest_utils.py b/tests/utils/unittest_utils.py index ae53a6129b..9985b632bd 100644 --- a/tests/utils/unittest_utils.py +++ b/tests/utils/unittest_utils.py @@ -15,7 +15,7 @@ # Copyright (c) 2020 hippo91 # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -# For details: https://github.com/PyCQA/pylint/blob/master/COPYING +# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE import io