From ef13c61e7a442d890cb2bbfc0526e6e4b08c5bc4 Mon Sep 17 00:00:00 2001 From: Pierre Sassoulas Date: Wed, 14 Jun 2023 15:10:17 +0200 Subject: [PATCH] [PyCQA migration] Upgrade links in maintenance branch --- .../messages/b/bad-file-encoding/details.rst | 2 +- .../i/invalid-unicode-codec/details.rst | 2 +- .../r/return-arg-in-generator/details.rst | 2 +- doc/whatsnew/2/2.17/index.rst | 32 +++++++++---------- pylint/checkers/mapreduce_checker.py | 4 +-- pylint/config/arguments_provider.py | 2 +- pylint/config/configuration_mixin.py | 4 +-- pylint/config/environment_variable.py | 4 +-- pylint/config/option.py | 4 +-- pylint/config/option_manager_mixin.py | 4 +-- pylint/config/option_parser.py | 4 +-- pylint/config/options_provider_mixin.py | 4 +-- pylint/epylint.py | 4 +-- pylint/lint/pylinter.py | 2 +- pylint/pyreverse/vcg_printer.py | 4 +-- pylint/testutils/functional_test_file.py | 4 +-- script/fix_documentation.py | 4 +-- tests/config/test_deprecations.py | 4 +-- tests/config/unittest_config.py | 4 +-- tests/functional/u/unused/unused_import.py | 2 +- tests/test_deprecation.py | 4 +-- tests/test_epylint.py | 6 ++-- 22 files changed, 53 insertions(+), 53 deletions(-) diff --git a/doc/data/messages/b/bad-file-encoding/details.rst b/doc/data/messages/b/bad-file-encoding/details.rst index ab82045295..c1e9b976ac 100644 --- a/doc/data/messages/b/bad-file-encoding/details.rst +++ b/doc/data/messages/b/bad-file-encoding/details.rst @@ -1 +1 @@ -You can help us make the doc better `by contributing `_ ! +You can help us make the doc better `by contributing `_ ! diff --git a/doc/data/messages/i/invalid-unicode-codec/details.rst b/doc/data/messages/i/invalid-unicode-codec/details.rst index ab82045295..c1e9b976ac 100644 --- a/doc/data/messages/i/invalid-unicode-codec/details.rst +++ b/doc/data/messages/i/invalid-unicode-codec/details.rst @@ -1 +1 @@ -You can help us make the doc better `by contributing `_ ! +You can help us make the doc better `by contributing `_ ! diff --git a/doc/data/messages/r/return-arg-in-generator/details.rst b/doc/data/messages/r/return-arg-in-generator/details.rst index ab82045295..c1e9b976ac 100644 --- a/doc/data/messages/r/return-arg-in-generator/details.rst +++ b/doc/data/messages/r/return-arg-in-generator/details.rst @@ -1 +1 @@ -You can help us make the doc better `by contributing `_ ! +You can help us make the doc better `by contributing `_ ! diff --git a/doc/whatsnew/2/2.17/index.rst b/doc/whatsnew/2/2.17/index.rst index 9c5323b189..b8f81068e7 100644 --- a/doc/whatsnew/2/2.17/index.rst +++ b/doc/whatsnew/2/2.17/index.rst @@ -40,7 +40,7 @@ False Positives Fixed - Fix a false positive for ``bad-dunder-name`` when there is a user-defined ``__index__`` method. - Closes #8613 (`#8613 `_) + Closes #8613 (`#8613 `_) @@ -51,13 +51,13 @@ Other Bug Fixes produced by DOT printer to ensure it is not treated as field separator of record-based nodes. - Closes #8603 (`#8603 `_) + Closes #8603 (`#8603 `_) - Fixed a crash when generating a configuration file: ``tomlkit.exceptions.TOMLKitError: Can't add a table to a dotted key`` caused by tomlkit ``v0.11.8``. - Closes #8632 (`#8632 `_) + Closes #8632 (`#8632 `_) What's new in Pylint 2.17.3? @@ -71,41 +71,41 @@ False Positives Fixed - Fix `unused-argument` false positive when `__new__` does not use all the arguments of `__init__`. - Closes #3670 (`#3670 `_) + Closes #3670 (`#3670 `_) - Fix ``unused-import`` false positive for usage of ``six.with_metaclass``. - Closes #7506 (`#7506 `_) + Closes #7506 (`#7506 `_) - `logging-not-lazy` is not longer emitted for explicitly concatenated string arguments. - Closes #8410 (`#8410 `_) + Closes #8410 (`#8410 `_) - Fix false positive for isinstance-second-argument-not-valid-type when union types contains None. - Closes #8424 (`#8424 `_) + Closes #8424 (`#8424 `_) - Fixed `unused-import` so that it observes the `dummy-variables-rgx` option. - Closes #8500 (`#8500 `_) + Closes #8500 (`#8500 `_) - `Union` typed variables without assignment are no longer treated as `TypeAlias`. - Closes #8540 (`#8540 `_) + Closes #8540 (`#8540 `_) - Fix false positive for ``positional-only-arguments-expected`` when a function contains both a positional-only parameter that has a default value, and ``**kwargs``. - Closes #8555 (`#8555 `_) + Closes #8555 (`#8555 `_) - Fix false positive for ``keyword-arg-before-vararg`` when a positional-only parameter with a default value precedes ``*args``. - Closes #8570 (`#8570 `_) + Closes #8570 (`#8570 `_) @@ -115,7 +115,7 @@ Other Bug Fixes - Improve output of ``consider-using-generator`` message for ``min()` calls with ``default`` keyword. - Closes #8563 (`#8563 `_) + Closes #8563 (`#8563 `_) What's new in Pylint 2.17.2? @@ -130,18 +130,18 @@ False Positives Fixed - now valid: ``Good2Name``, ``GoodName2``. - still invalid: ``_1BadName``. - Closes #8485 (`#8485 `_) + Closes #8485 (`#8485 `_) - No longer consider ``Union`` as type annotation as type alias for naming checks. - Closes #8487 (`#8487 `_) + Closes #8487 (`#8487 `_) - ``unnecessary-lambda`` no longer warns on lambdas which use its parameters in their body (other than the final arguments), e.g. ``lambda foo: (bar if foo else baz)(foo)``. - Closes #8496 (`#8496 `_) + Closes #8496 (`#8496 `_) @@ -151,7 +151,7 @@ Other Bug Fixes - Fix a crash in pyreverse when "/" characters are used in the output filename e.g pyreverse -o png -p name/ path/to/project. - Closes #8504 (`#8504 `_) + Closes #8504 (`#8504 `_) What's new in Pylint 2.17.1? diff --git a/pylint/checkers/mapreduce_checker.py b/pylint/checkers/mapreduce_checker.py index 96e86d7c0e..12abf3a3d2 100644 --- a/pylint/checkers/mapreduce_checker.py +++ b/pylint/checkers/mapreduce_checker.py @@ -1,6 +1,6 @@ # 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 -# Copyright (c) https://github.com/PyCQA/pylint/blob/main/CONTRIBUTORS.txt +# For details: https://github.com/pylint-dev/pylint/blob/main/LICENSE +# Copyright (c) https://github.com/pylint-dev/pylint/blob/main/CONTRIBUTORS.txt from __future__ import annotations diff --git a/pylint/config/arguments_provider.py b/pylint/config/arguments_provider.py index 428f2fdd07..cace7bd4d8 100644 --- a/pylint/config/arguments_provider.py +++ b/pylint/config/arguments_provider.py @@ -178,7 +178,7 @@ def options_by_section( (section, [list of (optname, optdict, optvalue)]) """ # TODO 3.0: Make this function private see - # https://github.com/PyCQA/pylint/pull/6665#discussion_r880143229 + # https://github.com/pylint-dev/pylint/pull/6665#discussion_r880143229 # It's only used in '_get_global_options_documentation' warnings.warn( "options_by_section has been deprecated. It will be removed " diff --git a/pylint/config/configuration_mixin.py b/pylint/config/configuration_mixin.py index 55857224ac..c0b02b6a4c 100644 --- a/pylint/config/configuration_mixin.py +++ b/pylint/config/configuration_mixin.py @@ -1,6 +1,6 @@ # 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 -# Copyright (c) https://github.com/PyCQA/pylint/blob/main/CONTRIBUTORS.txt +# For details: https://github.com/pylint-dev/pylint/blob/main/LICENSE +# Copyright (c) https://github.com/pylint-dev/pylint/blob/main/CONTRIBUTORS.txt from __future__ import annotations diff --git a/pylint/config/environment_variable.py b/pylint/config/environment_variable.py index 291b1651c6..155ca2d869 100644 --- a/pylint/config/environment_variable.py +++ b/pylint/config/environment_variable.py @@ -1,6 +1,6 @@ # 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 -# Copyright (c) https://github.com/PyCQA/pylint/blob/main/CONTRIBUTORS.txt +# For details: https://github.com/pylint-dev/pylint/blob/main/LICENSE +# Copyright (c) https://github.com/pylint-dev/pylint/blob/main/CONTRIBUTORS.txt import warnings diff --git a/pylint/config/option.py b/pylint/config/option.py index 74e4d45d8f..33ab6daa89 100644 --- a/pylint/config/option.py +++ b/pylint/config/option.py @@ -1,6 +1,6 @@ # 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 -# Copyright (c) https://github.com/PyCQA/pylint/blob/main/CONTRIBUTORS.txt +# For details: https://github.com/pylint-dev/pylint/blob/main/LICENSE +# Copyright (c) https://github.com/pylint-dev/pylint/blob/main/CONTRIBUTORS.txt from __future__ import annotations diff --git a/pylint/config/option_manager_mixin.py b/pylint/config/option_manager_mixin.py index c468f494fc..3e2d9d0be7 100644 --- a/pylint/config/option_manager_mixin.py +++ b/pylint/config/option_manager_mixin.py @@ -1,6 +1,6 @@ # 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 -# Copyright (c) https://github.com/PyCQA/pylint/blob/main/CONTRIBUTORS.txt +# For details: https://github.com/pylint-dev/pylint/blob/main/LICENSE +# Copyright (c) https://github.com/pylint-dev/pylint/blob/main/CONTRIBUTORS.txt # pylint: disable=duplicate-code diff --git a/pylint/config/option_parser.py b/pylint/config/option_parser.py index 9ffb801165..c014065e6c 100644 --- a/pylint/config/option_parser.py +++ b/pylint/config/option_parser.py @@ -1,6 +1,6 @@ # 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 -# Copyright (c) https://github.com/PyCQA/pylint/blob/main/CONTRIBUTORS.txt +# For details: https://github.com/pylint-dev/pylint/blob/main/LICENSE +# Copyright (c) https://github.com/pylint-dev/pylint/blob/main/CONTRIBUTORS.txt # type: ignore # Deprecated module. diff --git a/pylint/config/options_provider_mixin.py b/pylint/config/options_provider_mixin.py index 67f64ee0a5..90ba6c678f 100644 --- a/pylint/config/options_provider_mixin.py +++ b/pylint/config/options_provider_mixin.py @@ -1,6 +1,6 @@ # 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 -# Copyright (c) https://github.com/PyCQA/pylint/blob/main/CONTRIBUTORS.txt +# For details: https://github.com/pylint-dev/pylint/blob/main/LICENSE +# Copyright (c) https://github.com/pylint-dev/pylint/blob/main/CONTRIBUTORS.txt # type: ignore # Deprecated module. diff --git a/pylint/epylint.py b/pylint/epylint.py index dd23b450be..8814c182fb 100755 --- a/pylint/epylint.py +++ b/pylint/epylint.py @@ -2,8 +2,8 @@ # -*- vim:fenc=utf-8:ft=python:et:sw=4:ts=4:sts=4 # 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 -# Copyright (c) https://github.com/PyCQA/pylint/blob/main/CONTRIBUTORS.txt +# For details: https://github.com/pylint-dev/pylint/blob/main/LICENSE +# Copyright (c) https://github.com/pylint-dev/pylint/blob/main/CONTRIBUTORS.txt """Emacs and Flymake compatible Pylint. diff --git a/pylint/lint/pylinter.py b/pylint/lint/pylinter.py index 0830efa554..f0164d98e3 100644 --- a/pylint/lint/pylinter.py +++ b/pylint/lint/pylinter.py @@ -1270,7 +1270,7 @@ def _add_one_message( msg_cat = MSG_TYPES[message_definition.msgid[0]] self.msg_status |= MSG_TYPES_STATUS[message_definition.msgid[0]] self.stats.increase_single_message_count(msg_cat, 1) - # TODO: 3.0 Should be removable after https://github.com/PyCQA/pylint/pull/5580 + # TODO: 3.0 Should be removable after https://github.com/pylint-dev/pylint/pull/5580 self.stats.increase_single_module_message_count( self.current_name, # type: ignore[arg-type] msg_cat, diff --git a/pylint/pyreverse/vcg_printer.py b/pylint/pyreverse/vcg_printer.py index b9e2e94f38..bc15683598 100644 --- a/pylint/pyreverse/vcg_printer.py +++ b/pylint/pyreverse/vcg_printer.py @@ -1,6 +1,6 @@ # 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 -# Copyright (c) https://github.com/PyCQA/pylint/blob/main/CONTRIBUTORS.txt +# For details: https://github.com/pylint-dev/pylint/blob/main/LICENSE +# Copyright (c) https://github.com/pylint-dev/pylint/blob/main/CONTRIBUTORS.txt """Functions to generate files readable with George Sander's vcg (Visualization of Compiler Graphs). diff --git a/pylint/testutils/functional_test_file.py b/pylint/testutils/functional_test_file.py index e2bd7f59bd..113cf01142 100644 --- a/pylint/testutils/functional_test_file.py +++ b/pylint/testutils/functional_test_file.py @@ -1,6 +1,6 @@ # 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 -# Copyright (c) https://github.com/PyCQA/pylint/blob/main/CONTRIBUTORS.txt +# For details: https://github.com/pylint-dev/pylint/blob/main/LICENSE +# Copyright (c) https://github.com/pylint-dev/pylint/blob/main/CONTRIBUTORS.txt __all__ = [ "FunctionalTestFile", diff --git a/script/fix_documentation.py b/script/fix_documentation.py index e8def2f737..2ca9380e16 100644 --- a/script/fix_documentation.py +++ b/script/fix_documentation.py @@ -1,6 +1,6 @@ # 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 -# Copyright (c) https://github.com/PyCQA/pylint/blob/main/CONTRIBUTORS.txt +# For details: https://github.com/pylint-dev/pylint/blob/main/LICENSE +# Copyright (c) https://github.com/pylint-dev/pylint/blob/main/CONTRIBUTORS.txt """Small script to fix various issues with the documentation. Used by pre-commit.""" diff --git a/tests/config/test_deprecations.py b/tests/config/test_deprecations.py index 453a460d8c..09287ae09e 100644 --- a/tests/config/test_deprecations.py +++ b/tests/config/test_deprecations.py @@ -1,6 +1,6 @@ # 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 -# Copyright (c) https://github.com/PyCQA/pylint/blob/main/CONTRIBUTORS.txt +# For details: https://github.com/pylint-dev/pylint/blob/main/LICENSE +# Copyright (c) https://github.com/pylint-dev/pylint/blob/main/CONTRIBUTORS.txt """Test for deprecation warnings in the config module.""" diff --git a/tests/config/unittest_config.py b/tests/config/unittest_config.py index 3436636022..2ede56bade 100644 --- a/tests/config/unittest_config.py +++ b/tests/config/unittest_config.py @@ -1,6 +1,6 @@ # 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 -# Copyright (c) https://github.com/PyCQA/pylint/blob/main/CONTRIBUTORS.txt +# For details: https://github.com/pylint-dev/pylint/blob/main/LICENSE +# Copyright (c) https://github.com/pylint-dev/pylint/blob/main/CONTRIBUTORS.txt """Unit tests for the config module.""" diff --git a/tests/functional/u/unused/unused_import.py b/tests/functional/u/unused/unused_import.py index c3d596b247..c8e7c5640b 100644 --- a/tests/functional/u/unused/unused_import.py +++ b/tests/functional/u/unused/unused_import.py @@ -100,7 +100,7 @@ def blop(self): class WithMetaclass(six.with_metaclass(ABCMeta)): - """Regression test for https://github.com/PyCQA/pylint/issues/7506. + """Regression test for https://github.com/pylint-dev/pylint/issues/7506. Requires six.""" diff --git a/tests/test_deprecation.py b/tests/test_deprecation.py index ed57c73069..d68994e7d7 100644 --- a/tests/test_deprecation.py +++ b/tests/test_deprecation.py @@ -1,6 +1,6 @@ # 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 -# Copyright (c) https://github.com/PyCQA/pylint/blob/main/CONTRIBUTORS.txt +# For details: https://github.com/pylint-dev/pylint/blob/main/LICENSE +# Copyright (c) https://github.com/pylint-dev/pylint/blob/main/CONTRIBUTORS.txt """Check deprecation across the codebase.""" diff --git a/tests/test_epylint.py b/tests/test_epylint.py index 7e9116e99a..9b3f6800de 100644 --- a/tests/test_epylint.py +++ b/tests/test_epylint.py @@ -1,8 +1,8 @@ # 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 -# Copyright (c) https://github.com/PyCQA/pylint/blob/main/CONTRIBUTORS.txt +# For details: https://github.com/pylint-dev/pylint/blob/main/LICENSE +# Copyright (c) https://github.com/pylint-dev/pylint/blob/main/CONTRIBUTORS.txt -"""Test for issue https://github.com/PyCQA/pylint/issues/4286.""" +"""Test for issue https://github.com/pylint-dev/pylint/issues/4286.""" # pylint: disable=redefined-outer-name from pathlib import PosixPath