diff options
Diffstat (limited to 'tests/functional')
235 files changed, 446 insertions, 326 deletions
diff --git a/tests/functional/a/access/access_to_protected_members.py b/tests/functional/a/access/access_to_protected_members.py index 9ca221628..334ec6a24 100644 --- a/tests/functional/a/access/access_to_protected_members.py +++ b/tests/functional/a/access/access_to_protected_members.py @@ -215,7 +215,7 @@ class Issue1159Subclass(Issue1159): class Issue3066: """Test for GitHub issue 3066 Accessing of attributes/methods of inner and outer classes - https://github.com/PyCQA/pylint/issues/3066""" + https://github.com/pylint-dev/pylint/issues/3066""" attr = 0 _attr = 1 diff --git a/tests/functional/a/alternative/alternative_union_syntax_error.py b/tests/functional/a/alternative/alternative_union_syntax_error.py index d998b7f00..5730e2e50 100644 --- a/tests/functional/a/alternative/alternative_union_syntax_error.py +++ b/tests/functional/a/alternative/alternative_union_syntax_error.py @@ -10,7 +10,7 @@ Testing only 3.8/3.9 to support TypedDict. # pylint: disable=unnecessary-lambda-assignment # Disabled because of a bug with pypy 3.8 see -# https://github.com/PyCQA/pylint/pull/7918#issuecomment-1352737369 +# https://github.com/pylint-dev/pylint/pull/7918#issuecomment-1352737369 # pylint: disable=multiple-statements import dataclasses diff --git a/tests/functional/a/alternative/alternative_union_syntax_py37.py b/tests/functional/a/alternative/alternative_union_syntax_py37.py index 41eb75ec6..b82a45153 100644 --- a/tests/functional/a/alternative/alternative_union_syntax_py37.py +++ b/tests/functional/a/alternative/alternative_union_syntax_py37.py @@ -9,7 +9,7 @@ Testing only 3.8/3.9 to support TypedDict. # pylint: disable=inherit-non-class,too-few-public-methods,line-too-long,unnecessary-direct-lambda-call # Disabled because of a bug with pypy 3.8 see -# https://github.com/PyCQA/pylint/pull/7918#issuecomment-1352737369 +# https://github.com/pylint-dev/pylint/pull/7918#issuecomment-1352737369 # pylint: disable=multiple-statements from __future__ import annotations diff --git a/tests/functional/a/alternative/alternative_union_syntax_regession_8119.py b/tests/functional/a/alternative/alternative_union_syntax_regession_8119.py index 8ec199958..6859e65a7 100644 --- a/tests/functional/a/alternative/alternative_union_syntax_regession_8119.py +++ b/tests/functional/a/alternative/alternative_union_syntax_regession_8119.py @@ -2,7 +2,7 @@ Syntax support was added in Python 3.10. The code snipped should not raise any errors. -https://github.com/PyCQA/pylint/issues/8119 +https://github.com/pylint-dev/pylint/issues/8119 """ # pylint: disable=missing-docstring,too-few-public-methods from typing import Generic, TypeVar diff --git a/tests/functional/a/arguments.py b/tests/functional/a/arguments.py index 6929b9850..29fdbd5ba 100644 --- a/tests/functional/a/arguments.py +++ b/tests/functional/a/arguments.py @@ -265,7 +265,7 @@ CALL = lambda *args: func(*args) # Ensure `too-many-function-args` is not emitted when a function call is assigned # to a class attribute inside the class where the function is defined. -# Reference: https://github.com/PyCQA/pylint/issues/6592 +# Reference: https://github.com/pylint-dev/pylint/issues/6592 class FruitPicker: def _pick_fruit(fruit): def _print_selection(self): diff --git a/tests/functional/a/arguments_differ.py b/tests/functional/a/arguments_differ.py index f579f89a6..65e953d76 100644 --- a/tests/functional/a/arguments_differ.py +++ b/tests/functional/a/arguments_differ.py @@ -246,7 +246,7 @@ class ChildClass(ParentClass): pass
-# https://github.com/PyCQA/pylint/issues/4443
+# https://github.com/pylint-dev/pylint/issues/4443
# Some valid overwrites with type annotations
import typing # pylint: disable=wrong-import-position
@@ -331,8 +331,8 @@ class Foo2(AbstractFoo): # Adding arguments with default values to a child class is valid
# See:
-# https://github.com/PyCQA/pylint/issues/1556
-# https://github.com/PyCQA/pylint/issues/5338
+# https://github.com/pylint-dev/pylint/issues/1556
+# https://github.com/pylint-dev/pylint/issues/5338
class BaseClass:
diff --git a/tests/functional/a/arguments_differ_issue5371.py b/tests/functional/a/arguments_differ_issue5371.py index a0cd39613..a93302fb8 100644 --- a/tests/functional/a/arguments_differ_issue5371.py +++ b/tests/functional/a/arguments_differ_issue5371.py @@ -1,4 +1,4 @@ -"""https://github.com/PyCQA/pylint/issues/5371""" +"""https://github.com/pylint-dev/pylint/issues/5371""" from enum import Enum diff --git a/tests/functional/a/arguments_positional_only.py b/tests/functional/a/arguments_positional_only.py new file mode 100644 index 000000000..eb03f1803 --- /dev/null +++ b/tests/functional/a/arguments_positional_only.py @@ -0,0 +1,15 @@ +"""Test `no-value-for-parameter` in the context of positional-only parameters""" + +# pylint: disable=missing-docstring, unused-argument + + +def name1(param1, /, **kwargs): ... +def name2(param1, /, param2, **kwargs): ... +def name3(param1=True, /, **kwargs): ... +def name4(param1, **kwargs): ... + +name1(param1=43) # [no-value-for-parameter] +name1(43) +name2(1, param2=False) +name3() +name4(param1=43) diff --git a/tests/functional/s/singledispatch_method_py38.rc b/tests/functional/a/arguments_positional_only.rc index 85fc502b3..85fc502b3 100644 --- a/tests/functional/s/singledispatch_method_py38.rc +++ b/tests/functional/a/arguments_positional_only.rc diff --git a/tests/functional/a/arguments_positional_only.txt b/tests/functional/a/arguments_positional_only.txt new file mode 100644 index 000000000..7112e6880 --- /dev/null +++ b/tests/functional/a/arguments_positional_only.txt @@ -0,0 +1 @@ +no-value-for-parameter:11:0:11:16::No value for argument 'param1' in function call:UNDEFINED diff --git a/tests/functional/a/arguments_renamed.py b/tests/functional/a/arguments_renamed.py index 73105f824..9b120f474 100644 --- a/tests/functional/a/arguments_renamed.py +++ b/tests/functional/a/arguments_renamed.py @@ -74,7 +74,7 @@ class ChildDefaults(ParentDefaults): print(f"arguments: {arg2}") # Check for crash on method definitions not at top level of class -# https://github.com/PyCQA/pylint/issues/5648 +# https://github.com/pylint-dev/pylint/issues/5648 class FruitConditional: define_eat = True diff --git a/tests/functional/a/assigning/assigning_non_slot.py b/tests/functional/a/assigning/assigning_non_slot.py index 7b4322e62..e27af79ac 100644 --- a/tests/functional/a/assigning/assigning_non_slot.py +++ b/tests/functional/a/assigning/assigning_non_slot.py @@ -226,7 +226,7 @@ class MyDescriptor: pass -# Regression test from https://github.com/PyCQA/pylint/issues/6001 +# Regression test from https://github.com/pylint-dev/pylint/issues/6001 class Base: __slots__ = () diff --git a/tests/functional/a/assigning/assigning_non_slot_4509.py b/tests/functional/a/assigning/assigning_non_slot_4509.py index 797c6b083..bb1cde6de 100644 --- a/tests/functional/a/assigning/assigning_non_slot_4509.py +++ b/tests/functional/a/assigning/assigning_non_slot_4509.py @@ -1,8 +1,8 @@ # pylint: disable=invalid-name,missing-docstring,too-few-public-methods # Slots with base that inherits from 'Generic' -# https://github.com/PyCQA/pylint/issues/4509 -# https://github.com/PyCQA/astroid/issues/999 +# https://github.com/pylint-dev/pylint/issues/4509 +# https://github.com/pylint-dev/astroid/issues/999 from typing import Generic, TypeVar T = TypeVar("T") diff --git a/tests/functional/a/assignment/assignment_expression.py b/tests/functional/a/assignment/assignment_expression.py index 0df18f3d6..bf6f8ebf0 100644 --- a/tests/functional/a/assignment/assignment_expression.py +++ b/tests/functional/a/assignment/assignment_expression.py @@ -28,11 +28,11 @@ values = ( ) -# https://github.com/PyCQA/pylint/issues/3347 +# https://github.com/pylint-dev/pylint/issues/3347 s = 'foo' if (fval := lambda: 1) is None else fval -# https://github.com/PyCQA/pylint/issues/3953 +# https://github.com/pylint-dev/pylint/issues/3953 assert (n := 2) == 1, f"Expected 1, but got {n}" dict({1: (o := 2)}, data=o) assert (p := 2) == 1, \ @@ -42,7 +42,7 @@ FOO_PATT = re.compile("") foo = m.group("foo") if (m := FOO_PATT.match("")) else False -# https://github.com/PyCQA/pylint/issues/3865 +# https://github.com/pylint-dev/pylint/issues/3865 if (c := lambda: 2) and c(): print("ok") @@ -50,7 +50,7 @@ def func(): print((d := lambda: 2) and d) -# https://github.com/PyCQA/pylint/issues/3275 +# https://github.com/pylint-dev/pylint/issues/3275 values = ( e := 1, f := e, @@ -64,11 +64,11 @@ function = lambda: ( print(function()) -# https://github.com/PyCQA/pylint/issues/3763 +# https://github.com/pylint-dev/pylint/issues/3763 foo if (foo := 3 - 2) > 0 else 0 -# https://github.com/PyCQA/pylint/issues/4238 +# https://github.com/pylint-dev/pylint/issues/4238 l1 = f'The number {(count1 := 4)} ' \ f'is equal to {count1}' l2: str = ( @@ -82,13 +82,13 @@ l3 += ( ) -# https://github.com/PyCQA/pylint/issues/4301 +# https://github.com/pylint-dev/pylint/issues/4301 def func2(): return f'The number {(count := 4)} ' \ f'is equal to {count}' -# https://github.com/PyCQA/pylint/issues/4828 +# https://github.com/pylint-dev/pylint/issues/4828 def func3(): return bar if (bar := "") else "" @@ -99,7 +99,7 @@ def func4(): # Crash related to assignment expression in nested if statements -# See https://github.com/PyCQA/pylint/issues/5178 +# See https://github.com/pylint-dev/pylint/issues/5178 def func5(val): variable = None diff --git a/tests/functional/a/assignment/assignment_from_no_return.py b/tests/functional/a/assignment/assignment_from_no_return.py index 673e5e467..7084beb2f 100644 --- a/tests/functional/a/assignment/assignment_from_no_return.py +++ b/tests/functional/a/assignment/assignment_from_no_return.py @@ -55,7 +55,7 @@ class Child(Parent): return 42 -# Regression test for https://github.com/PyCQA/pylint/issues/4220 +# Regression test for https://github.com/pylint-dev/pylint/issues/4220 class A: """Parent class""" def f(self): diff --git a/tests/functional/b/bad_option_value.txt b/tests/functional/b/bad_option_value.txt index ce7605691..51af412f7 100644 --- a/tests/functional/b/bad_option_value.txt +++ b/tests/functional/b/bad_option_value.txt @@ -1,17 +1,17 @@ unknown-option-value:4:0:None:None::Unknown option value for 'disable', expected a valid pylint message and got 'C05048':HIGH -useless-option-value:6:0:None:None::"Useless option value for 'disable', 'execfile-builtin' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942.":HIGH +useless-option-value:6:0:None:None::"Useless option value for 'disable', 'execfile-builtin' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.":HIGH useless-option-value:8:0:None:None::"Useless option value for 'disable', 'no-self-use' was moved to an optional extension, see https://pylint.readthedocs.io/en/latest/whatsnew/2/2.14/summary.html#removed-checkers.":HIGH -useless-option-value:10:0:None:None::"Useless option value for 'disable', 'W1656' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942.":HIGH +useless-option-value:10:0:None:None::"Useless option value for 'disable', 'W1656' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.":HIGH useless-option-value:12:0:None:None::"Useless option value for 'disable', 'R0201' was moved to an optional extension, see https://pylint.readthedocs.io/en/latest/whatsnew/2/2.14/summary.html#removed-checkers.":HIGH unknown-option-value:14:0:None:None::Unknown option value for 'disable-next', expected a valid pylint message and got 'R78948':HIGH -useless-option-value:16:0:None:None::"Useless option value for 'disable-next', 'deprecated-types-field' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942.":HIGH -useless-option-value:18:0:None:None::"Useless option value for 'disable-next', 'W1634' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942.":HIGH +useless-option-value:16:0:None:None::"Useless option value for 'disable-next', 'deprecated-types-field' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.":HIGH +useless-option-value:18:0:None:None::"Useless option value for 'disable-next', 'W1634' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.":HIGH useless-option-value:20:0:None:None::"Useless option value for 'disable-next', 'no-self-use' was moved to an optional extension, see https://pylint.readthedocs.io/en/latest/whatsnew/2/2.14/summary.html#removed-checkers.":HIGH useless-option-value:22:0:None:None::"Useless option value for 'disable-next', 'R0201' was moved to an optional extension, see https://pylint.readthedocs.io/en/latest/whatsnew/2/2.14/summary.html#removed-checkers.":HIGH unknown-option-value:25:0:None:None::Unknown option value for 'enable', expected a valid pylint message and got 'W04044':HIGH -useless-option-value:27:0:None:None::"Useless option value for 'enable', 'dict-values-not-iterating' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942.":HIGH +useless-option-value:27:0:None:None::"Useless option value for 'enable', 'dict-values-not-iterating' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.":HIGH useless-option-value:29:0:None:None::"Useless option value for 'enable', 'no-self-use' was moved to an optional extension, see https://pylint.readthedocs.io/en/latest/whatsnew/2/2.14/summary.html#removed-checkers.":HIGH -useless-option-value:31:0:None:None::"Useless option value for 'enable', 'W1622' was removed from pylint, see https://github.com/PyCQA/pylint/pull/4942.":HIGH +useless-option-value:31:0:None:None::"Useless option value for 'enable', 'W1622' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942.":HIGH useless-option-value:33:0:None:None::"Useless option value for 'enable', 'R0201' was moved to an optional extension, see https://pylint.readthedocs.io/en/latest/whatsnew/2/2.14/summary.html#removed-checkers.":HIGH -useless-option-value:36:0:None:None::"Useless option value for 'disable', 'no-space-after-operator' was removed from pylint, see https://github.com/PyCQA/pylint/pull/3577.":HIGH -useless-option-value:38:0:None:None::"Useless option value for 'disable', 'C0323' was removed from pylint, see https://github.com/PyCQA/pylint/pull/3577.":HIGH +useless-option-value:36:0:None:None::"Useless option value for 'disable', 'no-space-after-operator' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/3577.":HIGH +useless-option-value:38:0:None:None::"Useless option value for 'disable', 'C0323' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/3577.":HIGH diff --git a/tests/functional/c/cached_property.py b/tests/functional/c/cached_property.py index 0b75f246b..85d271ab5 100644 --- a/tests/functional/c/cached_property.py +++ b/tests/functional/c/cached_property.py @@ -2,7 +2,7 @@ from functools import cached_property -# https://github.com/PyCQA/pylint/issues/4023 +# https://github.com/pylint-dev/pylint/issues/4023 # False-positive 'invalid-overridden-method' with 'cached_property' class Parent: @property diff --git a/tests/functional/c/cellvar_escaping_loop.py b/tests/functional/c/cellvar_escaping_loop.py index 8781e6c5c..eb120ea79 100644 --- a/tests/functional/c/cellvar_escaping_loop.py +++ b/tests/functional/c/cellvar_escaping_loop.py @@ -95,7 +95,7 @@ def good_case_issue3107(): def good_case_issue_5012(): """Eager binding of cell variable when used as the default value of a keyword-only argument. - https://github.com/PyCQA/pylint/issues/5012 + https://github.com/pylint-dev/pylint/issues/5012 """ funs = [] for i in range(5): diff --git a/tests/functional/c/class_protocol_ellipsis.py b/tests/functional/c/class_protocol_ellipsis.py index ef5d3b34e..a6c0b0677 100644 --- a/tests/functional/c/class_protocol_ellipsis.py +++ b/tests/functional/c/class_protocol_ellipsis.py @@ -5,7 +5,7 @@ from typing import Any, Iterator class MyClass: """The "invalid-*-returned" messages shouldn't be emitted for stub functions - Original issue: https://github.com/PyCQA/pylint/issues/4736""" + Original issue: https://github.com/pylint-dev/pylint/issues/4736""" def __len__(self) -> int: ... diff --git a/tests/functional/c/comparison_with_callable_typing_constants.py b/tests/functional/c/comparison_with_callable_typing_constants.py index 70aa9763f..487edc80f 100644 --- a/tests/functional/c/comparison_with_callable_typing_constants.py +++ b/tests/functional/c/comparison_with_callable_typing_constants.py @@ -6,7 +6,7 @@ from typing import Any, Optional def check_any(type_) -> bool: - """See https://github.com/PyCQA/pylint/issues/5557""" + """See https://github.com/pylint-dev/pylint/issues/5557""" return type_ == Any diff --git a/tests/functional/c/consider/consider_iterating_dictionary.py b/tests/functional/c/consider/consider_iterating_dictionary.py index 91402bf77..507e7c0c9 100644 --- a/tests/functional/c/consider/consider_iterating_dictionary.py +++ b/tests/functional/c/consider/consider_iterating_dictionary.py @@ -68,7 +68,7 @@ VAR = 1 in dict() VAR = [1, 2] == {}.keys() in {False} # Additional membership checks -# See: https://github.com/PyCQA/pylint/issues/5323 +# See: https://github.com/pylint-dev/pylint/issues/5323 metadata = {} if "a" not in list(metadata.keys()): # [consider-iterating-dictionary] print(1) diff --git a/tests/functional/c/consider/consider_using_dict_items.py b/tests/functional/c/consider/consider_using_dict_items.py index 7ffea608f..7fd74814f 100644 --- a/tests/functional/c/consider/consider_using_dict_items.py +++ b/tests/functional/c/consider/consider_using_dict_items.py @@ -86,7 +86,7 @@ val = any(True for k8 in Foo.c_dict if c_dict[k8]) val = any(True for k8 in Foo.c_dict.keys() if Foo.c_dict[k8]) # [consider-iterating-dictionary,consider-using-dict-items]
# Test false positive described in #4630
-# (https://github.com/PyCQA/pylint/issues/4630)
+# (https://github.com/pylint-dev/pylint/issues/4630)
d = {'key': 'value'}
diff --git a/tests/functional/c/consider/consider_using_enumerate.py b/tests/functional/c/consider/consider_using_enumerate.py index 352669f6a..1b8bb4c6b 100644 --- a/tests/functional/c/consider/consider_using_enumerate.py +++ b/tests/functional/c/consider/consider_using_enumerate.py @@ -73,7 +73,7 @@ def does_not_crash_on_range_without_args(): print(elem)
# False negative described in #3657
-# https://github.com/PyCQA/pylint/issues/3657
+# https://github.com/pylint-dev/pylint/issues/3657
class MyClass:
def __init__(self):
self.my_list = []
diff --git a/tests/functional/c/consider/consider_using_f_string.py b/tests/functional/c/consider/consider_using_f_string.py index e961c44f7..e0a4831cf 100644 --- a/tests/functional/c/consider/consider_using_f_string.py +++ b/tests/functional/c/consider/consider_using_f_string.py @@ -1,4 +1,4 @@ -"""Test to see if a f-string would be possible and consider-using-f-string should be raised""" +"""Test to see if an f-string would be possible and consider-using-f-string should be raised""" # pylint: disable=unused-variable, invalid-name, missing-function-docstring, pointless-statement # pylint: disable=expression-not-assigned, repeated-keyword, too-many-locals diff --git a/tests/functional/c/consider/consider_using_f_string.txt b/tests/functional/c/consider/consider_using_f_string.txt index 1d68e947b..e7785bae6 100644 --- a/tests/functional/c/consider/consider_using_f_string.txt +++ b/tests/functional/c/consider/consider_using_f_string.txt @@ -1,30 +1,30 @@ -consider-using-f-string:45:10:45:21:print_bad:Formatting a regular string which could be a f-string:UNDEFINED -consider-using-f-string:46:10:46:21:print_bad:Formatting a regular string which could be a f-string:UNDEFINED -consider-using-f-string:47:10:47:28:print_bad:Formatting a regular string which could be a f-string:UNDEFINED -consider-using-f-string:48:10:48:17:print_bad:Formatting a regular string which could be a f-string:UNDEFINED -consider-using-f-string:49:10:49:26:print_bad:Formatting a regular string which could be a f-string:UNDEFINED -consider-using-f-string:50:10:50:21:print_bad:Formatting a regular string which could be a f-string:UNDEFINED -consider-using-f-string:51:10:51:21:print_bad:Formatting a regular string which could be a f-string:UNDEFINED -consider-using-f-string:52:10:52:21:print_bad:Formatting a regular string which could be a f-string:UNDEFINED -consider-using-f-string:53:10:53:24:print_bad:Formatting a regular string which could be a f-string:UNDEFINED -consider-using-f-string:54:10:54:21:print_bad:Formatting a regular string which could be a f-string:UNDEFINED -consider-using-f-string:80:4:80:15:statement_bad:Formatting a regular string which could be a f-string:UNDEFINED -consider-using-f-string:81:4:81:15:statement_bad:Formatting a regular string which could be a f-string:UNDEFINED -consider-using-f-string:82:4:82:22:statement_bad:Formatting a regular string which could be a f-string:UNDEFINED -consider-using-f-string:83:4:83:11:statement_bad:Formatting a regular string which could be a f-string:UNDEFINED -consider-using-f-string:84:4:84:20:statement_bad:Formatting a regular string which could be a f-string:UNDEFINED -consider-using-f-string:85:4:85:15:statement_bad:Formatting a regular string which could be a f-string:UNDEFINED -consider-using-f-string:86:4:86:15:statement_bad:Formatting a regular string which could be a f-string:UNDEFINED -consider-using-f-string:87:4:87:15:statement_bad:Formatting a regular string which could be a f-string:UNDEFINED -consider-using-f-string:88:4:88:18:statement_bad:Formatting a regular string which could be a f-string:UNDEFINED -consider-using-f-string:89:4:89:15:statement_bad:Formatting a regular string which could be a f-string:UNDEFINED -consider-using-f-string:112:8:112:19:assignment_bad:Formatting a regular string which could be a f-string:UNDEFINED -consider-using-f-string:113:8:113:19:assignment_bad:Formatting a regular string which could be a f-string:UNDEFINED -consider-using-f-string:114:8:114:26:assignment_bad:Formatting a regular string which could be a f-string:UNDEFINED -consider-using-f-string:115:8:115:15:assignment_bad:Formatting a regular string which could be a f-string:UNDEFINED -consider-using-f-string:116:8:116:24:assignment_bad:Formatting a regular string which could be a f-string:UNDEFINED -consider-using-f-string:117:8:117:19:assignment_bad:Formatting a regular string which could be a f-string:UNDEFINED -consider-using-f-string:118:8:118:19:assignment_bad:Formatting a regular string which could be a f-string:UNDEFINED -consider-using-f-string:119:8:119:19:assignment_bad:Formatting a regular string which could be a f-string:UNDEFINED -consider-using-f-string:120:8:120:22:assignment_bad:Formatting a regular string which could be a f-string:UNDEFINED -consider-using-f-string:121:8:121:19:assignment_bad:Formatting a regular string which could be a f-string:UNDEFINED +consider-using-f-string:45:10:45:21:print_bad:Formatting a regular string which could be an f-string:UNDEFINED +consider-using-f-string:46:10:46:21:print_bad:Formatting a regular string which could be an f-string:UNDEFINED +consider-using-f-string:47:10:47:28:print_bad:Formatting a regular string which could be an f-string:UNDEFINED +consider-using-f-string:48:10:48:17:print_bad:Formatting a regular string which could be an f-string:UNDEFINED +consider-using-f-string:49:10:49:26:print_bad:Formatting a regular string which could be an f-string:UNDEFINED +consider-using-f-string:50:10:50:21:print_bad:Formatting a regular string which could be an f-string:UNDEFINED +consider-using-f-string:51:10:51:21:print_bad:Formatting a regular string which could be an f-string:UNDEFINED +consider-using-f-string:52:10:52:21:print_bad:Formatting a regular string which could be an f-string:UNDEFINED +consider-using-f-string:53:10:53:24:print_bad:Formatting a regular string which could be an f-string:UNDEFINED +consider-using-f-string:54:10:54:21:print_bad:Formatting a regular string which could be an f-string:UNDEFINED +consider-using-f-string:80:4:80:15:statement_bad:Formatting a regular string which could be an f-string:UNDEFINED +consider-using-f-string:81:4:81:15:statement_bad:Formatting a regular string which could be an f-string:UNDEFINED +consider-using-f-string:82:4:82:22:statement_bad:Formatting a regular string which could be an f-string:UNDEFINED +consider-using-f-string:83:4:83:11:statement_bad:Formatting a regular string which could be an f-string:UNDEFINED +consider-using-f-string:84:4:84:20:statement_bad:Formatting a regular string which could be an f-string:UNDEFINED +consider-using-f-string:85:4:85:15:statement_bad:Formatting a regular string which could be an f-string:UNDEFINED +consider-using-f-string:86:4:86:15:statement_bad:Formatting a regular string which could be an f-string:UNDEFINED +consider-using-f-string:87:4:87:15:statement_bad:Formatting a regular string which could be an f-string:UNDEFINED +consider-using-f-string:88:4:88:18:statement_bad:Formatting a regular string which could be an f-string:UNDEFINED +consider-using-f-string:89:4:89:15:statement_bad:Formatting a regular string which could be an f-string:UNDEFINED +consider-using-f-string:112:8:112:19:assignment_bad:Formatting a regular string which could be an f-string:UNDEFINED +consider-using-f-string:113:8:113:19:assignment_bad:Formatting a regular string which could be an f-string:UNDEFINED +consider-using-f-string:114:8:114:26:assignment_bad:Formatting a regular string which could be an f-string:UNDEFINED +consider-using-f-string:115:8:115:15:assignment_bad:Formatting a regular string which could be an f-string:UNDEFINED +consider-using-f-string:116:8:116:24:assignment_bad:Formatting a regular string which could be an f-string:UNDEFINED +consider-using-f-string:117:8:117:19:assignment_bad:Formatting a regular string which could be an f-string:UNDEFINED +consider-using-f-string:118:8:118:19:assignment_bad:Formatting a regular string which could be an f-string:UNDEFINED +consider-using-f-string:119:8:119:19:assignment_bad:Formatting a regular string which could be an f-string:UNDEFINED +consider-using-f-string:120:8:120:22:assignment_bad:Formatting a regular string which could be an f-string:UNDEFINED +consider-using-f-string:121:8:121:19:assignment_bad:Formatting a regular string which could be an f-string:UNDEFINED diff --git a/tests/functional/c/consider/consider_using_generator.py b/tests/functional/c/consider/consider_using_generator.py index ee561a7e9..af5700373 100644 --- a/tests/functional/c/consider/consider_using_generator.py +++ b/tests/functional/c/consider/consider_using_generator.py @@ -1,5 +1,5 @@ # pylint: disable=missing-docstring, invalid-name -# https://github.com/PyCQA/pylint/issues/3165 +# https://github.com/pylint-dev/pylint/issues/3165 list([]) tuple([]) diff --git a/tests/functional/c/consider/consider_using_min_max_builtin.py b/tests/functional/c/consider/consider_using_min_max_builtin.py index 6e7c7b886..e33394c47 100644 --- a/tests/functional/c/consider/consider_using_min_max_builtin.py +++ b/tests/functional/c/consider/consider_using_min_max_builtin.py @@ -97,7 +97,7 @@ else: value = 3 -# https://github.com/PyCQA/pylint/issues/4379 +# https://github.com/pylint-dev/pylint/issues/4379 var = 1 if var == -1: var = None diff --git a/tests/functional/c/consider/consider_using_with.py b/tests/functional/c/consider/consider_using_with.py index 1c87582ee..e8e162337 100644 --- a/tests/functional/c/consider/consider_using_with.py +++ b/tests/functional/c/consider/consider_using_with.py @@ -230,7 +230,7 @@ with used_pool: def test_subscript_assignment(): """ - Regression test for issue https://github.com/PyCQA/pylint/issues/4732. + Regression test for issue https://github.com/pylint-dev/pylint/issues/4732. If a context manager is assigned to a list or dict, we are not able to tell if / how the context manager is used later on, as it is not assigned to a variable or attribute directly. diff --git a/tests/functional/d/dataclass/dataclass_typecheck.py b/tests/functional/d/dataclass/dataclass_typecheck.py index fbd770704..e66755640 100644 --- a/tests/functional/d/dataclass/dataclass_typecheck.py +++ b/tests/functional/d/dataclass/dataclass_typecheck.py @@ -1,12 +1,12 @@ """Tests for dataclass attributes with basic type annotations. -Tests for regressions from https://github.com/PyCQA/astroid/pull/1126 +Tests for regressions from https://github.com/pylint-dev/astroid/pull/1126 """ # pylint: disable=missing-docstring,too-few-public-methods,pointless-statement,redefined-builtin, fixme # Disabled because of a bug with pypy 3.8 see -# https://github.com/PyCQA/pylint/pull/7918#issuecomment-1352737369 +# https://github.com/pylint-dev/pylint/pull/7918#issuecomment-1352737369 # pylint: disable=multiple-statements from dataclasses import dataclass diff --git a/tests/functional/d/dataclass/dataclass_with_default_factory.py b/tests/functional/d/dataclass/dataclass_with_default_factory.py index db392d8b7..809c3304b 100644 --- a/tests/functional/d/dataclass/dataclass_with_default_factory.py +++ b/tests/functional/d/dataclass/dataclass_with_default_factory.py @@ -1,7 +1,7 @@ """Various regression tests for dataclasses.""" # See issues: -# - https://github.com/PyCQA/pylint/issues/2605 -# - https://github.com/PyCQA/pylint/issues/2698 +# - https://github.com/pylint-dev/pylint/issues/2605 +# - https://github.com/pylint-dev/pylint/issues/2698 from dataclasses import dataclass, field import dataclasses as dc from typing import cast diff --git a/tests/functional/d/dataclass/dataclass_with_field.py b/tests/functional/d/dataclass/dataclass_with_field.py index 9a807becb..04a186c72 100644 --- a/tests/functional/d/dataclass/dataclass_with_field.py +++ b/tests/functional/d/dataclass/dataclass_with_field.py @@ -1,4 +1,4 @@ -"""Regression test for https://github.com/PyCQA/pylint/issues/4899""" +"""Regression test for https://github.com/pylint-dev/pylint/issues/4899""" # pylint: disable=missing-docstring,too-few-public-methods diff --git a/tests/functional/d/disabled_msgid_in_pylintrc.py b/tests/functional/d/disabled_msgid_in_pylintrc.py index 91cb155e1..7ad701de9 100644 --- a/tests/functional/d/disabled_msgid_in_pylintrc.py +++ b/tests/functional/d/disabled_msgid_in_pylintrc.py @@ -1,4 +1,4 @@ -"""https://github.com/PyCQA/pylint/issues/4265""" +"""https://github.com/pylint-dev/pylint/issues/4265""" try: f = open('test', encoding="utf-8") diff --git a/tests/functional/e/.#emacs_file_lock.py b/tests/functional/e/.#emacs_file_lock.py index e2ed09d7c..a21e28482 100644 --- a/tests/functional/e/.#emacs_file_lock.py +++ b/tests/functional/e/.#emacs_file_lock.py @@ -1,4 +1,4 @@ # The name is invalid, but we should not analyse this file # Because its filename reseambles an Emacs file lock ignored by default # https://www.gnu.org/software/emacs/manual/html_node/elisp/File-Locks.html -# See https://github.com/PyCQA/pylint/issues/367 +# See https://github.com/pylint-dev/pylint/issues/367 diff --git a/tests/functional/e/.#emacs_file_lock_by_conf.py b/tests/functional/e/.#emacs_file_lock_by_conf.py index a7247f609..af875582c 100644 --- a/tests/functional/e/.#emacs_file_lock_by_conf.py +++ b/tests/functional/e/.#emacs_file_lock_by_conf.py @@ -1,3 +1,3 @@ # The name is invalid, but we should not analyse this file # Because it resembles an Emacs file lock and is ignored by the configuration -# See https://github.com/PyCQA/pylint/issues/367 +# See https://github.com/pylint-dev/pylint/issues/367 diff --git a/tests/functional/e/enum_self_defined_member_5138.py b/tests/functional/e/enum_self_defined_member_5138.py index 4a49903c6..d9a6c105e 100644 --- a/tests/functional/e/enum_self_defined_member_5138.py +++ b/tests/functional/e/enum_self_defined_member_5138.py @@ -1,4 +1,4 @@ -"""Tests for self-defined Enum members (https://github.com/PyCQA/pylint/issues/5138)""" +"""Tests for self-defined Enum members (https://github.com/pylint-dev/pylint/issues/5138)""" # pylint: disable=missing-docstring from enum import IntEnum, Enum diff --git a/tests/functional/e/enum_self_defined_member_6805.py b/tests/functional/e/enum_self_defined_member_6805.py index bcf0c8e10..1b70bbe82 100644 --- a/tests/functional/e/enum_self_defined_member_6805.py +++ b/tests/functional/e/enum_self_defined_member_6805.py @@ -1,4 +1,4 @@ -"""Tests for self-defined Enum members (https://github.com/PyCQA/pylint/issues/6805)""" +"""Tests for self-defined Enum members (https://github.com/pylint-dev/pylint/issues/6805)""" # pylint: disable=missing-docstring # pylint: disable=too-few-public-methods from enum import IntEnum diff --git a/tests/functional/e/enum_subclasses.py b/tests/functional/e/enum_subclasses.py index 6ad453a4b..eb6e1bebb 100644 --- a/tests/functional/e/enum_subclasses.py +++ b/tests/functional/e/enum_subclasses.py @@ -3,7 +3,7 @@ from enum import Enum, Flag, IntEnum, auto class Issue1932(IntEnum): - """https://github.com/PyCQA/pylint/issues/1932""" + """https://github.com/pylint-dev/pylint/issues/1932""" FOO = 1 @@ -12,7 +12,7 @@ class Issue1932(IntEnum): class Issue2062(Enum): - """https://github.com/PyCQA/pylint/issues/2062""" + """https://github.com/pylint-dev/pylint/issues/2062""" FOO = 1 BAR = 2 @@ -81,7 +81,7 @@ assert test_enum.hello_pylint() == test_enum.name # Check combinations of Flag members using the bitwise operators (&, |, ^, ~) -# https://github.com/PyCQA/pylint/issues/7381 +# https://github.com/pylint-dev/pylint/issues/7381 class Colour(Flag): NONE = 0 RED = 2 diff --git a/tests/functional/ext/code_style/cs_consider_using_augmented_assign.py b/tests/functional/ext/code_style/cs_consider_using_augmented_assign.py index 417bc5c0b..ab3acfe27 100644 --- a/tests/functional/ext/code_style/cs_consider_using_augmented_assign.py +++ b/tests/functional/ext/code_style/cs_consider_using_augmented_assign.py @@ -121,7 +121,7 @@ x = x <= 3 x = 3 <= x -# https://github.com/PyCQA/pylint/issues/8086 +# https://github.com/pylint-dev/pylint/issues/8086 # consider-using-augmented-assign should only be flagged # if names attribute names match exactly. diff --git a/tests/functional/ext/docparams/parameter/missing_param_doc_required_Google.py b/tests/functional/ext/docparams/parameter/missing_param_doc_required_Google.py index 92646a87f..917841581 100644 --- a/tests/functional/ext/docparams/parameter/missing_param_doc_required_Google.py +++ b/tests/functional/ext/docparams/parameter/missing_param_doc_required_Google.py @@ -12,7 +12,7 @@ https://google.github.io/styleguide/pyguide.html#doc-function-args def test_multi_line_parameters(param: int) -> None: """Checks that multi line parameters lists are checked correctly - See https://github.com/PyCQA/pylint/issues/5452 + See https://github.com/pylint-dev/pylint/issues/5452 Args: param: diff --git a/tests/functional/ext/docparams/parameter/missing_param_doc_required_Numpy.py b/tests/functional/ext/docparams/parameter/missing_param_doc_required_Numpy.py index 5626ad385..794f4c2f6 100644 --- a/tests/functional/ext/docparams/parameter/missing_param_doc_required_Numpy.py +++ b/tests/functional/ext/docparams/parameter/missing_param_doc_required_Numpy.py @@ -394,7 +394,7 @@ def test_ignores_optional_specifier_numpy(param, param2="all"): def test_with_list_of_default_values(arg, option, option2): - """Reported in https://github.com/PyCQA/pylint/issues/4035. + """Reported in https://github.com/pylint-dev/pylint/issues/4035. Parameters ---------- @@ -412,7 +412,7 @@ def test_with_list_of_default_values(arg, option, option2): def test_with_descriptions_instead_of_typing(arg, axis, option): """We choose to accept description in place of typing as well. - See: https://github.com/PyCQA/pylint/pull/7398. + See: https://github.com/pylint-dev/pylint/pull/7398. Parameters ---------- diff --git a/tests/functional/ext/docparams/parameter/missing_param_doc_required_Sphinx.py b/tests/functional/ext/docparams/parameter/missing_param_doc_required_Sphinx.py index a2a2f7c92..36f3aed1f 100644 --- a/tests/functional/ext/docparams/parameter/missing_param_doc_required_Sphinx.py +++ b/tests/functional/ext/docparams/parameter/missing_param_doc_required_Sphinx.py @@ -220,7 +220,7 @@ def test_finds_args_without_type_sphinx( # [inconsistent-return-statements] ): r"""The Sphinx docstring In Sphinx docstrings asterisks should be escaped. - See https://github.com/PyCQA/pylint/issues/5406 + See https://github.com/pylint-dev/pylint/issues/5406 :param named_arg: Returned :type named_arg: object @@ -239,7 +239,7 @@ def test_finds_kwargs_without_type_sphinx( # [inconsistent-return-statements] ): r"""The Sphinx docstring In Sphinx docstrings asterisks should be escaped. - See https://github.com/PyCQA/pylint/issues/5406 + See https://github.com/pylint-dev/pylint/issues/5406 :param named_arg: Returned :type named_arg: object diff --git a/tests/functional/ext/docparams/raise/missing_raises_doc_options.py b/tests/functional/ext/docparams/raise/missing_raises_doc_options.py index eb3cd3ac3..5f1ef3969 100644 --- a/tests/functional/ext/docparams/raise/missing_raises_doc_options.py +++ b/tests/functional/ext/docparams/raise/missing_raises_doc_options.py @@ -3,7 +3,7 @@ accept-no-raise-doc option is set to True. Requires at least one matching section (`Docstring.matching_sections`). -Taken from https://github.com/PyCQA/pylint/issues/7208 +Taken from https://github.com/pylint-dev/pylint/issues/7208 """ diff --git a/tests/functional/ext/for_any_all/for_any_all.py b/tests/functional/ext/for_any_all/for_any_all.py index 649739c37..fb09e491b 100644 --- a/tests/functional/ext/for_any_all/for_any_all.py +++ b/tests/functional/ext/for_any_all/for_any_all.py @@ -147,7 +147,7 @@ def is_from_decorator(node): return False def optimized_any_with_break(split_lines, max_chars): - """False negative found in https://github.com/PyCQA/pylint/pull/7697""" + """False negative found in https://github.com/pylint-dev/pylint/pull/7697""" potential_line_length_warning = False for line in split_lines: # [consider-using-any-or-all] if len(line) > max_chars: diff --git a/tests/functional/ext/redefined_loop_name/redefined_loop_name.py b/tests/functional/ext/redefined_loop_name/redefined_loop_name.py index 0af49f9bf..ed4efcffe 100644 --- a/tests/functional/ext/redefined_loop_name/redefined_loop_name.py +++ b/tests/functional/ext/redefined_loop_name/redefined_loop_name.py @@ -1,6 +1,6 @@ """Tests for redefinitions of loop variables inside the loop body. -See: https://github.com/PyCQA/pylint/issues/5608 +See: https://github.com/pylint-dev/pylint/issues/5608 """ # pylint: disable=invalid-name diff --git a/tests/functional/ext/redefined_variable_type/redefined_variable_type.py b/tests/functional/ext/redefined_variable_type/redefined_variable_type.py index 1d31bc968..e642ad520 100644 --- a/tests/functional/ext/redefined_variable_type/redefined_variable_type.py +++ b/tests/functional/ext/redefined_variable_type/redefined_variable_type.py @@ -86,7 +86,7 @@ def func2(x): # Test that ``redefined-variable-type`` is not emitted -# https://github.com/PyCQA/pylint/issues/8120 +# https://github.com/pylint-dev/pylint/issues/8120 async def test_a(): data = [ diff --git a/tests/functional/ext/redefined_variable_type/regression_newtype_fstring.py b/tests/functional/ext/redefined_variable_type/regression_newtype_fstring.py index 1e3cb2808..d06bf4751 100644 --- a/tests/functional/ext/redefined_variable_type/regression_newtype_fstring.py +++ b/tests/functional/ext/redefined_variable_type/regression_newtype_fstring.py @@ -1,5 +1,5 @@ """Regression test for issue 5770: NewType created with f-string -See: https://github.com/PyCQA/pylint/issues/5770 +See: https://github.com/pylint-dev/pylint/issues/5770 """ from typing import NewType diff --git a/tests/functional/ext/typing/typing_consider_using_alias.py b/tests/functional/ext/typing/typing_consider_using_alias.py index 8fe3b5918..070451cf0 100644 --- a/tests/functional/ext/typing/typing_consider_using_alias.py +++ b/tests/functional/ext/typing/typing_consider_using_alias.py @@ -7,7 +7,7 @@ With 'from __future__ import annotations' present. # pylint: disable=missing-docstring,invalid-name,unused-argument,line-too-long,unnecessary-direct-lambda-call # Disabled because of a bug with pypy 3.8 see -# https://github.com/PyCQA/pylint/pull/7918#issuecomment-1352737369 +# https://github.com/pylint-dev/pylint/pull/7918#issuecomment-1352737369 # pylint: disable=multiple-statements from __future__ import annotations diff --git a/tests/functional/ext/typing/typing_consider_using_alias_without_future.py b/tests/functional/ext/typing/typing_consider_using_alias_without_future.py index 943a16188..b597e955e 100644 --- a/tests/functional/ext/typing/typing_consider_using_alias_without_future.py +++ b/tests/functional/ext/typing/typing_consider_using_alias_without_future.py @@ -7,7 +7,7 @@ # pylint: disable=unnecessary-direct-lambda-call # Disabled because of a bug with pypy 3.8 see -# https://github.com/PyCQA/pylint/pull/7918#issuecomment-1352737369 +# https://github.com/pylint-dev/pylint/pull/7918#issuecomment-1352737369 # pylint: disable=multiple-statements import collections diff --git a/tests/functional/ext/typing/typing_consider_using_union.py b/tests/functional/ext/typing/typing_consider_using_union.py index 780a96100..64918175e 100644 --- a/tests/functional/ext/typing/typing_consider_using_union.py +++ b/tests/functional/ext/typing/typing_consider_using_union.py @@ -8,7 +8,7 @@ With 'from __future__ import annotations' present. # pylint: disable=consider-using-alias,unnecessary-direct-lambda-call # Disabled because of a bug with pypy 3.8 see -# https://github.com/PyCQA/pylint/pull/7918#issuecomment-1352737369 +# https://github.com/pylint-dev/pylint/pull/7918#issuecomment-1352737369 # pylint: disable=multiple-statements from __future__ import annotations diff --git a/tests/functional/ext/typing/typing_consider_using_union_without_future.py b/tests/functional/ext/typing/typing_consider_using_union_without_future.py index d29ba306e..3cad6cb74 100644 --- a/tests/functional/ext/typing/typing_consider_using_union_without_future.py +++ b/tests/functional/ext/typing/typing_consider_using_union_without_future.py @@ -7,7 +7,7 @@ # pylint: disable=consider-using-alias # Disabled because of a bug with pypy 3.8 see -# https://github.com/PyCQA/pylint/pull/7918#issuecomment-1352737369 +# https://github.com/pylint-dev/pylint/pull/7918#issuecomment-1352737369 # pylint: disable=multiple-statements from dataclasses import dataclass diff --git a/tests/functional/g/generated_members.py b/tests/functional/g/generated_members.py index ffb3de631..25afa7598 100644 --- a/tests/functional/g/generated_members.py +++ b/tests/functional/g/generated_members.py @@ -20,7 +20,7 @@ session.rollback() SESSION.rollback() -# https://github.com/PyCQA/pylint/issues/6594 +# https://github.com/pylint-dev/pylint/issues/6594 # Don't emit no-member inside type annotations # with PEP 563 'from __future__ import annotations' print(Klass.X) # [no-member] diff --git a/tests/functional/g/globals.py b/tests/functional/g/globals.py index f7a634a3e..7f4e3077e 100644 --- a/tests/functional/g/globals.py +++ b/tests/functional/g/globals.py @@ -105,7 +105,7 @@ def init_connection_state(alias): # Prevent emitting `invalid-name` for the line on which `global` is declared -# https://github.com/PyCQA/pylint/issues/8307 +# https://github.com/pylint-dev/pylint/issues/8307 _foo: str = "tomato" def setup_shared_foo(): diff --git a/tests/functional/i/import_error.py b/tests/functional/i/import_error.py index 12f56f9ea..474a53b5a 100644 --- a/tests/functional/i/import_error.py +++ b/tests/functional/i/import_error.py @@ -80,8 +80,14 @@ import foo, bar # [multiple-imports] import foo import bar +import mymodule_ignored +import mymodule.something_ignored +from mymodule.something_ignored import anything +import sys.something_ignored +from sys.something_ignored import anything + # Issues with contextlib.suppress reported in -# https://github.com/PyCQA/pylint/issues/7270 +# https://github.com/pylint-dev/pylint/issues/7270 import contextlib with contextlib.suppress(ImportError): import foo2 diff --git a/tests/functional/i/import_error.rc b/tests/functional/i/import_error.rc index d8f2b25e2..7278ff8f1 100644 --- a/tests/functional/i/import_error.rc +++ b/tests/functional/i/import_error.rc @@ -3,7 +3,7 @@ disable=C,R,W enable=multiple-imports [TYPECHECK] -ignored-modules=external_module,fake_module.submodule,foo,bar +ignored-modules=external_module,fake_module.submodule,foo,bar,*_ignored [testoptions] # TODO: PY3.9: This does pass on PyPy 3.9 diff --git a/tests/functional/i/import_error.txt b/tests/functional/i/import_error.txt index 80a5732f0..49cc0a673 100644 --- a/tests/functional/i/import_error.txt +++ b/tests/functional/i/import_error.txt @@ -3,4 +3,4 @@ import-error:21:4:21:26::Unable to import 'maybe_missing_2':UNDEFINED no-name-in-module:33:0:33:49::No name 'syntax_error' in module 'functional.s.syntax':UNDEFINED syntax-error:33:0:None:None::Cannot import 'functional.s.syntax.syntax_error' due to 'invalid syntax (<unknown>, line 1)':HIGH multiple-imports:78:0:78:15::Multiple imports on one line (foo, bar):UNDEFINED -import-error:90:4:90:15::Unable to import 'foo2':UNDEFINED +import-error:96:4:96:15::Unable to import 'foo2':UNDEFINED diff --git a/tests/functional/i/inconsistent/inconsistent_returns.py b/tests/functional/i/inconsistent/inconsistent_returns.py index 4e9a68377..bcdfd76e5 100644 --- a/tests/functional/i/inconsistent/inconsistent_returns.py +++ b/tests/functional/i/inconsistent/inconsistent_returns.py @@ -336,7 +336,7 @@ def bug_pylint_3873_2(): nothing_to_do() return False -# https://github.com/PyCQA/pylint/issues/4019 +# https://github.com/pylint-dev/pylint/issues/4019 def bug_pylint_4019(x): """ assert False is equivalent to a return @@ -355,7 +355,7 @@ def bug_pylint_4019_wrong(x): # [inconsistent-return-statements] assert True -# https://github.com/PyCQA/pylint/issues/8280 +# https://github.com/pylint-dev/pylint/issues/8280 class A: def get_the_answer(self): # [inconsistent-return-statements] while self.is_running: diff --git a/tests/functional/i/inference_crash_4692.py b/tests/functional/i/inference_crash_4692.py index 5e990aaa7..d41ac7a84 100644 --- a/tests/functional/i/inference_crash_4692.py +++ b/tests/functional/i/inference_crash_4692.py @@ -1,4 +1,4 @@ -"""Regression test for https://github.com/PyCQA/pylint/issues/4692.""" +"""Regression test for https://github.com/pylint-dev/pylint/issues/4692.""" # We can't use click like in the issue because the crash # does not appear if click is installed (astroid can analyse it) diff --git a/tests/functional/i/init_not_called.py b/tests/functional/i/init_not_called.py index ee8c4f5a1..db677dc4b 100644 --- a/tests/functional/i/init_not_called.py +++ b/tests/functional/i/init_not_called.py @@ -86,7 +86,7 @@ class Child(Parent): super().__init__(round(num)) -# https://github.com/PyCQA/pylint/issues/7742 +# https://github.com/pylint-dev/pylint/issues/7742 # Crash when parent class has a class attribute named `__init__` class NoInitMethod: __init__ = 42 diff --git a/tests/functional/i/invalid/invalid_all_format.py b/tests/functional/i/invalid/invalid_all/invalid_all_format.py index 10537c6fb..10537c6fb 100644 --- a/tests/functional/i/invalid/invalid_all_format.py +++ b/tests/functional/i/invalid/invalid_all/invalid_all_format.py diff --git a/tests/functional/i/invalid/invalid_all_format.txt b/tests/functional/i/invalid/invalid_all/invalid_all_format.txt index 2f6ac363b..2f6ac363b 100644 --- a/tests/functional/i/invalid/invalid_all_format.txt +++ b/tests/functional/i/invalid/invalid_all/invalid_all_format.txt diff --git a/tests/functional/i/invalid/invalid_all_format_valid_1.py b/tests/functional/i/invalid/invalid_all/invalid_all_format_valid_1.py index f3d8b4361..f3d8b4361 100644 --- a/tests/functional/i/invalid/invalid_all_format_valid_1.py +++ b/tests/functional/i/invalid/invalid_all/invalid_all_format_valid_1.py diff --git a/tests/functional/i/invalid/invalid_all_format_valid_2.py b/tests/functional/i/invalid/invalid_all/invalid_all_format_valid_2.py index aa243c65b..aa243c65b 100644 --- a/tests/functional/i/invalid/invalid_all_format_valid_2.py +++ b/tests/functional/i/invalid/invalid_all/invalid_all_format_valid_2.py diff --git a/tests/functional/i/invalid/invalid_all_format_valid_3.py b/tests/functional/i/invalid/invalid_all/invalid_all_format_valid_3.py index 3725d055e..3725d055e 100644 --- a/tests/functional/i/invalid/invalid_all_format_valid_3.py +++ b/tests/functional/i/invalid/invalid_all/invalid_all_format_valid_3.py diff --git a/tests/functional/i/invalid/invalid_all_format_valid_4.py b/tests/functional/i/invalid/invalid_all/invalid_all_format_valid_4.py index 65a8c384b..65a8c384b 100644 --- a/tests/functional/i/invalid/invalid_all_format_valid_4.py +++ b/tests/functional/i/invalid/invalid_all/invalid_all_format_valid_4.py diff --git a/tests/functional/i/invalid/invalid_all_format_valid_5.py b/tests/functional/i/invalid/invalid_all/invalid_all_format_valid_5.py index aa0e4dbf3..aa0e4dbf3 100644 --- a/tests/functional/i/invalid/invalid_all_format_valid_5.py +++ b/tests/functional/i/invalid/invalid_all/invalid_all_format_valid_5.py diff --git a/tests/functional/i/invalid/invalid_all_format_valid_6.py b/tests/functional/i/invalid/invalid_all/invalid_all_format_valid_6.py index 64ac46bb7..64ac46bb7 100644 --- a/tests/functional/i/invalid/invalid_all_format_valid_6.py +++ b/tests/functional/i/invalid/invalid_all/invalid_all_format_valid_6.py diff --git a/tests/functional/i/invalid/invalid_all_object.py b/tests/functional/i/invalid/invalid_all/invalid_all_object.py index 4468c987b..4468c987b 100644 --- a/tests/functional/i/invalid/invalid_all_object.py +++ b/tests/functional/i/invalid/invalid_all/invalid_all_object.py diff --git a/tests/functional/i/invalid/invalid_all_object.txt b/tests/functional/i/invalid/invalid_all/invalid_all_object.txt index 172fc974c..172fc974c 100644 --- a/tests/functional/i/invalid/invalid_all_object.txt +++ b/tests/functional/i/invalid/invalid_all/invalid_all_object.txt diff --git a/tests/functional/i/invalid/invalid_class_object.py b/tests/functional/i/invalid/invalid_class_object.py index b7363e9c8..8233a3633 100644 --- a/tests/functional/i/invalid/invalid_class_object.py +++ b/tests/functional/i/invalid/invalid_class_object.py @@ -40,7 +40,7 @@ class AnotherClass: class Pylint7429Good:
- """See https://github.com/PyCQA/pylint/issues/7467"""
+ """See https://github.com/pylint-dev/pylint/issues/7467"""
def class_defining_function_good(self):
self.__class__, myvar = AnotherClass, "myvalue"
diff --git a/tests/functional/i/invalid/invalid_exceptions/invalid_exceptions_raised.py b/tests/functional/i/invalid/invalid_exceptions/invalid_exceptions_raised.py index a0b5ad39f..aa37a4530 100644 --- a/tests/functional/i/invalid/invalid_exceptions/invalid_exceptions_raised.py +++ b/tests/functional/i/invalid/invalid_exceptions/invalid_exceptions_raised.py @@ -99,7 +99,7 @@ def reusing_same_name_picks_the_latest_raised_value(): try: raise ValueError except exceptions as exc: # pylint: disable=catching-non-exception - # https://github.com/PyCQA/pylint/issues/1756 + # https://github.com/pylint-dev/pylint/issues/1756 exc = Error(exc) if exc: raise exc diff --git a/tests/functional/i/invalid/invalid_metaclass.py b/tests/functional/i/invalid/invalid_metaclass.py index 3b264d693..aba4e6fb1 100644 --- a/tests/functional/i/invalid/invalid_metaclass.py +++ b/tests/functional/i/invalid/invalid_metaclass.py @@ -1,7 +1,7 @@ # pylint: disable=missing-docstring, too-few-public-methods, import-error,unused-argument # Disabled because of a bug with pypy 3.8 see -# https://github.com/PyCQA/pylint/pull/7918#issuecomment-1352737369 +# https://github.com/pylint-dev/pylint/pull/7918#issuecomment-1352737369 # pylint: disable=multiple-statements import abc diff --git a/tests/functional/i/invalid/invalid_name/invalid_name-module-disable.py b/tests/functional/i/invalid/invalid_name/invalid_name-module-disable.py index f6074eebb..3d3be3180 100644 --- a/tests/functional/i/invalid/invalid_name/invalid_name-module-disable.py +++ b/tests/functional/i/invalid/invalid_name/invalid_name-module-disable.py @@ -2,5 +2,5 @@ """Regression test for disabling of invalid-name for module names. -See https://github.com/PyCQA/pylint/issues/3973. +See https://github.com/pylint-dev/pylint/issues/3973. """ diff --git a/tests/functional/i/invalid/invalid_name/invalid_name_issue_3405.py b/tests/functional/i/invalid/invalid_name/invalid_name_issue_3405.py index 9b0dd37cd..678aaf076 100644 --- a/tests/functional/i/invalid/invalid_name/invalid_name_issue_3405.py +++ b/tests/functional/i/invalid/invalid_name/invalid_name_issue_3405.py @@ -1,4 +1,4 @@ -""" Regression test for https://github.com/PyCQA/pylint/issues/3405. """ +""" Regression test for https://github.com/pylint-dev/pylint/issues/3405. """ import dataclasses from typing import ClassVar diff --git a/tests/functional/i/invalid/invalid_overridden_method.py b/tests/functional/i/invalid/invalid_overridden_method.py index 69af42a0a..d81a7882b 100644 --- a/tests/functional/i/invalid/invalid_overridden_method.py +++ b/tests/functional/i/invalid/invalid_overridden_method.py @@ -78,7 +78,7 @@ class AbstractProperty: return -# https://github.com/PyCQA/pylint/issues/4368 +# https://github.com/pylint-dev/pylint/issues/4368 # Decrator functions with a nested property decorator should still be # inferred as property. diff --git a/tests/functional/i/invalid/invalid_sequence_index.py b/tests/functional/i/invalid/invalid_sequence_index.py index 56ade211b..e2a3abc7e 100644 --- a/tests/functional/i/invalid/invalid_sequence_index.py +++ b/tests/functional/i/invalid/invalid_sequence_index.py @@ -1,7 +1,7 @@ # pylint: disable=too-few-public-methods, import-error, missing-docstring, unnecessary-pass # Disabled because of a bug with pypy 3.8 see -# https://github.com/PyCQA/pylint/pull/7918#issuecomment-1352737369 +# https://github.com/pylint-dev/pylint/pull/7918#issuecomment-1352737369 # pylint: disable=multiple-statements import six diff --git a/tests/functional/i/iterable_context.py b/tests/functional/i/iterable_context.py index fb035c4df..b36710f28 100644 --- a/tests/functional/i/iterable_context.py +++ b/tests/functional/i/iterable_context.py @@ -192,5 +192,5 @@ for elem in HasDynamicGetattr(): pass -# Regression test for https://github.com/PyCQA/pylint/issues/6372 +# Regression test for https://github.com/pylint-dev/pylint/issues/6372 string_twos = "".join(str(*y) for _, *y in [[1, 2], [1, 2]]) diff --git a/tests/functional/m/member/member_checks_inference_improvements.py b/tests/functional/m/member/member_checks_inference_improvements.py index 6eefa7958..099048ba0 100644 --- a/tests/functional/m/member/member_checks_inference_improvements.py +++ b/tests/functional/m/member/member_checks_inference_improvements.py @@ -2,7 +2,7 @@ def test_oserror_has_strerror(): - # https://github.com/PyCQA/pylint/issues/2553 + # https://github.com/pylint-dev/pylint/issues/2553 try: raise OSError() except OSError as exc: diff --git a/tests/functional/m/modified_iterating.py b/tests/functional/m/modified_iterating.py index f17c34b6e..2dae6c106 100644 --- a/tests/functional/m/modified_iterating.py +++ b/tests/functional/m/modified_iterating.py @@ -97,7 +97,7 @@ def update_existing_key(): class MyClass: - """Regression test for https://github.com/PyCQA/pylint/issues/7380""" + """Regression test for https://github.com/pylint-dev/pylint/issues/7380""" def __init__(self) -> None: self.attribute = [1, 2, 3] @@ -109,7 +109,7 @@ class MyClass: class MyClass2: - """Regression test for https://github.com/PyCQA/pylint/issues/7461""" + """Regression test for https://github.com/pylint-dev/pylint/issues/7461""" def __init__(self) -> None: self.attribute = {} diff --git a/tests/functional/n/no/no_member.py b/tests/functional/n/no/no_member.py index 1db70cde5..a36fc359e 100644 --- a/tests/functional/n/no/no_member.py +++ b/tests/functional/n/no/no_member.py @@ -1,7 +1,7 @@ # pylint: disable=missing-docstring, unused-argument, wrong-import-position, invalid-name from pathlib import Path -# Regression test for https://github.com/PyCQA/pylint/issues/400 +# Regression test for https://github.com/pylint-dev/pylint/issues/400 class TestListener: def __init__(self): self._latest = None @@ -19,7 +19,7 @@ listener = TestListener() broker = listener.wait(3).get_domain() # No error here -# Regression test for https://github.com/PyCQA/pylint/issues/4377 +# Regression test for https://github.com/pylint-dev/pylint/issues/4377 from urllib import parse url = 'http://www.google.com' @@ -31,7 +31,7 @@ new_parsed_url = parse.ParseResult._replace(parsed_url, query=sorted_query) new_url = new_parsed_url.geturl() # No error here -# Regression test for https://github.com/PyCQA/pylint/issues/3803 +# Regression test for https://github.com/pylint-dev/pylint/issues/3803 # pylint: disable=too-few-public-methods class Base: label: str @@ -44,5 +44,5 @@ class Derived(Base): print(Derived.label) -# Regression test for https://github.com/PyCQA/pylint/issues/5832 +# Regression test for https://github.com/pylint-dev/pylint/issues/5832 starter_path = Path(__file__).parents[3].resolve() diff --git a/tests/functional/n/no/no_member_assign_same_line.py b/tests/functional/n/no/no_member_assign_same_line.py index 45138d933..230b08109 100644 --- a/tests/functional/n/no/no_member_assign_same_line.py +++ b/tests/functional/n/no/no_member_assign_same_line.py @@ -1,5 +1,5 @@ """Tests for no-member for self-referencing instance attributes -See https://github.com/PyCQA/pylint/issues/1555 +See https://github.com/pylint-dev/pylint/issues/1555 """ # pylint: disable=too-few-public-methods diff --git a/tests/functional/n/no/no_member_augassign.py b/tests/functional/n/no/no_member_augassign.py index 1ffd9a168..8954861e3 100644 --- a/tests/functional/n/no/no_member_augassign.py +++ b/tests/functional/n/no/no_member_augassign.py @@ -1,7 +1,7 @@ """Tests for no-member in relation to AugAssign operations.""" # pylint: disable=missing-module-docstring, too-few-public-methods, missing-class-docstring, invalid-name -# Test for: https://github.com/PyCQA/pylint/issues/4562 +# Test for: https://github.com/pylint-dev/pylint/issues/4562 class A: value: int diff --git a/tests/functional/n/no/no_member_binary_operations.py b/tests/functional/n/no/no_member_binary_operations.py index e998932eb..1a15fa2d4 100644 --- a/tests/functional/n/no/no_member_binary_operations.py +++ b/tests/functional/n/no/no_member_binary_operations.py @@ -1,7 +1,7 @@ """Tests for no-member in relation to binary operations.""" # pylint: disable=too-few-public-methods, missing-class-docstring, missing-function-docstring -# Test for: https://github.com/PyCQA/pylint/issues/4826 +# Test for: https://github.com/pylint-dev/pylint/issues/4826 class MyClass: def __init__(self): self.a_list = [] diff --git a/tests/functional/n/no/no_member_dataclasses.py b/tests/functional/n/no/no_member_dataclasses.py index 97528e698..5f799bf84 100644 --- a/tests/functional/n/no/no_member_dataclasses.py +++ b/tests/functional/n/no/no_member_dataclasses.py @@ -3,7 +3,7 @@ # pylint: disable=missing-docstring, too-few-public-methods # Disabled because of a bug with pypy 3.8 see -# https://github.com/PyCQA/pylint/pull/7918#issuecomment-1352737369 +# https://github.com/pylint-dev/pylint/pull/7918#issuecomment-1352737369 # pylint: disable=multiple-statements from abc import ABCMeta, abstractmethod @@ -11,7 +11,7 @@ from dataclasses import asdict, dataclass, field from typing import Any, Dict -# https://github.com/PyCQA/pylint/issues/3754 +# https://github.com/pylint-dev/pylint/issues/3754 @dataclass(frozen=True) class DeploymentState(metaclass=ABCMeta): type: str @@ -52,7 +52,7 @@ class DeploymentStateLambda(DeploymentState): } -# https://github.com/PyCQA/pylint/issues/2600 +# https://github.com/pylint-dev/pylint/issues/2600 @dataclass class TestClass: attr1: str diff --git a/tests/functional/n/no/no_member_if_statements.py b/tests/functional/n/no/no_member_if_statements.py index d26c5c483..220d0215a 100644 --- a/tests/functional/n/no/no_member_if_statements.py +++ b/tests/functional/n/no/no_member_if_statements.py @@ -40,7 +40,7 @@ class Base: return str(state) -# https://github.com/PyCQA/pylint/issues/1990 +# https://github.com/pylint-dev/pylint/issues/1990 # Attribute access after 'isinstance' should not cause 'no-member' error import subprocess # pylint: disable=wrong-import-position # noqa: E402 @@ -54,7 +54,7 @@ except Exception as err: raise -# https://github.com/PyCQA/pylint/issues/4168 +# https://github.com/pylint-dev/pylint/issues/4168 # 'encode' for 'arg' should not cause 'no-member' error mixed_tuple = (b"a", b"b", b"c", b"d") byte_tuple = [arg.encode('utf8') if isinstance(arg, str) else arg for arg in mixed_tuple] @@ -66,7 +66,7 @@ for arg in mixed_tuple: print(arg) -# https://github.com/PyCQA/pylint/issues/1162 +# https://github.com/pylint-dev/pylint/issues/1162 # Attribute access after 'isinstance' should not cause 'no-member' error class FoobarException(Exception): foobar = None diff --git a/tests/functional/n/no/no_member_subclassed_dataclasses.py b/tests/functional/n/no/no_member_subclassed_dataclasses.py index 0dee10840..d121eae36 100644 --- a/tests/functional/n/no/no_member_subclassed_dataclasses.py +++ b/tests/functional/n/no/no_member_subclassed_dataclasses.py @@ -2,7 +2,7 @@ # pylint: disable=too-few-public-methods # Disabled because of a bug with pypy 3.8 see -# https://github.com/PyCQA/pylint/pull/7918#issuecomment-1352737369 +# https://github.com/pylint-dev/pylint/pull/7918#issuecomment-1352737369 # pylint: disable=multiple-statements from abc import ABCMeta, abstractmethod diff --git a/tests/functional/n/no/no_name_in_module.py b/tests/functional/n/no/no_name_in_module.py index 26c0079b6..ef9fb03d1 100644 --- a/tests/functional/n/no/no_name_in_module.py +++ b/tests/functional/n/no/no_name_in_module.py @@ -80,7 +80,7 @@ from .no_self_argument.bla import lala1 # [no-name-in-module] from argparse import THIS_does_not_EXIST -# This captures the original failure in https://github.com/PyCQA/pylint/issues/6497 +# This captures the original failure in https://github.com/pylint-dev/pylint/issues/6497 # only if numpy is installed. We are not installing numpy on CI (for now) from numpy.distutils.misc_util import is_sequence from pydantic import BaseModel diff --git a/tests/functional/n/none_dunder_protocols.py b/tests/functional/n/none_dunder_protocols.py index 4f4628634..085615910 100644 --- a/tests/functional/n/none_dunder_protocols.py +++ b/tests/functional/n/none_dunder_protocols.py @@ -30,7 +30,7 @@ class MultipleAssignmentNonesClass(metaclass=MetaContainer): class MultipleAssignmentLambdasClass(metaclass=MetaContainer): - """https://github.com/PyCQA/pylint/issues/6366""" + """https://github.com/pylint-dev/pylint/issues/6366""" __len__, __iter__ = [lambda x: x] * 2 diff --git a/tests/functional/n/nonlocal_without_binding.py b/tests/functional/n/nonlocal_without_binding.py index c05a012b1..277c7f7eb 100644 --- a/tests/functional/n/nonlocal_without_binding.py +++ b/tests/functional/n/nonlocal_without_binding.py @@ -30,7 +30,7 @@ def func(): # Case where `nonlocal-without-binding` was not emitted when # the nonlocal name was assigned later in the same scope. - # https://github.com/PyCQA/pylint/issues/6883 + # https://github.com/pylint-dev/pylint/issues/6883 def other_func2(): nonlocal c # [nonlocal-without-binding] c = 1 diff --git a/tests/functional/n/not_callable.py b/tests/functional/n/not_callable.py index c5015e65f..a0411d39e 100644 --- a/tests/functional/n/not_callable.py +++ b/tests/functional/n/not_callable.py @@ -128,7 +128,7 @@ UnknownBaseCallable()() # Regression test for #4426 # If property is inferable we shouldn't double emit the message -# See: https://github.com/PyCQA/pylint/issues/4426 +# See: https://github.com/pylint-dev/pylint/issues/4426 class ClassWithProperty: @property def value(self): @@ -137,15 +137,15 @@ class ClassWithProperty: CLASS_WITH_PROP = ClassWithProperty().value() # [not-callable] # Test typing.Namedtuple is callable -# See: https://github.com/PyCQA/pylint/issues/1295 +# See: https://github.com/pylint-dev/pylint/issues/1295 import typing Named = typing.NamedTuple("Named", [("foo", int), ("bar", int)]) named = Named(1, 2) -# NamedTuple is callable, even if it aliased to a attribute -# See https://github.com/PyCQA/pylint/issues/1730 +# NamedTuple is callable, even if it aliased to an attribute +# See https://github.com/pylint-dev/pylint/issues/1730 class TestNamedTuple: def __init__(self, field: str) -> None: self.my_tuple = typing.NamedTuple("Tuple", [(field, int)]) @@ -178,7 +178,7 @@ AggregateCls().a() # pylint needs to ignore not-callable for them # right now -# Test for https://github.com/PyCQA/pylint/issues/1699 +# Test for https://github.com/pylint-dev/pylint/issues/1699 import multiprocessing @@ -226,7 +226,7 @@ obj2 = Klass2() obj2.something() -# Regression test for https://github.com/PyCQA/pylint/issues/7109 +# Regression test for https://github.com/pylint-dev/pylint/issues/7109 instance_or_cls = MyClass # pylint:disable=invalid-name instance_or_cls = MyClass() if not isinstance(instance_or_cls, MyClass): @@ -234,7 +234,7 @@ if not isinstance(instance_or_cls, MyClass): new() -# Regression test for https://github.com/PyCQA/pylint/issues/5113. +# Regression test for https://github.com/pylint-dev/pylint/issues/5113. # Do not emit `not-callable`. ATTRIBUTES = { 'DOMAIN': ("domain", str), diff --git a/tests/functional/o/overridden_final_method_py38.py b/tests/functional/o/overridden_final_method_py38.py index 252ea3c01..d92b6adc2 100644 --- a/tests/functional/o/overridden_final_method_py38.py +++ b/tests/functional/o/overridden_final_method_py38.py @@ -16,7 +16,7 @@ class Subclass(Base): pass # Check for crash on method definitions not at top level of class -# https://github.com/PyCQA/pylint/issues/5648 +# https://github.com/pylint-dev/pylint/issues/5648 class BaseConditional: create_final_method = True diff --git a/tests/functional/p/postponed_evaluation_activated.py b/tests/functional/p/postponed/postponed_evaluation_activated.py index 3492fe5c2..3492fe5c2 100644 --- a/tests/functional/p/postponed_evaluation_activated.py +++ b/tests/functional/p/postponed/postponed_evaluation_activated.py diff --git a/tests/functional/p/postponed_evaluation_activated.rc b/tests/functional/p/postponed/postponed_evaluation_activated.rc index a17bb22da..a17bb22da 100644 --- a/tests/functional/p/postponed_evaluation_activated.rc +++ b/tests/functional/p/postponed/postponed_evaluation_activated.rc diff --git a/tests/functional/p/postponed_evaluation_activated_with_alias.py b/tests/functional/p/postponed/postponed_evaluation_activated_with_alias.py index f9899f34a..f9899f34a 100644 --- a/tests/functional/p/postponed_evaluation_activated_with_alias.py +++ b/tests/functional/p/postponed/postponed_evaluation_activated_with_alias.py diff --git a/tests/functional/p/postponed_evaluation_activated_with_alias.rc b/tests/functional/p/postponed/postponed_evaluation_activated_with_alias.rc index a17bb22da..a17bb22da 100644 --- a/tests/functional/p/postponed_evaluation_activated_with_alias.rc +++ b/tests/functional/p/postponed/postponed_evaluation_activated_with_alias.rc diff --git a/tests/functional/p/postponed_evaluation_not_activated.py b/tests/functional/p/postponed/postponed_evaluation_not_activated.py index 76e564a9a..76e564a9a 100644 --- a/tests/functional/p/postponed_evaluation_not_activated.py +++ b/tests/functional/p/postponed/postponed_evaluation_not_activated.py diff --git a/tests/functional/p/postponed_evaluation_not_activated.rc b/tests/functional/p/postponed/postponed_evaluation_not_activated.rc index a17bb22da..a17bb22da 100644 --- a/tests/functional/p/postponed_evaluation_not_activated.rc +++ b/tests/functional/p/postponed/postponed_evaluation_not_activated.rc diff --git a/tests/functional/p/postponed_evaluation_not_activated.txt b/tests/functional/p/postponed/postponed_evaluation_not_activated.txt index 8d9630e04..8d9630e04 100644 --- a/tests/functional/p/postponed_evaluation_not_activated.txt +++ b/tests/functional/p/postponed/postponed_evaluation_not_activated.txt diff --git a/tests/functional/p/postponed_evaluation_pep585.py b/tests/functional/p/postponed/postponed_evaluation_pep585.py index 1d539126d..2317228e5 100644 --- a/tests/functional/p/postponed_evaluation_pep585.py +++ b/tests/functional/p/postponed/postponed_evaluation_pep585.py @@ -9,7 +9,7 @@ Testing with 3.8 only, to support TypedDict. # pylint: disable=unused-variable,unnecessary-direct-lambda-call # Disabled because of a bug with pypy 3.8 see -# https://github.com/PyCQA/pylint/pull/7918#issuecomment-1352737369 +# https://github.com/pylint-dev/pylint/pull/7918#issuecomment-1352737369 # pylint: disable=multiple-statements from __future__ import annotations diff --git a/tests/functional/p/postponed_evaluation_pep585.rc b/tests/functional/p/postponed/postponed_evaluation_pep585.rc index 35b185fdb..35b185fdb 100644 --- a/tests/functional/p/postponed_evaluation_pep585.rc +++ b/tests/functional/p/postponed/postponed_evaluation_pep585.rc diff --git a/tests/functional/p/postponed_evaluation_pep585.txt b/tests/functional/p/postponed/postponed_evaluation_pep585.txt index 899dc5977..899dc5977 100644 --- a/tests/functional/p/postponed_evaluation_pep585.txt +++ b/tests/functional/p/postponed/postponed_evaluation_pep585.txt diff --git a/tests/functional/p/postponed_evaluation_pep585_error.py b/tests/functional/p/postponed/postponed_evaluation_pep585_error.py index 19153105e..9810c0c14 100644 --- a/tests/functional/p/postponed_evaluation_pep585_error.py +++ b/tests/functional/p/postponed/postponed_evaluation_pep585_error.py @@ -9,7 +9,7 @@ Testing with 3.8 only, to support TypedDict. # pylint: disable=unused-variable,line-too-long,unnecessary-direct-lambda-call # Disabled because of a bug with pypy 3.8 see -# https://github.com/PyCQA/pylint/pull/7918#issuecomment-1352737369 +# https://github.com/pylint-dev/pylint/pull/7918#issuecomment-1352737369 # pylint: disable=multiple-statements import collections diff --git a/tests/functional/p/postponed_evaluation_pep585_error.rc b/tests/functional/p/postponed/postponed_evaluation_pep585_error.rc index 35b185fdb..35b185fdb 100644 --- a/tests/functional/p/postponed_evaluation_pep585_error.rc +++ b/tests/functional/p/postponed/postponed_evaluation_pep585_error.rc diff --git a/tests/functional/p/postponed_evaluation_pep585_error.txt b/tests/functional/p/postponed/postponed_evaluation_pep585_error.txt index 406081dfa..406081dfa 100644 --- a/tests/functional/p/postponed_evaluation_pep585_error.txt +++ b/tests/functional/p/postponed/postponed_evaluation_pep585_error.txt diff --git a/tests/functional/p/postponed_evaluation_pep585_py39.py b/tests/functional/p/postponed/postponed_evaluation_pep585_py39.py index 5354e081f..5354e081f 100644 --- a/tests/functional/p/postponed_evaluation_pep585_py39.py +++ b/tests/functional/p/postponed/postponed_evaluation_pep585_py39.py diff --git a/tests/functional/p/postponed_evaluation_pep585_py39.rc b/tests/functional/p/postponed/postponed_evaluation_pep585_py39.rc index 16b75eea7..16b75eea7 100644 --- a/tests/functional/p/postponed_evaluation_pep585_py39.rc +++ b/tests/functional/p/postponed/postponed_evaluation_pep585_py39.rc diff --git a/tests/functional/p/postponed_evaluation_pep585_py39.txt b/tests/functional/p/postponed/postponed_evaluation_pep585_py39.txt index 127e252a5..127e252a5 100644 --- a/tests/functional/p/postponed_evaluation_pep585_py39.txt +++ b/tests/functional/p/postponed/postponed_evaluation_pep585_py39.txt diff --git a/tests/functional/r/recursion/recursion_error_2667.py b/tests/functional/r/recursion/recursion_error_2667.py index 585cf7f2f..62868c3c6 100644 --- a/tests/functional/r/recursion/recursion_error_2667.py +++ b/tests/functional/r/recursion/recursion_error_2667.py @@ -1,4 +1,4 @@ -"""Add regression test for https://github.com/PyCQA/pylint/issues/2667""" +"""Add regression test for https://github.com/pylint-dev/pylint/issues/2667""" # pylint: disable=missing-docstring, too-few-public-methods class MyClass: diff --git a/tests/functional/r/recursion/recursion_error_2906.py b/tests/functional/r/recursion/recursion_error_2906.py index 6b4b08d5f..b18d27315 100644 --- a/tests/functional/r/recursion/recursion_error_2906.py +++ b/tests/functional/r/recursion/recursion_error_2906.py @@ -1,4 +1,4 @@ -"""Recursion error for https://github.com/PyCQA/pylint/issues/2906""" +"""Recursion error for https://github.com/pylint-dev/pylint/issues/2906""" # pylint: disable=disallowed-name,global-statement,invalid-name,missing-docstring lst = [] diff --git a/tests/functional/r/recursion/recursion_error_3159.py b/tests/functional/r/recursion/recursion_error_3159.py index 086cce769..d905ad862 100644 --- a/tests/functional/r/recursion/recursion_error_3159.py +++ b/tests/functional/r/recursion/recursion_error_3159.py @@ -1,6 +1,6 @@ """Check that we do not crash with a recursion error -https://github.com/PyCQA/pylint/issues/3159 +https://github.com/pylint-dev/pylint/issues/3159 """ # pylint: disable=missing-docstring from setuptools import Command, find_packages, setup diff --git a/tests/functional/r/recursion/recursion_error_crash.py b/tests/functional/r/recursion/recursion_error_crash.py index 208bc2e7a..5500428b4 100644 --- a/tests/functional/r/recursion/recursion_error_crash.py +++ b/tests/functional/r/recursion/recursion_error_crash.py @@ -1,6 +1,6 @@ """Test that a recursion error does not happen -https://github.com/PyCQA/pylint/issues/2463 +https://github.com/pylint-dev/pylint/issues/2463 """ import os diff --git a/tests/functional/r/recursion/recursion_error_crash_2683.py b/tests/functional/r/recursion/recursion_error_crash_2683.py index 05978a355..17335de2b 100644 --- a/tests/functional/r/recursion/recursion_error_crash_2683.py +++ b/tests/functional/r/recursion/recursion_error_crash_2683.py @@ -1,4 +1,4 @@ -"""Test for https://github.com/PyCQA/pylint/issues/2683""" +"""Test for https://github.com/pylint-dev/pylint/issues/2683""" # pylint: disable=missing-docstring,too-few-public-methods class Cls: diff --git a/tests/functional/r/recursion/recursion_error_crash_astroid_623.py b/tests/functional/r/recursion/recursion_error_crash_astroid_623.py index 662da6145..e73ff42c5 100644 --- a/tests/functional/r/recursion/recursion_error_crash_astroid_623.py +++ b/tests/functional/r/recursion/recursion_error_crash_astroid_623.py @@ -1,6 +1,6 @@ """Test that a recursion error does not happen -https://github.com/PyCQA/astroid/issues/623 +https://github.com/pylint-dev/astroid/issues/623 """ from os import path diff --git a/tests/functional/r/redefined/redefined_except_handler.py b/tests/functional/r/redefined/redefined_except_handler.py index 47591034a..b774e32f2 100644 --- a/tests/functional/r/redefined/redefined_except_handler.py +++ b/tests/functional/r/redefined/redefined_except_handler.py @@ -1,6 +1,6 @@ """Tests for except handlers that shadow outer except handlers or exceptions. -See: https://github.com/PyCQA/pylint/issues/5370 +See: https://github.com/pylint-dev/pylint/issues/5370 """ try: @@ -60,7 +60,7 @@ except ImportError as err: class CustomException(Exception): - """https://github.com/PyCQA/pylint/issues/4434""" + """https://github.com/pylint-dev/pylint/issues/4434""" def func(): diff --git a/tests/functional/r/redefined/redefined_slots.py b/tests/functional/r/redefined/redefined_slots.py index 28f05fbfd..fbeda46e1 100644 --- a/tests/functional/r/redefined/redefined_slots.py +++ b/tests/functional/r/redefined/redefined_slots.py @@ -33,7 +33,7 @@ class Subclass3(Base, Base2): __slots__ = ("a", "b", "c", "i", "j", "k", "l", "m", "n") # [redefined-slots-in-subclass] -# https://github.com/PyCQA/pylint/issues/6100 +# https://github.com/pylint-dev/pylint/issues/6100 class MyClass: """No crash when the type of the slot is not a Const or a str""" __slots__ = [str] diff --git a/tests/functional/r/redundant_unittest_assert.py b/tests/functional/r/redundant_unittest_assert.py index aa4120831..0bc2d69dd 100644 --- a/tests/functional/r/redundant_unittest_assert.py +++ b/tests/functional/r/redundant_unittest_assert.py @@ -7,7 +7,7 @@ a warning message. # pylint: disable=missing-docstring,too-few-public-methods # Disabled because of a bug with pypy 3.8 see -# https://github.com/PyCQA/pylint/pull/7918#issuecomment-1352737369 +# https://github.com/pylint-dev/pylint/pull/7918#issuecomment-1352737369 # pylint: disable=multiple-statements import unittest diff --git a/tests/functional/r/regression/regression_3416_unused_argument_raise.py b/tests/functional/r/regression/regression_3416_unused_argument_raise.py index 9bc761701..175afaf3d 100644 --- a/tests/functional/r/regression/regression_3416_unused_argument_raise.py +++ b/tests/functional/r/regression/regression_3416_unused_argument_raise.py @@ -1,6 +1,6 @@ """Test that we emit unused-argument when a function uses `raise -https://github.com/PyCQA/pylint/issues/3416 +https://github.com/pylint-dev/pylint/issues/3416 """ # pylint:disable=raise-missing-from diff --git a/tests/functional/r/regression/regression_3507_typing_alias_isinstance.py b/tests/functional/r/regression/regression_3507_typing_alias_isinstance.py index 4dba85545..c55b460ce 100644 --- a/tests/functional/r/regression/regression_3507_typing_alias_isinstance.py +++ b/tests/functional/r/regression/regression_3507_typing_alias_isinstance.py @@ -1,5 +1,5 @@ """ -https://github.com/PyCQA/pylint/issues/3507 +https://github.com/pylint-dev/pylint/issues/3507 False-positive 'isinstance-second-argument-not-valid-type' for typing aliases in 'isinstance' calls. """ diff --git a/tests/functional/r/regression/regression_3535_double_enum_inherit.py b/tests/functional/r/regression/regression_3535_double_enum_inherit.py index 374b5f860..7b5f40348 100644 --- a/tests/functional/r/regression/regression_3535_double_enum_inherit.py +++ b/tests/functional/r/regression/regression_3535_double_enum_inherit.py @@ -1,5 +1,5 @@ # pylint: disable=missing-docstring,invalid-name -# https://github.com/PyCQA/pylint/issues/3535 +# https://github.com/pylint-dev/pylint/issues/3535 import enum diff --git a/tests/functional/r/regression/regression_3595_notcallable_collections.py b/tests/functional/r/regression/regression_3595_notcallable_collections.py index 120b26a04..4c50d1f18 100644 --- a/tests/functional/r/regression/regression_3595_notcallable_collections.py +++ b/tests/functional/r/regression/regression_3595_notcallable_collections.py @@ -1,5 +1,5 @@ # pylint: disable=missing-docstring,unused-import -# https://github.com/PyCQA/pylint/issues/3595 +# https://github.com/pylint-dev/pylint/issues/3595 import collections diff --git a/tests/functional/r/regression/regression_4221_object_instanceattr.py b/tests/functional/r/regression/regression_4221_object_instanceattr.py index 4c346b145..6599bf249 100644 --- a/tests/functional/r/regression/regression_4221_object_instanceattr.py +++ b/tests/functional/r/regression/regression_4221_object_instanceattr.py @@ -1,5 +1,5 @@ # pylint: disable=missing-docstring -# https://github.com/PyCQA/pylint/issues/4221 +# https://github.com/pylint-dev/pylint/issues/4221 import random o = object() diff --git a/tests/functional/r/regression/regression_4358_unsubscriptable_enum.py b/tests/functional/r/regression/regression_4358_unsubscriptable_enum.py index 63a9d7749..9f3b6d4b6 100644 --- a/tests/functional/r/regression/regression_4358_unsubscriptable_enum.py +++ b/tests/functional/r/regression/regression_4358_unsubscriptable_enum.py @@ -1,5 +1,5 @@ # pylint: disable=pointless-statement,missing-docstring -# https://github.com/PyCQA/pylint/issues/4358 +# https://github.com/pylint-dev/pylint/issues/4358 from enum import Enum diff --git a/tests/functional/r/regression/regression_4439.py b/tests/functional/r/regression/regression_4439.py index dd9c39253..3dc60cf9c 100644 --- a/tests/functional/r/regression/regression_4439.py +++ b/tests/functional/r/regression/regression_4439.py @@ -2,7 +2,7 @@ # pylint: disable=missing-docstring # Disabled because of a bug with pypy 3.8 see -# https://github.com/PyCQA/pylint/pull/7918#issuecomment-1352737369 +# https://github.com/pylint-dev/pylint/pull/7918#issuecomment-1352737369 # pylint: disable=multiple-statements from typing import Optional diff --git a/tests/functional/r/regression/regression_6531_crash_index_error.py b/tests/functional/r/regression/regression_6531_crash_index_error.py index 6cdc96617..cfcfd8e60 100644 --- a/tests/functional/r/regression/regression_6531_crash_index_error.py +++ b/tests/functional/r/regression/regression_6531_crash_index_error.py @@ -1,4 +1,4 @@ -"""Regression test for https://github.com/PyCQA/pylint/issues/6531.""" +"""Regression test for https://github.com/pylint-dev/pylint/issues/6531.""" # pylint: disable=missing-docstring, redefined-outer-name diff --git a/tests/functional/r/regression/regression_issue_4633.py b/tests/functional/r/regression/regression_issue_4633.py index 0bd48ad54..b2a8f7c90 100644 --- a/tests/functional/r/regression/regression_issue_4633.py +++ b/tests/functional/r/regression/regression_issue_4633.py @@ -1,7 +1,7 @@ # pylint: disable=missing-docstring,too-few-public-methods """ -Regression tests for https://github.com/PyCQA/pylint/issues/4633 +Regression tests for https://github.com/pylint-dev/pylint/issues/4633 """ from queue import Queue diff --git a/tests/functional/r/regression/regression_no_member_1078.py b/tests/functional/r/regression/regression_no_member_1078.py index b7be27d3c..191ba7751 100644 --- a/tests/functional/r/regression/regression_no_member_1078.py +++ b/tests/functional/r/regression/regression_no_member_1078.py @@ -1,6 +1,6 @@ """Make sure no-member is not emitted when modifying __doc__ via augmented assignment -https://github.com/PyCQA/pylint/issues/1078 +https://github.com/pylint-dev/pylint/issues/1078 """ # pylint: disable=too-few-public-methods,missing-class-docstring class Cls: diff --git a/tests/functional/r/regression/regression_property_no_member_2641.py b/tests/functional/r/regression/regression_property_no_member_2641.py index 083f78bdc..dd87726e6 100644 --- a/tests/functional/r/regression/regression_property_no_member_2641.py +++ b/tests/functional/r/regression/regression_property_no_member_2641.py @@ -1,5 +1,5 @@ # pylint: disable=missing-docstring,unused-argument,too-few-public-methods -# https://github.com/PyCQA/pylint/issues/2641 +# https://github.com/pylint-dev/pylint/issues/2641 from abc import ABCMeta, abstractmethod diff --git a/tests/functional/r/regression/regression_property_no_member_844.py b/tests/functional/r/regression/regression_property_no_member_844.py index 759b7bfe3..279d7b250 100644 --- a/tests/functional/r/regression/regression_property_no_member_844.py +++ b/tests/functional/r/regression/regression_property_no_member_844.py @@ -1,5 +1,5 @@ # pylint: disable=missing-docstring,too-few-public-methods,invalid-overridden-method -# https://github.com/PyCQA/pylint/issues/844 +# https://github.com/pylint-dev/pylint/issues/844 class Parent: def __init__(self): self.__thing = 'foo' diff --git a/tests/functional/r/regression/regression_property_no_member_870.py b/tests/functional/r/regression/regression_property_no_member_870.py index e89ae169e..500b217f9 100644 --- a/tests/functional/r/regression/regression_property_no_member_870.py +++ b/tests/functional/r/regression/regression_property_no_member_870.py @@ -1,5 +1,5 @@ # pylint: disable=too-few-public-methods,invalid-name,missing-docstring -# https://github.com/PyCQA/pylint/issues/870 +# https://github.com/pylint-dev/pylint/issues/870 class X: def __init__(self, val=None): diff --git a/tests/functional/r/regression_02/regression_2567.py b/tests/functional/r/regression_02/regression_2567.py index fe5c3f25a..7de293bfb 100644 --- a/tests/functional/r/regression_02/regression_2567.py +++ b/tests/functional/r/regression_02/regression_2567.py @@ -1,6 +1,6 @@ """ Regression test for `no-member`. -See: https://github.com/PyCQA/pylint/issues/2567 +See: https://github.com/pylint-dev/pylint/issues/2567 """ # pylint: disable=missing-docstring,too-few-public-methods diff --git a/tests/functional/r/regression_02/regression_2964.py b/tests/functional/r/regression_02/regression_2964.py index 66235fc09..ad8433091 100644 --- a/tests/functional/r/regression_02/regression_2964.py +++ b/tests/functional/r/regression_02/regression_2964.py @@ -1,6 +1,6 @@ """ Regression test for `no-member`. -See: https://github.com/PyCQA/pylint/issues/2964 +See: https://github.com/pylint-dev/pylint/issues/2964 """ # pylint: disable=missing-class-docstring,too-few-public-methods diff --git a/tests/functional/r/regression_02/regression_3976.py b/tests/functional/r/regression_02/regression_3976.py index 3610e9e30..27c119d47 100644 --- a/tests/functional/r/regression_02/regression_3976.py +++ b/tests/functional/r/regression_02/regression_3976.py @@ -1,5 +1,5 @@ """ -Regression test for https://github.com/PyCQA/pylint/issues/3976 +Regression test for https://github.com/pylint-dev/pylint/issues/3976 E1123: Unexpected keyword argument 'include_extras' in function call (unexpected-keyword-arg) """ diff --git a/tests/functional/r/regression_02/regression_3979.py b/tests/functional/r/regression_02/regression_3979.py index 7cc74a4f5..e14c5edb5 100644 --- a/tests/functional/r/regression_02/regression_3979.py +++ b/tests/functional/r/regression_02/regression_3979.py @@ -1,5 +1,5 @@ """ -Regression test for https://github.com/PyCQA/pylint/issues/3979 +Regression test for https://github.com/pylint-dev/pylint/issues/3979 """ import os diff --git a/tests/functional/r/regression_02/regression_4660.py b/tests/functional/r/regression_02/regression_4660.py index 872ed6ca2..b3dee058f 100644 --- a/tests/functional/r/regression_02/regression_4660.py +++ b/tests/functional/r/regression_02/regression_4660.py @@ -1,4 +1,4 @@ -"""Regression tests for https://github.com/PyCQA/pylint/issues/4660""" +"""Regression tests for https://github.com/pylint-dev/pylint/issues/4660""" # pylint: disable=useless-return, unused-argument # pylint: disable=missing-docstring, too-few-public-methods, invalid-name diff --git a/tests/functional/r/regression_02/regression_4982.py b/tests/functional/r/regression_02/regression_4982.py index a6cef6f9e..27e8d08a1 100644 --- a/tests/functional/r/regression_02/regression_4982.py +++ b/tests/functional/r/regression_02/regression_4982.py @@ -1,4 +1,4 @@ -"""Regression test for a crash reported in https://github.com/PyCQA/pylint/issues/4982""" +"""Regression test for a crash reported in https://github.com/pylint-dev/pylint/issues/4982""" # pylint: disable=too-few-public-methods class Base: diff --git a/tests/functional/r/regression_02/regression_5030.py b/tests/functional/r/regression_02/regression_5030.py index 8aa22f879..46842dc68 100644 --- a/tests/functional/r/regression_02/regression_5030.py +++ b/tests/functional/r/regression_02/regression_5030.py @@ -1,11 +1,11 @@ """Regression in astroid on ClassDef inference with two test cases. -Fixed in https://github.com/PyCQA/astroid/pull/1181""" +Fixed in https://github.com/pylint-dev/astroid/pull/1181""" from typing import Tuple, Type from typing import Dict, List, Any from dataclasses import dataclass, field -# https://github.com/PyCQA/pylint/issues/5030 +# https://github.com/pylint-dev/pylint/issues/5030 def is_type_list(f_type: Type) -> bool: """just here to show the issue""" return f_type == list @@ -13,7 +13,7 @@ def is_type_list(f_type: Type) -> bool: assert not is_type_list(Tuple) -# https://github.com/PyCQA/pylint/issues/5036 +# https://github.com/pylint-dev/pylint/issues/5036 @dataclass class SomeData: """A dataclass.""" diff --git a/tests/functional/r/regression_02/regression_5048.py b/tests/functional/r/regression_02/regression_5048.py index 08ff55fb2..9cf11baf7 100644 --- a/tests/functional/r/regression_02/regression_5048.py +++ b/tests/functional/r/regression_02/regression_5048.py @@ -1,9 +1,9 @@ """Crash regression in astroid on Compare node inference -Fixed in https://github.com/PyCQA/astroid/pull/1185""" +Fixed in https://github.com/pylint-dev/astroid/pull/1185""" # pylint: disable=missing-docstring, broad-exception-raised -# Reported at https://github.com/PyCQA/pylint/issues/5048 +# Reported at https://github.com/pylint-dev/pylint/issues/5048 def func(parameter): if tuple() + (parameter[1],) in set(): raise Exception() diff --git a/tests/functional/r/regression_02/regression_5244.py b/tests/functional/r/regression_02/regression_5244.py index 248c4a4a1..1bc811ca5 100644 --- a/tests/functional/r/regression_02/regression_5244.py +++ b/tests/functional/r/regression_02/regression_5244.py @@ -1,5 +1,5 @@ """Test for the regression on inference of self referential __len__ -Reported in https://github.com/PyCQA/pylint/issues/5244 +Reported in https://github.com/pylint-dev/pylint/issues/5244 """ # pylint: disable=missing-class-docstring, missing-function-docstring diff --git a/tests/functional/r/regression_02/regression_5408.py b/tests/functional/r/regression_02/regression_5408.py index b9bcdb9e8..93dcc81e1 100644 --- a/tests/functional/r/regression_02/regression_5408.py +++ b/tests/functional/r/regression_02/regression_5408.py @@ -1,7 +1,7 @@ """Regression test for issue 5408. Recursion error for self-referencing class attribute. -See: https://github.com/PyCQA/pylint/issues/5408 +See: https://github.com/pylint-dev/pylint/issues/5408 """ # pylint: disable=missing-docstring, too-few-public-methods, invalid-name, inherit-non-class diff --git a/tests/functional/r/regression_02/regression_5461.py b/tests/functional/r/regression_02/regression_5461.py index 39daf7b9b..9344782c0 100644 --- a/tests/functional/r/regression_02/regression_5461.py +++ b/tests/functional/r/regression_02/regression_5461.py @@ -1,6 +1,6 @@ """Regression test for issue 5461 Crash on list comprehension with it used `type` as variable name -See: https://github.com/PyCQA/pylint/issues/5461 +See: https://github.com/pylint-dev/pylint/issues/5461 """ var = [type for type in [] if type["id"]] diff --git a/tests/functional/r/regression_02/regression_5479.py b/tests/functional/r/regression_02/regression_5479.py index adc20f26c..9955ea680 100644 --- a/tests/functional/r/regression_02/regression_5479.py +++ b/tests/functional/r/regression_02/regression_5479.py @@ -1,5 +1,5 @@ """Test for a regression on slots and annotated assignments. -Reported in https://github.com/PyCQA/pylint/issues/5479 +Reported in https://github.com/pylint-dev/pylint/issues/5479 """ # pylint: disable=too-few-public-methods, unused-private-member, missing-class-docstring, missing-function-docstring diff --git a/tests/functional/r/regression_02/regression_5776.py b/tests/functional/r/regression_02/regression_5776.py index 5e8342511..00be9ad46 100644 --- a/tests/functional/r/regression_02/regression_5776.py +++ b/tests/functional/r/regression_02/regression_5776.py @@ -1,6 +1,6 @@ """Test for a regression with Enums not being recognized when imported with an alias. -Reported in https://github.com/PyCQA/pylint/issues/5776 +Reported in https://github.com/pylint-dev/pylint/issues/5776 """ from enum import Enum as PyEnum diff --git a/tests/functional/r/regression_02/regression_5801.py b/tests/functional/r/regression_02/regression_5801.py index 8c08ec675..8b6c18ec8 100644 --- a/tests/functional/r/regression_02/regression_5801.py +++ b/tests/functional/r/regression_02/regression_5801.py @@ -1,4 +1,4 @@ -# https://github.com/PyCQA/pylint/issues/5801 +# https://github.com/pylint-dev/pylint/issues/5801 # pylint: disable=missing-docstring import struct diff --git a/tests/functional/r/regression_02/regression_8109.py b/tests/functional/r/regression_02/regression_8109.py index f5cf8b142..69af0356a 100644 --- a/tests/functional/r/regression_02/regression_8109.py +++ b/tests/functional/r/regression_02/regression_8109.py @@ -1,4 +1,4 @@ -"""Regression test for https://github.com/PyCQA/pylint/issues/8109.""" +"""Regression test for https://github.com/pylint-dev/pylint/issues/8109.""" # pylint: disable=missing-docstring, unsupported-binary-operation diff --git a/tests/functional/r/regression_02/regression_8109.txt b/tests/functional/r/regression_02/regression_8109.txt index 161925b7d..b3166d608 100644 --- a/tests/functional/r/regression_02/regression_8109.txt +++ b/tests/functional/r/regression_02/regression_8109.txt @@ -1 +1 @@ -consider-using-f-string:14:24:14:34:Number.__str__:Formatting a regular string which could be a f-string:UNDEFINED +consider-using-f-string:14:24:14:34:Number.__str__:Formatting a regular string which could be an f-string:UNDEFINED diff --git a/tests/functional/r/regression_02/regression_distutil_import_error_73.py b/tests/functional/r/regression_02/regression_distutil_import_error_73.py index d40c0973f..ddd96b65e 100644 --- a/tests/functional/r/regression_02/regression_distutil_import_error_73.py +++ b/tests/functional/r/regression_02/regression_distutil_import_error_73.py @@ -1,10 +1,10 @@ """ Regression test to check that distutils can be imported -See https://github.com/PyCQA/pylint/issues/73 +See https://github.com/pylint-dev/pylint/issues/73 See also: -https://github.com/PyCQA/pylint/issues/2955 -https://github.com/PyCQA/astroid/pull/1321 +https://github.com/pylint-dev/pylint/issues/2955 +https://github.com/pylint-dev/astroid/pull/1321 """ # pylint: disable=unused-import, deprecated-module diff --git a/tests/functional/r/regression_02/regression_enum_1734.py b/tests/functional/r/regression_02/regression_enum_1734.py index 06759c7d3..128ab81e5 100644 --- a/tests/functional/r/regression_02/regression_enum_1734.py +++ b/tests/functional/r/regression_02/regression_enum_1734.py @@ -1,6 +1,6 @@ -# Regression test for https://github.com/PyCQA/astroid/pull/1734 +# Regression test for https://github.com/pylint-dev/astroid/pull/1734 # The following should lint just fine -# Fixed in https://github.com/PyCQA/astroid/pull/1743 +# Fixed in https://github.com/pylint-dev/astroid/pull/1743 # pylint: disable=missing-docstring,invalid-name diff --git a/tests/functional/r/regression_02/regression_no_member_7631.py b/tests/functional/r/regression_02/regression_no_member_7631.py index 758aad057..6329187f7 100644 --- a/tests/functional/r/regression_02/regression_no_member_7631.py +++ b/tests/functional/r/regression_02/regression_no_member_7631.py @@ -1,4 +1,4 @@ -"""Regression test from https://github.com/PyCQA/pylint/issues/7631 +"""Regression test from https://github.com/pylint-dev/pylint/issues/7631 The following code should NOT raise no-member. """ # pylint: disable=missing-docstring,too-few-public-methods diff --git a/tests/functional/r/regression_02/regression_node_statement_two.py b/tests/functional/r/regression_02/regression_node_statement_two.py index b54ed99bb..ad4afd947 100644 --- a/tests/functional/r/regression_02/regression_node_statement_two.py +++ b/tests/functional/r/regression_02/regression_node_statement_two.py @@ -1,6 +1,6 @@ """Test to see we don't crash on this code in pandas. See: https://github.com/pandas-dev/pandas/blob/master/pandas/core/indexes/period.py -Reported in https://github.com/PyCQA/pylint/issues/5382 +Reported in https://github.com/pylint-dev/pylint/issues/5382 """ # pylint: disable=missing-function-docstring, missing-class-docstring, unused-argument # pylint: disable=too-few-public-methods, no-method-argument, invalid-name diff --git a/tests/functional/r/regression/regression_property_slots_2439.py b/tests/functional/r/regression_02/regression_property_slots_2439.py index 91cf86cfd..43882b3ac 100644 --- a/tests/functional/r/regression/regression_property_slots_2439.py +++ b/tests/functional/r/regression_02/regression_property_slots_2439.py @@ -1,5 +1,5 @@ # pylint: disable=missing-docstring,invalid-name,too-few-public-methods -# https://github.com/PyCQA/pylint/issues/2439 +# https://github.com/pylint-dev/pylint/issues/2439 class TestClass: __slots__ = ["_i"] diff --git a/tests/functional/r/regression_02/regression_too_many_arguments_2335.py b/tests/functional/r/regression_02/regression_too_many_arguments_2335.py index 55aa87308..896bb320e 100644 --- a/tests/functional/r/regression_02/regression_too_many_arguments_2335.py +++ b/tests/functional/r/regression_02/regression_too_many_arguments_2335.py @@ -1,6 +1,6 @@ """Test that `abc.ABCMeta.__new__` does not trigger too-many-function-arguments when referred -https://github.com/PyCQA/pylint/issues/2335 +https://github.com/pylint-dev/pylint/issues/2335 """ # pylint: disable=missing-class-docstring,unused-argument,arguments-differ from abc import ABCMeta diff --git a/tests/functional/s/singledispatch_functions.py b/tests/functional/s/singledispatch/singledispatch_functions.py index 931bfd30d..931bfd30d 100644 --- a/tests/functional/s/singledispatch_functions.py +++ b/tests/functional/s/singledispatch/singledispatch_functions.py diff --git a/tests/functional/s/singledispatch_functions.txt b/tests/functional/s/singledispatch/singledispatch_functions.txt index 93fc30496..93fc30496 100644 --- a/tests/functional/s/singledispatch_functions.txt +++ b/tests/functional/s/singledispatch/singledispatch_functions.txt diff --git a/tests/functional/s/singledispatch_method.txt b/tests/functional/s/singledispatch/singledispatch_method.txt index c747fb6a8..c747fb6a8 100644 --- a/tests/functional/s/singledispatch_method.txt +++ b/tests/functional/s/singledispatch/singledispatch_method.txt diff --git a/tests/functional/s/singledispatch_method_py37.py b/tests/functional/s/singledispatch/singledispatch_method_py37.py index c9269f7bf..c9269f7bf 100644 --- a/tests/functional/s/singledispatch_method_py37.py +++ b/tests/functional/s/singledispatch/singledispatch_method_py37.py diff --git a/tests/functional/s/singledispatch_method_py37.rc b/tests/functional/s/singledispatch/singledispatch_method_py37.rc index 67a28a36a..67a28a36a 100644 --- a/tests/functional/s/singledispatch_method_py37.rc +++ b/tests/functional/s/singledispatch/singledispatch_method_py37.rc diff --git a/tests/functional/s/singledispatch_method_py37.txt b/tests/functional/s/singledispatch/singledispatch_method_py37.txt index 111bc4722..111bc4722 100644 --- a/tests/functional/s/singledispatch_method_py37.txt +++ b/tests/functional/s/singledispatch/singledispatch_method_py37.txt diff --git a/tests/functional/s/singledispatch_method_py38.py b/tests/functional/s/singledispatch/singledispatch_method_py38.py index ad8eea1dd..ad8eea1dd 100644 --- a/tests/functional/s/singledispatch_method_py38.py +++ b/tests/functional/s/singledispatch/singledispatch_method_py38.py diff --git a/tests/functional/s/singledispatchmethod_function_py38.rc b/tests/functional/s/singledispatch/singledispatch_method_py38.rc index 85fc502b3..85fc502b3 100644 --- a/tests/functional/s/singledispatchmethod_function_py38.rc +++ b/tests/functional/s/singledispatch/singledispatch_method_py38.rc diff --git a/tests/functional/s/singledispatch_method_py38.txt b/tests/functional/s/singledispatch/singledispatch_method_py38.txt index c747fb6a8..c747fb6a8 100644 --- a/tests/functional/s/singledispatch_method_py38.txt +++ b/tests/functional/s/singledispatch/singledispatch_method_py38.txt diff --git a/tests/functional/s/singledispatchmethod_function_py38.py b/tests/functional/s/singledispatch/singledispatchmethod_function_py38.py index ef44f71c1..ef44f71c1 100644 --- a/tests/functional/s/singledispatchmethod_function_py38.py +++ b/tests/functional/s/singledispatch/singledispatchmethod_function_py38.py diff --git a/tests/functional/s/singledispatch/singledispatchmethod_function_py38.rc b/tests/functional/s/singledispatch/singledispatchmethod_function_py38.rc new file mode 100644 index 000000000..85fc502b3 --- /dev/null +++ b/tests/functional/s/singledispatch/singledispatchmethod_function_py38.rc @@ -0,0 +1,2 @@ +[testoptions] +min_pyver=3.8 diff --git a/tests/functional/s/singledispatchmethod_function_py38.txt b/tests/functional/s/singledispatch/singledispatchmethod_function_py38.txt index 4c236b346..4c236b346 100644 --- a/tests/functional/s/singledispatchmethod_function_py38.txt +++ b/tests/functional/s/singledispatch/singledispatchmethod_function_py38.txt diff --git a/tests/functional/s/stop_iteration_inside_generator.py b/tests/functional/s/stop_iteration_inside_generator.py index efde61a77..fcd20a683 100644 --- a/tests/functional/s/stop_iteration_inside_generator.py +++ b/tests/functional/s/stop_iteration_inside_generator.py @@ -100,25 +100,25 @@ def gen_dont_crash_on_no_exception(): def gen_dont_crash_on_uninferable(): - # https://github.com/PyCQA/pylint/issues/1779 + # https://github.com/pylint-dev/pylint/issues/1779 yield from iter() raise asyncio.TimeoutError() -# https://github.com/PyCQA/pylint/issues/1830 +# https://github.com/pylint-dev/pylint/issues/1830 def gen_next_with_sentinel(): yield next([], 42) # No bad return from itertools import count, cycle -# https://github.com/PyCQA/pylint/issues/2158 +# https://github.com/pylint-dev/pylint/issues/2158 def generator_using_next(): counter = count() number = next(counter) yield number * 2 -# https://github.com/PyCQA/pylint/issues/7765 +# https://github.com/pylint-dev/pylint/issues/7765 def infinite_iterator_itertools_cycle(): counter = cycle('ABCD') val = next(counter) @@ -179,7 +179,7 @@ def other_safeiter(it): def data(filename): """ Ensure pylint doesn't crash if `next` is incorrectly called without args - See https://github.com/PyCQA/pylint/issues/7828 + See https://github.com/pylint-dev/pylint/issues/7828 """ with open(filename, encoding="utf8") as file: next() # attempt to skip header but this is incorrect code diff --git a/tests/functional/s/subclassed_final_class_py38.py b/tests/functional/s/subclassed_final_class_py38.py index a4621d532..76f4d617e 100644 --- a/tests/functional/s/subclassed_final_class_py38.py +++ b/tests/functional/s/subclassed_final_class_py38.py @@ -4,7 +4,7 @@ subclassed.""" # pylint: disable=missing-docstring, too-few-public-methods # Disabled because of a bug with pypy 3.8 see -# https://github.com/PyCQA/pylint/pull/7918#issuecomment-1352737369 +# https://github.com/pylint-dev/pylint/pull/7918#issuecomment-1352737369 # pylint: disable=multiple-statements from typing import final diff --git a/tests/functional/s/super/super_checks.py b/tests/functional/s/super/super_checks.py index 050fd3c81..2c8515b12 100644 --- a/tests/functional/s/super/super_checks.py +++ b/tests/functional/s/super/super_checks.py @@ -99,7 +99,7 @@ class InvalidSuperChecks(BaseClass): -# Regression for PyCQA/pylint/issues/773 +# Regression for pylint-dev/pylint/issues/773 import subprocess # The problem was related to astroid not filtering statements @@ -125,7 +125,7 @@ class SuperWithSelfClass: super(self.__class__, self).__init__() # [bad-super-call] -# Reported in https://github.com/PyCQA/pylint/issues/2903 +# Reported in https://github.com/pylint-dev/pylint/issues/2903 class Parent: def method(self): print() @@ -149,7 +149,7 @@ class GrandChild(Child): super(Niece, self).method() # [bad-super-call] -# Reported in https://github.com/PyCQA/pylint/issues/4922 +# Reported in https://github.com/pylint-dev/pylint/issues/4922 class AlabamaCousin(Child, Niece): def method(self): print("AlabamaCousin") diff --git a/tests/functional/s/super/super_init_not_called.py b/tests/functional/s/super/super_init_not_called.py index f0bfe0329..03bfd3b43 100644 --- a/tests/functional/s/super/super_init_not_called.py +++ b/tests/functional/s/super/super_init_not_called.py @@ -52,14 +52,14 @@ class ChildThree(ParentWithoutInit): # Regression test as reported in -# https://github.com/PyCQA/pylint/issues/6027 +# https://github.com/pylint-dev/pylint/issues/6027 class MyUnion(ctypes.Union): def __init__(self): pass # Should not be called on abstract __init__ methods -# https://github.com/PyCQA/pylint/issues/3975 +# https://github.com/pylint-dev/pylint/issues/3975 class Base: def __init__(self, param: int, param_two: str) -> None: raise NotImplementedError() diff --git a/tests/functional/s/sys_stream_regression_1004.py b/tests/functional/s/sys_stream_regression_1004.py index c0391859d..546552af9 100644 --- a/tests/functional/s/sys_stream_regression_1004.py +++ b/tests/functional/s/sys_stream_regression_1004.py @@ -1,4 +1,4 @@ -'''Regression for issue https://github.com/PyCQA/pylint/issues/1004''' +'''Regression for issue https://github.com/pylint-dev/pylint/issues/1004''' # pylint: disable=missing-docstring, pointless-statement import sys diff --git a/tests/functional/t/too/too_few_public_methods_37.py b/tests/functional/t/too/too_few_public_methods_37.py index 3b63a8fec..db9c9f171 100644 --- a/tests/functional/t/too/too_few_public_methods_37.py +++ b/tests/functional/t/too/too_few_public_methods_37.py @@ -1,7 +1,7 @@ # pylint: disable=missing-docstring # Disabled because of a bug with pypy 3.8 see -# https://github.com/PyCQA/pylint/pull/7918#issuecomment-1352737369 +# https://github.com/pylint-dev/pylint/pull/7918#issuecomment-1352737369 # pylint: disable=multiple-statements import dataclasses diff --git a/tests/functional/t/too/too_many_ancestors.py b/tests/functional/t/too/too_many_ancestors.py index a460e4f16..cd83492b3 100644 --- a/tests/functional/t/too/too_many_ancestors.py +++ b/tests/functional/t/too/too_many_ancestors.py @@ -25,8 +25,8 @@ class Jjjj(Iiii): # [too-many-ancestors] pass -# https://github.com/PyCQA/pylint/issues/4166 -# https://github.com/PyCQA/pylint/issues/4415 +# https://github.com/pylint-dev/pylint/issues/4166 +# https://github.com/pylint-dev/pylint/issues/4415 class ItemSequence(MutableSequence): """Minimal MutableSequence.""" def __getitem__(self, key): diff --git a/tests/functional/t/too/too_many_arguments.py b/tests/functional/t/too/too_many_arguments.py index 8d26902af..f4a668f53 100644 --- a/tests/functional/t/too/too_many_arguments.py +++ b/tests/functional/t/too/too_many_arguments.py @@ -26,7 +26,7 @@ def root_function(first, second, third): def func_call(): - """Test we don't emit a FP for https://github.com/PyCQA/pylint/issues/2588""" + """Test we don't emit a FP for https://github.com/pylint-dev/pylint/issues/2588""" partial_func = partial(root_function, 1, 2, 3) partial_func() return root_function(1, 2, 3) diff --git a/tests/functional/t/too/too_many_function_args.py b/tests/functional/t/too/too_many_function_args.py index c5ca4f78e..9ba49565e 100644 --- a/tests/functional/t/too/too_many_function_args.py +++ b/tests/functional/t/too/too_many_function_args.py @@ -1,4 +1,4 @@ -"""https://github.com/PyCQA/pylint/issues/3675""" +"""https://github.com/pylint-dev/pylint/issues/3675""" def noop(x): # pylint: disable=invalid-name diff --git a/tests/functional/t/too/too_many_instance_attributes.py b/tests/functional/t/too/too_many_instance_attributes.py index 3177dc8aa..a41f3ea88 100644 --- a/tests/functional/t/too/too_many_instance_attributes.py +++ b/tests/functional/t/too/too_many_instance_attributes.py @@ -1,7 +1,7 @@ # pylint: disable=missing-docstring, too-few-public-methods # Disabled because of a bug with pypy 3.8 see -# https://github.com/PyCQA/pylint/pull/7918#issuecomment-1352737369 +# https://github.com/pylint-dev/pylint/pull/7918#issuecomment-1352737369 # pylint: disable=multiple-statements diff --git a/tests/functional/t/too/too_many_instance_attributes_py37.py b/tests/functional/t/too/too_many_instance_attributes_py37.py index 152bb1ca2..1ab262b87 100644 --- a/tests/functional/t/too/too_many_instance_attributes_py37.py +++ b/tests/functional/t/too/too_many_instance_attributes_py37.py @@ -6,7 +6,7 @@ Default max_instance_attributes is 7 # pylint: disable=missing-docstring, too-few-public-methods # Disabled because of a bug with pypy 3.8 see -# https://github.com/PyCQA/pylint/pull/7918#issuecomment-1352737369 +# https://github.com/pylint-dev/pylint/pull/7918#issuecomment-1352737369 # pylint: disable=multiple-statements from dataclasses import dataclass, InitVar diff --git a/tests/functional/t/trailing_whitespaces.py b/tests/functional/t/trailing_whitespaces.py index c88b7ea62..9866398ee 100644 --- a/tests/functional/t/trailing_whitespaces.py +++ b/tests/functional/t/trailing_whitespaces.py @@ -9,7 +9,7 @@ print('windows line ends are ok') # +1: [trailing-whitespace] print('but trailing whitespace on win is not') -# Regression test for https://github.com/PyCQA/pylint/issues/6936 +# Regression test for https://github.com/pylint-dev/pylint/issues/6936 # +2: [trailing-whitespace] """ This module has the Board class. """ @@ -19,7 +19,7 @@ print('but trailing whitespace on win is not') It's a very nice Board. """ -# Regression test for https://github.com/PyCQA/pylint/issues/3822 +# Regression test for https://github.com/pylint-dev/pylint/issues/3822 def example(*args): """Example function.""" print(*args) diff --git a/tests/functional/t/typealias_naming_style_default.py b/tests/functional/t/typealias_naming_style_default.py index 8baabb49c..6a2c81569 100644 --- a/tests/functional/t/typealias_naming_style_default.py +++ b/tests/functional/t/typealias_naming_style_default.py @@ -31,3 +31,14 @@ x: Union[str, int] = 42 y: Union[str, int] # But the following, using a good TypeAlias name, is: GoodTypeAliasToUnion: TypeAlias = Union[str, int] + + +def my_function(): + """My doc.""" + LocalGoodName: TypeAlias = int + local_bad_name: TypeAlias = int # [invalid-name] + local_declaration: Union[str, int] + LocalTypeAliasToUnion: TypeAlias = Union[str, int] + local_declaration = 1 + del local_declaration + del LocalGoodName, local_bad_name, LocalTypeAliasToUnion diff --git a/tests/functional/t/typealias_naming_style_default.txt b/tests/functional/t/typealias_naming_style_default.txt index 455cbc213..24090841f 100644 --- a/tests/functional/t/typealias_naming_style_default.txt +++ b/tests/functional/t/typealias_naming_style_default.txt @@ -9,3 +9,4 @@ invalid-name:23:0:23:9::"Type alias name ""_BAD_NAME"" doesn't conform to predef invalid-name:24:0:24:10::"Type alias name ""__BAD_NAME"" doesn't conform to predefined naming style":HIGH invalid-name:25:0:25:9::"Type alias name ""_1BadName"" doesn't conform to predefined naming style":HIGH invalid-name:26:0:26:14::"Type alias name ""ANOTHERBADNAME"" doesn't conform to predefined naming style":HIGH +invalid-name:39:4:39:18:my_function:"Type alias name ""local_bad_name"" doesn't conform to predefined naming style":HIGH diff --git a/tests/functional/t/typedDict.py b/tests/functional/t/typedDict.py index 3ce96b256..31cad0b28 100644 --- a/tests/functional/t/typedDict.py +++ b/tests/functional/t/typedDict.py @@ -25,7 +25,7 @@ my_dict["var"] my_dict["var"] = 2 -# https://github.com/PyCQA/pylint/issues/4715 +# https://github.com/pylint-dev/pylint/issues/4715 # Instance of TypedDict should be callable Link = TypedDict("Link", {"href": str}) Link(href="foo") diff --git a/tests/functional/t/typing_generic.py b/tests/functional/t/typing_generic.py index 4b2985e0d..66b8ce4fc 100644 --- a/tests/functional/t/typing_generic.py +++ b/tests/functional/t/typing_generic.py @@ -1,6 +1,6 @@ # pylint: disable=missing-docstring,invalid-name,too-few-public-methods -# https://github.com/PyCQA/pylint/issues/2822 +# https://github.com/pylint-dev/pylint/issues/2822 # Base should be subscriptable, even with ABCMeta as metaclass from abc import ABC, ABCMeta from typing import Generic, TypeVar @@ -14,7 +14,7 @@ class Impl(Base[str]): """Impl""" -# https://github.com/PyCQA/astroid/issues/942 +# https://github.com/pylint-dev/astroid/issues/942 Anything = TypeVar("Anything") MoreSpecific = TypeVar("MoreSpecific", str, int) diff --git a/tests/functional/u/unbalanced_dict_unpacking.py b/tests/functional/u/unbalanced/unbalanced_dict_unpacking.py index 2c4d3b103..2c4d3b103 100644 --- a/tests/functional/u/unbalanced_dict_unpacking.py +++ b/tests/functional/u/unbalanced/unbalanced_dict_unpacking.py diff --git a/tests/functional/u/unbalanced_dict_unpacking.txt b/tests/functional/u/unbalanced/unbalanced_dict_unpacking.txt index b31d89b40..b31d89b40 100644 --- a/tests/functional/u/unbalanced_dict_unpacking.txt +++ b/tests/functional/u/unbalanced/unbalanced_dict_unpacking.txt diff --git a/tests/functional/u/unbalanced_tuple_unpacking.py b/tests/functional/u/unbalanced/unbalanced_tuple_unpacking.py index 226748933..21e497be8 100644 --- a/tests/functional/u/unbalanced_tuple_unpacking.py +++ b/tests/functional/u/unbalanced/unbalanced_tuple_unpacking.py @@ -158,5 +158,5 @@ a, b = my_function("12") # [unbalanced-tuple-unpacking] c = my_function("12") d, *_ = my_function("12") -# https://github.com/PyCQA/pylint/issues/5998 +# https://github.com/pylint-dev/pylint/issues/5998 x, y, z = (1, 2) # [unbalanced-tuple-unpacking] diff --git a/tests/functional/u/unbalanced_tuple_unpacking.txt b/tests/functional/u/unbalanced/unbalanced_tuple_unpacking.txt index 651e09840..651e09840 100644 --- a/tests/functional/u/unbalanced_tuple_unpacking.txt +++ b/tests/functional/u/unbalanced/unbalanced_tuple_unpacking.txt diff --git a/tests/functional/u/unbalanced_tuple_unpacking_py30.py b/tests/functional/u/unbalanced/unbalanced_tuple_unpacking_py30.py index c45cccdd1..c45cccdd1 100644 --- a/tests/functional/u/unbalanced_tuple_unpacking_py30.py +++ b/tests/functional/u/unbalanced/unbalanced_tuple_unpacking_py30.py diff --git a/tests/functional/u/undefined/undefined_loop_variable.py b/tests/functional/u/undefined/undefined_loop_variable.py index 9d5cf4111..a00af5d79 100644 --- a/tests/functional/u/undefined/undefined_loop_variable.py +++ b/tests/functional/u/undefined/undefined_loop_variable.py @@ -84,7 +84,7 @@ def do_stuff_with_redefined_range(): def test(content): - # https://github.com/PyCQA/pylint/issues/3711 + # https://github.com/pylint-dev/pylint/issues/3711 def handle_line(layne): if "X" in layne: layne = layne.replace("X", "Y") @@ -160,7 +160,7 @@ bigger = [ def lambda_in_first_of_two_loops(): - """https://github.com/PyCQA/pylint/issues/6419""" + """https://github.com/pylint-dev/pylint/issues/6419""" my_list = [] for thing in my_list: print_it = lambda: print(thing) # pylint: disable=cell-var-from-loop, unnecessary-lambda-assignment @@ -180,21 +180,21 @@ def variable_name_assigned_in_body_of_second_loop(): def use_enumerate(): - """https://github.com/PyCQA/pylint/issues/6593""" + """https://github.com/pylint-dev/pylint/issues/6593""" for i, num in enumerate(range(3)): pass print(i, num) def use_enumerate_in_ternary_expression(): - """https://github.com/PyCQA/pylint/issues/7131""" + """https://github.com/pylint-dev/pylint/issues/7131""" for i, num in enumerate(range(3)) if __revision__ else enumerate(range(4)): pass print(i, num) def find_even_number(container): - """https://github.com/PyCQA/pylint/pull/6923#discussion_r895134495""" + """https://github.com/pylint-dev/pylint/pull/6923#discussion_r895134495""" for something in container: if something % 2 == 0: break diff --git a/tests/functional/u/undefined/undefined_loop_variable_py38.py b/tests/functional/u/undefined/undefined_loop_variable_py38.py index 5778df7d2..f9bd06f62 100644 --- a/tests/functional/u/undefined/undefined_loop_variable_py38.py +++ b/tests/functional/u/undefined/undefined_loop_variable_py38.py @@ -2,7 +2,7 @@ def walrus_in_comprehension_test(container): - """https://github.com/PyCQA/pylint/issues/7222""" + """https://github.com/pylint-dev/pylint/issues/7222""" for something in container: print(something) print([my_test for something in container if (my_test := something)]) diff --git a/tests/functional/u/undefined/undefined_variable.py b/tests/functional/u/undefined/undefined_variable.py index 78a32dacc..e1b66910f 100644 --- a/tests/functional/u/undefined/undefined_variable.py +++ b/tests/functional/u/undefined/undefined_variable.py @@ -203,7 +203,7 @@ def dec(inp): # referencing parent class do not raise undefined variable # because at the time of their calling, the class name will # be populated -# See https://github.com/PyCQA/pylint/issues/704 +# See https://github.com/pylint-dev/pylint/issues/704 class LambdaClass: myattr = 1 mylambda = lambda: LambdaClass.myattr @@ -346,7 +346,7 @@ def decorated4(x): print(x) -# https://github.com/PyCQA/pylint/issues/5111 +# https://github.com/pylint-dev/pylint/issues/5111 # AssignAttr in orelse block of 'TYPE_CHECKING' shouldn't crash # Name being assigned must be imported in orelse block if TYPE_CHECKING: diff --git a/tests/functional/u/undefined/undefined_variable.txt b/tests/functional/u/undefined/undefined_variable.txt index ab1a00420..b41f9ae46 100644 --- a/tests/functional/u/undefined/undefined_variable.txt +++ b/tests/functional/u/undefined/undefined_variable.txt @@ -27,7 +27,7 @@ undefined-variable:166:4:166:13::Undefined variable 'unicode_2':UNDEFINED undefined-variable:171:4:171:13::Undefined variable 'unicode_3':UNDEFINED undefined-variable:226:25:226:37:LambdaClass4.<lambda>:Undefined variable 'LambdaClass4':UNDEFINED undefined-variable:234:25:234:37:LambdaClass5.<lambda>:Undefined variable 'LambdaClass5':UNDEFINED -used-before-assignment:255:26:255:34:func_should_fail:Using variable 'datetime' before assignment:HIGH +used-before-assignment:255:26:255:34:func_should_fail:Using variable 'datetime' before assignment:CONTROL_FLOW undefined-variable:291:18:291:24:not_using_loop_variable_accordingly:Undefined variable 'iteree':UNDEFINED undefined-variable:308:27:308:28:undefined_annotation:Undefined variable 'x':UNDEFINED used-before-assignment:309:7:309:8:undefined_annotation:Using variable 'x' before assignment:HIGH diff --git a/tests/functional/u/undefined/undefined_variable_classes.py b/tests/functional/u/undefined/undefined_variable_classes.py index 364e24942..64d0007a5 100644 --- a/tests/functional/u/undefined/undefined_variable_classes.py +++ b/tests/functional/u/undefined/undefined_variable_classes.py @@ -2,7 +2,7 @@ # pylint: disable=missing-function-docstring, missing-class-docstring, too-few-public-methods # Test that list comprehensions in base classes are scoped correctly -# Regression reported in https://github.com/PyCQA/pylint/issues/3434 +# Regression reported in https://github.com/pylint-dev/pylint/issues/3434 import collections @@ -14,7 +14,7 @@ class Foo(collections.namedtuple("Foo", [x + "_foo" for x in l])): # Test that class attributes are in scope for return type annotations. -# Regression reported in https://github.com/PyCQA/pylint/issues/1976 +# Regression reported in https://github.com/pylint-dev/pylint/issues/1976 class MyObject: class MyType: pass diff --git a/tests/functional/u/undefined/undefined_variable_decorators.py b/tests/functional/u/undefined/undefined_variable_decorators.py index 359737289..77c0b1229 100644 --- a/tests/functional/u/undefined/undefined_variable_decorators.py +++ b/tests/functional/u/undefined/undefined_variable_decorators.py @@ -3,7 +3,7 @@ # pylint: disable=unnecessary-comprehension # Test that class attributes are in scope for listcomp in decorator. -# Regression reported in https://github.com/PyCQA/pylint/issues/511 +# Regression reported in https://github.com/pylint-dev/pylint/issues/511 def dec(inp): def inner(func): diff --git a/tests/functional/u/undefined/undefined_variable_py30.py b/tests/functional/u/undefined/undefined_variable_py30.py index ff77aaf8e..723e275a0 100644 --- a/tests/functional/u/undefined/undefined_variable_py30.py +++ b/tests/functional/u/undefined/undefined_variable_py30.py @@ -87,7 +87,7 @@ def used_before_assignment(*, arg): return arg + 1 # Test for #4021 -# https://github.com/PyCQA/pylint/issues/4021 +# https://github.com/pylint-dev/pylint/issues/4021 class MetaClass(type): def __new__(mcs, *args, parameter=None, **kwargs): print(parameter) @@ -99,7 +99,7 @@ class InheritingClass(metaclass=MetaClass, parameter=variable): # [undefined-va # Test for #4031 -# https://github.com/PyCQA/pylint/issues/4031 +# https://github.com/pylint-dev/pylint/issues/4031 class Inheritor(metaclass=DefinedTooLate ): # [undefined-variable] pass diff --git a/tests/functional/u/undefined/undefined_variable_py38.py b/tests/functional/u/undefined/undefined_variable_py38.py index 6fb543e80..1f69a18a8 100644 --- a/tests/functional/u/undefined/undefined_variable_py38.py +++ b/tests/functional/u/undefined/undefined_variable_py38.py @@ -120,7 +120,7 @@ sorted_things = sorted( # Tests for type annotation reused in comprehension def type_annotation_used_after_comprehension(): - """https://github.com/PyCQA/pylint/issues/5326#issuecomment-982635371""" + """https://github.com/pylint-dev/pylint/issues/5326#issuecomment-982635371""" my_int: int ints = [my_int + 1 for my_int in range(5)] @@ -129,13 +129,13 @@ def type_annotation_used_after_comprehension(): def type_annotation_unused_after_comprehension(): - """https://github.com/PyCQA/pylint/issues/5326""" + """https://github.com/pylint-dev/pylint/issues/5326""" my_int: int _ = [print(sep=my_int, end=my_int) for my_int in range(10)] def type_annotation_used_improperly_after_comprehension(): - """https://github.com/PyCQA/pylint/issues/5654""" + """https://github.com/pylint-dev/pylint/issues/5654""" my_int: int _ = [print(sep=my_int, end=my_int) for my_int in range(10)] print(my_int) # [used-before-assignment] diff --git a/tests/functional/u/undefined/undefined_variable_typing.py b/tests/functional/u/undefined/undefined_variable_typing.py index 7ef4d8599..fda65ceca 100644 --- a/tests/functional/u/undefined/undefined_variable_typing.py +++ b/tests/functional/u/undefined/undefined_variable_typing.py @@ -2,7 +2,7 @@ # pylint: disable=invalid-name, import-error # Ensure attribute lookups in type comments are accounted for. -# Reported in https://github.com/PyCQA/pylint/issues/4603 +# Reported in https://github.com/pylint-dev/pylint/issues/4603 from typing import TYPE_CHECKING, Any, Dict @@ -16,12 +16,12 @@ c = ... # type: Bar.Boo if TYPE_CHECKING: __additional_builtin__: Dict[str, Any] - # For why this would emit redefined-builtin: https://github.com/PyCQA/pylint/pull/3643 + # For why this would emit redefined-builtin: https://github.com/pylint-dev/pylint/pull/3643 # pylint: disable-next=redefined-builtin repr: Any def run(): - """https://github.com/PyCQA/pylint/issues/6388""" + """https://github.com/pylint-dev/pylint/issues/6388""" print(repr) return __additional_builtin__["test"] diff --git a/tests/functional/u/unexpected_special_method_signature.py b/tests/functional/u/unexpected_special_method_signature.py index e2ae33857..146308b03 100644 --- a/tests/functional/u/unexpected_special_method_signature.py +++ b/tests/functional/u/unexpected_special_method_signature.py @@ -128,7 +128,7 @@ class ThirdGoodContextManager: # unexpected-special-method-signature
-# https://github.com/PyCQA/pylint/issues/6644
+# https://github.com/pylint-dev/pylint/issues/6644
class Philosopher:
def __init_subclass__(cls, default_name, **kwargs):
super().__init_subclass__(**kwargs)
diff --git a/tests/functional/u/ungrouped_imports.py b/tests/functional/u/ungrouped_imports.py index ace3a8e3f..b94fbeef9 100644 --- a/tests/functional/u/ungrouped_imports.py +++ b/tests/functional/u/ungrouped_imports.py @@ -26,7 +26,7 @@ from unittest import TestCase from unittest.mock import MagicMock -# https://github.com/PyCQA/pylint/issues/3382 +# https://github.com/pylint-dev/pylint/issues/3382 # Imports in a `if TYPE_CHECKING` block should not trigger `ungrouped-imports` from typing import TYPE_CHECKING if TYPE_CHECKING: diff --git a/tests/functional/u/unnecessary/unnecessary_dict_index_lookup.py b/tests/functional/u/unnecessary/unnecessary_dict_index_lookup.py index 74bf4e611..e02df87e3 100644 --- a/tests/functional/u/unnecessary/unnecessary_dict_index_lookup.py +++ b/tests/functional/u/unnecessary/unnecessary_dict_index_lookup.py @@ -73,7 +73,7 @@ for item in d.items(): # Test false positive described in #4630 -# (https://github.com/PyCQA/pylint/issues/4630) +# (https://github.com/pylint-dev/pylint/issues/4630) d = {'key': 'value'} @@ -90,7 +90,7 @@ for k, _ in d.items(): # Test false positive described in #4716 # Should not be emitted for del -# (https://github.com/PyCQA/pylint/issues/4716) +# (https://github.com/pylint-dev/pylint/issues/4716) d = {} for key, val in d.items(): del d[key] @@ -107,25 +107,25 @@ for key, val in outer_dict.items(): break # Test partial unpacking of items -# https://github.com/PyCQA/pylint/issues/5504 +# https://github.com/pylint-dev/pylint/issues/5504 d = {} for key, in d.items(): print(d[key]) # Test subscripting an attribute -# https://github.com/PyCQA/pylint/issues/6557 +# https://github.com/pylint-dev/pylint/issues/6557 f = Foo() for input_output in d.items(): f.input_output = input_output # pylint: disable=attribute-defined-outside-init print(d[f.input_output[0]]) -# Regression test for https://github.com/PyCQA/pylint/issues/6788 +# Regression test for https://github.com/pylint-dev/pylint/issues/6788 d = {'a': 1, 'b': 2, 'c': 3} for key, val in d.items(): ([d[key], x], y) = ([1, 2], 3) -# Regression test for https://github.com/PyCQA/pylint/issues/6818 +# Regression test for https://github.com/pylint-dev/pylint/issues/6818 d = {'a': 1, 'b': 2, 'c': 3} for key, val in d.items(): while d[key] > 0: diff --git a/tests/functional/u/unnecessary/unnecessary_ellipsis.py b/tests/functional/u/unnecessary/unnecessary_ellipsis.py index c46fd323a..081c4beda 100644 --- a/tests/functional/u/unnecessary/unnecessary_ellipsis.py +++ b/tests/functional/u/unnecessary/unnecessary_ellipsis.py @@ -123,7 +123,7 @@ def func1(val1, _): def func2(val1, val2): """Ignore if ellipsis is used on comparisons. - See https://github.com/PyCQA/pylint/issues/6071.""" + See https://github.com/pylint-dev/pylint/issues/6071.""" if val1 is not ... and val2: pass diff --git a/tests/functional/u/unnecessary/unnecessary_list_index_lookup.py b/tests/functional/u/unnecessary/unnecessary_list_index_lookup.py index ec5ee22c2..9e99388d8 100644 --- a/tests/functional/u/unnecessary/unnecessary_list_index_lookup.py +++ b/tests/functional/u/unnecessary/unnecessary_list_index_lookup.py @@ -45,16 +45,16 @@ result = [val for idx, val in enumerate(my_list) if idx > 0 and my_list[idx - 1] result = [val for idx, val in enumerate(my_list) if other_list[idx] == 'a'] result = [my_list[idx] for idx, val in enumerate(my_list)] # [unnecessary-list-index-lookup] -# Regression test for https://github.com/PyCQA/pylint/issues/6049 +# Regression test for https://github.com/pylint-dev/pylint/issues/6049 pairs = [(0, 0)] for i, (a, b) in enumerate(pairs): print(pairs[i][0]) -# Regression test for https://github.com/PyCQA/pylint/issues/6603 +# Regression test for https://github.com/pylint-dev/pylint/issues/6603 for i, num in enumerate(): # raises TypeError, but shouldn't crash pylint pass -# Regression test for https://github.com/PyCQA/pylint/issues/6788 +# Regression test for https://github.com/pylint-dev/pylint/issues/6788 num_list = [1, 2, 3] for a, b in enumerate(num_list): num_list[a], _ = (2, 1) @@ -63,7 +63,7 @@ num_list = [1, 2, 3] for a, b in enumerate(num_list): ([x, num_list[a]], _) = ([5, 6], 1) -# Regression test for https://github.com/PyCQA/pylint/issues/6818 +# Regression test for https://github.com/pylint-dev/pylint/issues/6818 updated_list = [1, 2, 3] for idx, val in enumerate(updated_list): while updated_list[idx] > 0: @@ -75,14 +75,14 @@ for idx, val in enumerate(updated_list): updated_list[idx] -= 1 print(updated_list[idx]) -# Regression test for https://github.com/PyCQA/pylint/issues/6896 +# Regression test for https://github.com/pylint-dev/pylint/issues/6896 parts = ["a", "b", "c", "d"] for i, part in enumerate(parts): if i == 3: # more complex condition actually parts.insert(i, "X") print(part, parts[i]) -# regression tests for https://github.com/PyCQA/pylint/issues/7682 +# regression tests for https://github.com/pylint-dev/pylint/issues/7682 series = [1, 2, 3, 4, 5] output_list = [ (item, series[index]) diff --git a/tests/functional/u/unpacking/unpacking_non_sequence_py37.py b/tests/functional/u/unpacking/unpacking_non_sequence_py37.py index 13ab35b9a..3a1e3700a 100644 --- a/tests/functional/u/unpacking/unpacking_non_sequence_py37.py +++ b/tests/functional/u/unpacking/unpacking_non_sequence_py37.py @@ -1,11 +1,11 @@ """ -https://github.com/PyCQA/pylint/issues/4895 +https://github.com/pylint-dev/pylint/issues/4895 """ # pylint: disable=missing-docstring # Disabled because of a bug with pypy 3.8 see -# https://github.com/PyCQA/pylint/pull/7918#issuecomment-1352737369 +# https://github.com/pylint-dev/pylint/pull/7918#issuecomment-1352737369 # pylint: disable=multiple-statements from __future__ import annotations diff --git a/tests/functional/u/unreachable.py b/tests/functional/u/unreachable.py index 0211a6136..e59ad218f 100644 --- a/tests/functional/u/unreachable.py +++ b/tests/functional/u/unreachable.py @@ -25,7 +25,7 @@ def func4(): return 1 / 0 # [unreachable] -# https://github.com/PyCQA/pylint/issues/4698 +# https://github.com/pylint-dev/pylint/issues/4698 def func5(): """Empty generator functions should be allowed.""" return diff --git a/tests/functional/u/unspecified_encoding_py38.py b/tests/functional/u/unspecified_encoding_py38.py index 66b8523f4..6afdab92a 100644 --- a/tests/functional/u/unspecified_encoding_py38.py +++ b/tests/functional/u/unspecified_encoding_py38.py @@ -87,7 +87,7 @@ Path(FILENAME).open("w", encoding=LOCALE_ENCODING) # Tests for storing data about open calls. # Most of these are regression tests for a crash -# reported in https://github.com/PyCQA/pylint/issues/5321 +# reported in https://github.com/pylint-dev/pylint/issues/5321 # -- Constants MODE = "wb" @@ -126,7 +126,7 @@ open(FILENAME, mode=IOData.mode) open(FILENAME, mode=IOData().my_mode) open(FILENAME, mode=IOData().my_mode_method()) open(FILENAME, mode=IOData().my_mode_method_returner("wb")) -# Invalid value but shouldn't crash, reported in https://github.com/PyCQA/pylint/issues/5321 +# Invalid value but shouldn't crash, reported in https://github.com/pylint-dev/pylint/issues/5321 open(FILENAME, mode=IOData) @@ -141,7 +141,7 @@ class IOArgs: args_good_one = IOArgs(encoding=None, mode="wb") -# Test for crash reported in https://github.com/PyCQA/pylint/issues/5321 +# Test for crash reported in https://github.com/pylint-dev/pylint/issues/5321 open(FILENAME, args_good_one.mode, encoding=args_good_one.encoding) # Positional arguments @@ -157,8 +157,8 @@ Path(FILENAME).read_text() # [unspecified-encoding] Path(FILENAME).write_text("string", "utf-8") Path(FILENAME).write_text("string") # [unspecified-encoding] -# Test for crash reported in https://github.com/PyCQA/pylint/issues/5731 +# Test for crash reported in https://github.com/pylint-dev/pylint/issues/5731 open(FILENAME, mode=None) # [bad-open-mode, unspecified-encoding] -# Test for crash reported in https://github.com/PyCQA/pylint/issues/6414 +# Test for crash reported in https://github.com/pylint-dev/pylint/issues/6414 open('foo', mode=2) # [bad-open-mode, unspecified-encoding] diff --git a/tests/functional/u/unsubscriptable_object.py b/tests/functional/u/unsubscriptable_object.py index 0b7da78b3..4f21871d0 100644 --- a/tests/functional/u/unsubscriptable_object.py +++ b/tests/functional/u/unsubscriptable_object.py @@ -1,7 +1,7 @@ """Tests for unscubscriptable-object""" # Test for typing.NamedTuple -# See: https://github.com/PyCQA/pylint/issues/1295 +# See: https://github.com/pylint-dev/pylint/issues/1295 import typing MyType = typing.Tuple[str, str] diff --git a/tests/functional/u/unused/unused_argument.py b/tests/functional/u/unused/unused_argument.py index 69c37feef..1d072f21b 100644 --- a/tests/functional/u/unused/unused_argument.py +++ b/tests/functional/u/unused/unused_argument.py @@ -94,7 +94,7 @@ class BBBB: self.spam = 1 -# Regression test for https://github.com/PyCQA/pylint/issues/5771 +# Regression test for https://github.com/pylint-dev/pylint/issues/5771 # involving keyword-only arguments class Ancestor: def __init__(self): diff --git a/tests/functional/u/unused/unused_import.py b/tests/functional/u/unused/unused_import.py index 0abc7bf4d..c3d596b24 100644 --- a/tests/functional/u/unused/unused_import.py +++ b/tests/functional/u/unused/unused_import.py @@ -105,7 +105,7 @@ class WithMetaclass(six.with_metaclass(ABCMeta)): Requires six.""" -# Regression test for https://github.com/PyCQA/pylint/issues/3765 +# Regression test for https://github.com/pylint-dev/pylint/issues/3765 # `unused-import` should not be emitted when a type annotation uses quotation marks from typing import List diff --git a/tests/functional/u/unused/unused_import_class_def_keyword.py b/tests/functional/u/unused/unused_import_class_def_keyword.py index 0d6b59987..161d33cdb 100644 --- a/tests/functional/u/unused/unused_import_class_def_keyword.py +++ b/tests/functional/u/unused/unused_import_class_def_keyword.py @@ -1,7 +1,7 @@ """ Test false-positive for unused-import on class keyword arguments - https://github.com/PyCQA/pylint/issues/3202 + https://github.com/pylint-dev/pylint/issues/3202 """ # pylint: disable=missing-docstring,too-few-public-methods,invalid-name,import-error diff --git a/tests/functional/u/unused/unused_import_everything_disabled.py b/tests/functional/u/unused/unused_import_everything_disabled.py index 381cd012f..3c7d6c9ec 100644 --- a/tests/functional/u/unused/unused_import_everything_disabled.py +++ b/tests/functional/u/unused/unused_import_everything_disabled.py @@ -1,7 +1,7 @@ """Test that unused-import is not emitted here when everything else is disabled -https://github.com/PyCQA/pylint/issues/3445 -https://github.com/PyCQA/pylint/issues/6089 +https://github.com/pylint-dev/pylint/issues/3445 +https://github.com/pylint-dev/pylint/issues/6089 """ from math import e, pi from os import environ diff --git a/tests/functional/u/unused/unused_import_positional_only_py38.py b/tests/functional/u/unused/unused_import_positional_only_py38.py index 693a377d9..ceaad539d 100644 --- a/tests/functional/u/unused/unused_import_positional_only_py38.py +++ b/tests/functional/u/unused/unused_import_positional_only_py38.py @@ -1,6 +1,6 @@ """Test that positional only argument annotations are properly marked as consumed -https://github.com/PyCQA/pylint/issues/3462 +https://github.com/pylint-dev/pylint/issues/3462 """ from typing import AnyStr, Set diff --git a/tests/functional/u/unused/unused_private_member.py b/tests/functional/u/unused/unused_private_member.py index 1696fb691..6b14b001f 100644 --- a/tests/functional/u/unused/unused_private_member.py +++ b/tests/functional/u/unused/unused_private_member.py @@ -106,7 +106,7 @@ k = Klass() print(k.twentyone) print(k.ninetyfive) -# https://github.com/PyCQA/pylint/issues/4657 +# https://github.com/pylint-dev/pylint/issues/4657 # Mutation of class member with cls should not fire a false-positive class FalsePositive4657: """False positive tests for 4657""" @@ -140,7 +140,7 @@ class FalsePositive4657: return cls.__attr_c # [undefined-variable] -# https://github.com/PyCQA/pylint/issues/4668 +# https://github.com/pylint-dev/pylint/issues/4668 # Attributes assigned within __new__() has to be processed as part of the class class FalsePositive4668: # pylint: disable=protected-access, no-member, unreachable @@ -166,7 +166,7 @@ class FalsePositive4668: return self.func(*self.__args) -# https://github.com/PyCQA/pylint/issues/4673 +# https://github.com/pylint-dev/pylint/issues/4673 # Nested functions shouldn't cause a false positive if they are properly used class FalsePositive4673: """ The testing class """ @@ -207,7 +207,7 @@ class FalsePositive4673: return fn_to_return -# https://github.com/PyCQA/pylint/issues/4755 +# https://github.com/pylint-dev/pylint/issues/4755 # Nested attributes shouldn't cause crash class Crash4755Context: def __init__(self): @@ -223,7 +223,7 @@ class Crash4755Command: print(message) -# https://github.com/PyCQA/pylint/issues/4681 +# https://github.com/pylint-dev/pylint/issues/4681 # Accessing attributes of the class using the class name should not result in a false positive # as long as it is used within the class class FalsePositive4681: @@ -263,7 +263,7 @@ class FalsePositive4681b: FalsePositive4681b.__instance = False # This should be fine -# https://github.com/PyCQA/pylint/issues/4849 +# https://github.com/pylint-dev/pylint/issues/4849 # Accessing private static methods from classmethods via `cls` should not result in a # false positive class FalsePositive4849: @@ -283,7 +283,7 @@ class FalsePositive4849: class Pony: - """https://github.com/PyCQA/pylint/issues/4837""" + """https://github.com/pylint-dev/pylint/issues/4837""" __defaults = {} __defaults_set = False @@ -305,7 +305,7 @@ def lookup_attribute(mapping, key): # Test for regression on checking __class__ attribute -# See: https://github.com/PyCQA/pylint/issues/5261 +# See: https://github.com/pylint-dev/pylint/issues/5261 class Foo: __ham = 1 @@ -313,7 +313,7 @@ class Foo: print(self.__class__.__ham) -# https://github.com/PyCQA/pylint/issues/4756 +# https://github.com/pylint-dev/pylint/issues/4756 # Check for false positives emitted when private functions are not referenced in the class body # with standard calls but passed as arguments to other functions. class FalsePositive4756a: @@ -347,7 +347,7 @@ class TypeSelfCallInMethod: class Item: - """Regression test for https://github.com/PyCQA/pylint/issues/6709""" + """Regression test for https://github.com/pylint-dev/pylint/issues/6709""" def __init__(self, parent): self.__parent: Item = parent self.__item = self.__parent.__item # [unused-private-member] diff --git a/tests/functional/u/unused/unused_typing_imports.py b/tests/functional/u/unused/unused_typing_imports.py index 7de4e411b..3b9b7aa06 100644 --- a/tests/functional/u/unused/unused_typing_imports.py +++ b/tests/functional/u/unused/unused_typing_imports.py @@ -1,5 +1,5 @@ # pylint: disable=missing-docstring -"""Regression test for https://github.com/PyCQA/pylint/issues/1168 +"""Regression test for https://github.com/pylint-dev/pylint/issues/1168 The problem was that we weren't handling keyword-only arguments annotations, which means we were never processing them. diff --git a/tests/functional/u/unused/unused_variable.py b/tests/functional/u/unused/unused_variable.py index 0058516c9..9dabe5b59 100644 --- a/tests/functional/u/unused/unused_variable.py +++ b/tests/functional/u/unused/unused_variable.py @@ -155,7 +155,7 @@ def func4(): def main(lst): - """https://github.com/PyCQA/astroid/pull/1111#issuecomment-890367609""" + """https://github.com/pylint-dev/astroid/pull/1111#issuecomment-890367609""" try: raise ValueError except ValueError as e: # [unused-variable] diff --git a/tests/functional/u/unused/unused_variable_after_inference.py b/tests/functional/u/unused/unused_variable_after_inference.py index 569564dc9..5020cd32f 100644 --- a/tests/functional/u/unused/unused_variable_after_inference.py +++ b/tests/functional/u/unused/unused_variable_after_inference.py @@ -1,4 +1,4 @@ -"""Regression test for https://github.com/PyCQA/pylint/issues/6895""" +"""Regression test for https://github.com/pylint-dev/pylint/issues/6895""" # pylint: disable=missing-class-docstring,too-few-public-methods import argparse class Cls: diff --git a/tests/functional/u/use/use_a_generator.py b/tests/functional/u/use/use_a_generator.py index 279deb46f..6327eb1a2 100644 --- a/tests/functional/u/use/use_a_generator.py +++ b/tests/functional/u/use/use_a_generator.py @@ -1,5 +1,5 @@ # pylint: disable=missing-docstring, invalid-name -# https://github.com/PyCQA/pylint/issues/3165 +# https://github.com/pylint-dev/pylint/issues/3165 any([]) all([]) diff --git a/tests/functional/u/use/use_implicit_booleaness_not_comparison.py b/tests/functional/u/use/use_implicit_booleaness_not_comparison.py index 681ee0607..26b6aeaef 100644 --- a/tests/functional/u/use/use_implicit_booleaness_not_comparison.py +++ b/tests/functional/u/use/use_implicit_booleaness_not_comparison.py @@ -1,11 +1,11 @@ # pylint: disable=missing-docstring, missing-module-docstring, invalid-name # pylint: disable=too-few-public-methods, line-too-long, dangerous-default-value # pylint: disable=wrong-import-order -# https://github.com/PyCQA/pylint/issues/4774 +# https://github.com/pylint-dev/pylint/issues/4774 def github_issue_4774(): # Test literals - # https://github.com/PyCQA/pylint/issues/4774 + # https://github.com/pylint-dev/pylint/issues/4774 good_list = [] if not good_list: pass @@ -197,7 +197,7 @@ if long_test == { }: # [use-implicit-booleaness-not-comparison] # Check for properties and uninferable class methods -# See https://github.com/PyCQA/pylint/issues/5646 +# See https://github.com/pylint-dev/pylint/issues/5646 from xyz import AnotherClassWithProperty diff --git a/tests/functional/u/use/use_implicit_booleaness_not_len.py b/tests/functional/u/use/use_implicit_booleaness_not_len.py index 4002a6dda..eb0679918 100644 --- a/tests/functional/u/use/use_implicit_booleaness_not_len.py +++ b/tests/functional/u/use/use_implicit_booleaness_not_len.py @@ -171,7 +171,7 @@ def github_issue_1879(): assert len(function_returning_list(z)) # [use-implicit-booleaness-not-len] assert len(function_returning_int(z)) # This should raise a use-implicit-booleaness-not-len once astroid can infer it - # See https://github.com/PyCQA/pylint/pull/3821#issuecomment-743771514 + # See https://github.com/pylint-dev/pylint/pull/3821#issuecomment-743771514 # assert len(function_returning_generator(z)) # assert len(function_returning_comprehension(z)) # assert len(function_returning_function(z)) @@ -179,7 +179,7 @@ def github_issue_1879(): def github_issue_4215(): # Test undefined variables - # https://github.com/PyCQA/pylint/issues/4215 + # https://github.com/pylint-dev/pylint/issues/4215 if len(undefined_var): # [undefined-variable] pass if len(undefined_var2[0]): # [undefined-variable] diff --git a/tests/functional/u/use/use_maxsplit_arg.py b/tests/functional/u/use/use_maxsplit_arg.py index 449457a0c..11e51c116 100644 --- a/tests/functional/u/use/use_maxsplit_arg.py +++ b/tests/functional/u/use/use_maxsplit_arg.py @@ -84,7 +84,7 @@ a = "1,2,3".split('split')[-1] # [use-maxsplit-arg] a = "1,2,3".rsplit('rsplit')[0] # [use-maxsplit-arg]
# Test cases for false-positive reported in #4664
-# https://github.com/PyCQA/pylint/issues/4664
+# https://github.com/pylint-dev/pylint/issues/4664
source = 'A.B.C.D.E.F.G'
i = 0
for j in range(5):
@@ -92,7 +92,7 @@ for j in range(5): i = i + 1
# Test for crash when sep is given by keyword
-# https://github.com/PyCQA/pylint/issues/5737
+# https://github.com/pylint-dev/pylint/issues/5737
get_last = SEQ.split(sep=None)[-1] # [use-maxsplit-arg]
diff --git a/tests/functional/u/use/used_before_assignment_except_handler_for_try_with_return_py38.py b/tests/functional/u/use/used_before_assignment_except_handler_for_try_with_return_py38.py index a43a89aa1..e0d874ff8 100644 --- a/tests/functional/u/use/used_before_assignment_except_handler_for_try_with_return_py38.py +++ b/tests/functional/u/use/used_before_assignment_except_handler_for_try_with_return_py38.py @@ -1,6 +1,6 @@ """Tests for used-before-assignment with assignments in except handlers after try blocks with return statements. -See: https://github.com/PyCQA/pylint/issues/5500. +See: https://github.com/pylint-dev/pylint/issues/5500. """ # pylint: disable=inconsistent-return-statements diff --git a/tests/functional/u/used/used_before_assignment.py b/tests/functional/u/used/used_before_assignment.py index d36b2fd8d..91212612d 100644 --- a/tests/functional/u/used/used_before_assignment.py +++ b/tests/functional/u/used/used_before_assignment.py @@ -1,6 +1,6 @@ """Miscellaneous used-before-assignment cases""" # pylint: disable=consider-using-f-string, missing-function-docstring - +import datetime MSG = "hello %s" % MSG # [used-before-assignment] @@ -108,7 +108,7 @@ for num in [0, 1]: print(VAR12) def turn_on2(**kwargs): - """https://github.com/PyCQA/pylint/issues/7873""" + """https://github.com/pylint-dev/pylint/issues/7873""" if "brightness" in kwargs: brightness = kwargs["brightness"] var, *args = (1, "set_dimmer_state", brightness) @@ -116,3 +116,50 @@ def turn_on2(**kwargs): var, *args = (1, "restore_dimmer_state") print(var, *args) + + +# Variables guarded by the same test when used. + +# Always false +if __name__ == "__main__": + PERCENT = 20 + SALE = True + +if __name__ == "__main__": + print(PERCENT) + +# Different test +if __name__ is None: + print(SALE) # [used-before-assignment] + + +# Ambiguous, but same test +if not datetime.date.today(): + WAS_TODAY = True + +if not datetime.date.today(): + print(WAS_TODAY) + + +# Different tests but same inferred values +# Need falsy values here +def give_me_zero(): + return 0 + +def give_me_nothing(): + return 0 + +if give_me_zero(): + WE_HAVE_ZERO = True + ALL_DONE = True + +if give_me_nothing(): + print(WE_HAVE_ZERO) + + +# Different tests, different values +def give_me_none(): + return None + +if give_me_none(): + print(ALL_DONE) # [used-before-assignment] diff --git a/tests/functional/u/used/used_before_assignment.txt b/tests/functional/u/used/used_before_assignment.txt index 70153f39a..0a3c9ff2f 100644 --- a/tests/functional/u/used/used_before_assignment.txt +++ b/tests/functional/u/used/used_before_assignment.txt @@ -6,3 +6,5 @@ used-before-assignment:34:3:34:7::Using variable 'VAR2' before assignment:CONTRO used-before-assignment:52:3:52:7::Using variable 'VAR4' before assignment:CONTROL_FLOW used-before-assignment:67:3:67:7::Using variable 'VAR6' before assignment:CONTROL_FLOW used-before-assignment:102:6:102:11::Using variable 'VAR10' before assignment:CONTROL_FLOW +used-before-assignment:133:10:133:14::Using variable 'SALE' before assignment:CONTROL_FLOW +used-before-assignment:165:10:165:18::Using variable 'ALL_DONE' before assignment:CONTROL_FLOW diff --git a/tests/functional/u/used/used_before_assignment_class_nested_under_function.py b/tests/functional/u/used/used_before_assignment_class_nested_under_function.py index 3627ae1e1..43734757b 100644 --- a/tests/functional/u/used/used_before_assignment_class_nested_under_function.py +++ b/tests/functional/u/used/used_before_assignment_class_nested_under_function.py @@ -1,4 +1,4 @@ -"""https://github.com/PyCQA/pylint/issues/4590""" +"""https://github.com/pylint-dev/pylint/issues/4590""" # pylint: disable=too-few-public-methods diff --git a/tests/functional/u/used/used_before_assignment_comprehension_homonyms.py b/tests/functional/u/used/used_before_assignment_comprehension_homonyms.py index 2321afed7..6c7fe411a 100644 --- a/tests/functional/u/used/used_before_assignment_comprehension_homonyms.py +++ b/tests/functional/u/used/used_before_assignment_comprehension_homonyms.py @@ -2,7 +2,7 @@ # pylint: disable=broad-exception-raised def func(): - """https://github.com/PyCQA/pylint/issues/5586""" + """https://github.com/pylint-dev/pylint/issues/5586""" try: print(value for value in range(1 / 0) if isinstance(value, int)) except ZeroDivisionError: @@ -29,7 +29,7 @@ def func3(): def func4(): - """https://github.com/PyCQA/pylint/issues/6035""" + """https://github.com/pylint-dev/pylint/issues/6035""" assets = [asset for asset in range(3) if asset.name == "filename"] try: @@ -54,7 +54,7 @@ def func5(): def func6(data, keys): """Similar, but with a subscript in a key-value pair rather than the test - See https://github.com/PyCQA/pylint/issues/6069""" + See https://github.com/pylint-dev/pylint/issues/6069""" try: results = {key: data[key] for key in keys} except KeyError as exc: diff --git a/tests/functional/u/used/used_before_assignment_else_return.py b/tests/functional/u/used/used_before_assignment_else_return.py index a7e58bb61..8dcd21337 100644 --- a/tests/functional/u/used/used_before_assignment_else_return.py +++ b/tests/functional/u/used/used_before_assignment_else_return.py @@ -3,7 +3,7 @@ import sys def valid(): - """https://github.com/PyCQA/pylint/issues/6790""" + """https://github.com/pylint-dev/pylint/issues/6790""" try: pass except ValueError: diff --git a/tests/functional/u/used/used_before_assignment_except_handler_for_try_with_return.py b/tests/functional/u/used/used_before_assignment_except_handler_for_try_with_return.py index c83a48473..418fee298 100644 --- a/tests/functional/u/used/used_before_assignment_except_handler_for_try_with_return.py +++ b/tests/functional/u/used/used_before_assignment_except_handler_for_try_with_return.py @@ -1,6 +1,6 @@ """Tests for used-before-assignment with assignments in except handlers after try blocks with return statements. -See: https://github.com/PyCQA/pylint/issues/5500. +See: https://github.com/pylint-dev/pylint/issues/5500. """ # pylint: disable=inconsistent-return-statements,broad-exception-raised diff --git a/tests/functional/u/used/used_before_assignment_issue2615.py b/tests/functional/u/used/used_before_assignment_issue2615.py index bce073bf3..e2e5a4181 100644 --- a/tests/functional/u/used/used_before_assignment_issue2615.py +++ b/tests/functional/u/used/used_before_assignment_issue2615.py @@ -1,4 +1,4 @@ -"""https://github.com/PyCQA/pylint/issues/2615""" +"""https://github.com/pylint-dev/pylint/issues/2615""" def main(): """When evaluating except blocks, assume try statements fail.""" try: diff --git a/tests/functional/u/used/used_before_assignment_issue4761.py b/tests/functional/u/used/used_before_assignment_issue4761.py index 6f8e048e4..7ba77be62 100644 --- a/tests/functional/u/used/used_before_assignment_issue4761.py +++ b/tests/functional/u/used/used_before_assignment_issue4761.py @@ -13,7 +13,7 @@ def function(): def uses_nonlocal(): - """https://github.com/PyCQA/pylint/issues/5965""" + """https://github.com/pylint-dev/pylint/issues/5965""" count = 0 def inner(): nonlocal count @@ -46,7 +46,7 @@ def uses_unrelated_nonlocal(): # only non-break exit branch. def valid_only_non_break_exit_from_loop_is_except_handler(): - """https://github.com/PyCQA/pylint/issues/5683""" + """https://github.com/pylint-dev/pylint/issues/5683""" for _ in range(3): try: function() # not an exit branch because of `else` below diff --git a/tests/functional/u/used/used_before_assignment_issue85.py b/tests/functional/u/used/used_before_assignment_issue85.py index 367af9dfa..7ede436bb 100644 --- a/tests/functional/u/used/used_before_assignment_issue85.py +++ b/tests/functional/u/used/used_before_assignment_issue85.py @@ -1,4 +1,4 @@ -"""https://github.com/PyCQA/pylint/issues/85""" +"""https://github.com/pylint-dev/pylint/issues/85""" def main(): """When evaluating finally blocks, assume try statements fail.""" try: @@ -54,7 +54,7 @@ def try_except_finally_nested_try_finally_in_try(): def try_except_finally_nested_in_finally(): """Until Pylint comes to a consensus on requiring all except handlers to - define a name, raise, or return (https://github.com/PyCQA/pylint/issues/5524), + define a name, raise, or return (https://github.com/pylint-dev/pylint/issues/5524), Pylint assumes statements in try blocks succeed when accessed *after* except or finally blocks and fail when accessed *in* except or finally blocks.) diff --git a/tests/functional/u/used/used_before_assignment_nonlocal.py b/tests/functional/u/used/used_before_assignment_nonlocal.py index 18e16177d..4d926e9eb 100644 --- a/tests/functional/u/used/used_before_assignment_nonlocal.py +++ b/tests/functional/u/used/used_before_assignment_nonlocal.py @@ -60,7 +60,7 @@ nonlocal_in_ifexp() def type_annotation_only_gets_value_via_nonlocal():
- """https://github.com/PyCQA/pylint/issues/5394"""
+ """https://github.com/pylint-dev/pylint/issues/5394"""
some_num: int
def inner():
nonlocal some_num
diff --git a/tests/functional/u/used/used_before_assignment_postponed_evaluation.py b/tests/functional/u/used/used_before_assignment_postponed_evaluation.py new file mode 100644 index 000000000..4ff22470c --- /dev/null +++ b/tests/functional/u/used/used_before_assignment_postponed_evaluation.py @@ -0,0 +1,13 @@ +"""Tests for used-before-assignment when postponed evaluation of annotations is enabled""" +# pylint: disable=missing-function-docstring, invalid-name +from __future__ import annotations +from typing import TYPE_CHECKING + +if TYPE_CHECKING: + var = 1 + import math + +print(var) # [used-before-assignment] + +def function_one(m: math): # no error for annotations + return m diff --git a/tests/functional/u/used/used_before_assignment_postponed_evaluation.txt b/tests/functional/u/used/used_before_assignment_postponed_evaluation.txt new file mode 100644 index 000000000..88a958736 --- /dev/null +++ b/tests/functional/u/used/used_before_assignment_postponed_evaluation.txt @@ -0,0 +1 @@ +used-before-assignment:10:6:10:9::Using variable 'var' before assignment:CONTROL_FLOW diff --git a/tests/functional/u/used/used_before_assignment_py37.py b/tests/functional/u/used/used_before_assignment_py37.py index c64bf7cf5..1b0a895bf 100644 --- a/tests/functional/u/used/used_before_assignment_py37.py +++ b/tests/functional/u/used/used_before_assignment_py37.py @@ -30,6 +30,6 @@ class MyClass: class NamedTupleSubclass(namedtuple("NamedTupleSubclass", [])): - """Taken from https://github.com/PyCQA/pylint/issues/5982""" + """Taken from https://github.com/pylint-dev/pylint/issues/5982""" def method(self) -> NamedTupleSubclass: """Variables checker crashed when astroid did not supply a lineno""" diff --git a/tests/functional/u/used/used_before_assignment_scoping.py b/tests/functional/u/used/used_before_assignment_scoping.py new file mode 100644 index 000000000..0d88210bd --- /dev/null +++ b/tests/functional/u/used/used_before_assignment_scoping.py @@ -0,0 +1,18 @@ +# pylint: disable=missing-function-docstring, missing-module-docstring + +from typing import TYPE_CHECKING + +if TYPE_CHECKING: + from datetime import datetime + + +def func_two(): + second = datetime.now() # [used-before-assignment] + return second + + +def func(): + first: datetime + first = datetime.now() # [used-before-assignment] + second = datetime.now() + return first, second diff --git a/tests/functional/u/used/used_before_assignment_scoping.txt b/tests/functional/u/used/used_before_assignment_scoping.txt new file mode 100644 index 000000000..32b6d3e1b --- /dev/null +++ b/tests/functional/u/used/used_before_assignment_scoping.txt @@ -0,0 +1,2 @@ +used-before-assignment:10:13:10:21:func_two:Using variable 'datetime' before assignment:CONTROL_FLOW +used-before-assignment:16:12:16:20:func:Using variable 'datetime' before assignment:CONTROL_FLOW diff --git a/tests/functional/u/used/used_before_assignment_type_annotations.py b/tests/functional/u/used/used_before_assignment_type_annotations.py index 1a03050c3..e70a911ca 100644 --- a/tests/functional/u/used/used_before_assignment_type_annotations.py +++ b/tests/functional/u/used/used_before_assignment_type_annotations.py @@ -77,7 +77,7 @@ def typing_and_value_assignment_with_tuple_assignment(): def nested_class_as_return_annotation(): """A namedtuple as a class attribute is used as a return annotation - Taken from https://github.com/PyCQA/pylint/issues/5568""" + Taken from https://github.com/pylint-dev/pylint/issues/5568""" class MyObject: """namedtuple as class attribute""" Coords = namedtuple('Point', ['x', 'y']) diff --git a/tests/functional/u/used/used_before_assignment_typing.py b/tests/functional/u/used/used_before_assignment_typing.py index a685bdabc..9ec040ff6 100644 --- a/tests/functional/u/used/used_before_assignment_typing.py +++ b/tests/functional/u/used/used_before_assignment_typing.py @@ -7,11 +7,12 @@ from typing import List, Optional, TYPE_CHECKING if TYPE_CHECKING: if True: # pylint: disable=using-constant-test import math + import dbm + print(dbm) # no error when defined and used in the same false branch from urllib.request import urlopen import array import base64 import binascii - import bisect import calendar import collections import copy @@ -91,7 +92,7 @@ class MyClass: class MySecondClass: """Class to test self referential variable typing. - This regressed, reported in: https://github.com/PyCQA/pylint/issues/5342 + This regressed, reported in: https://github.com/pylint-dev/pylint/issues/5342 """ def self_referential_optional_within_method(self) -> None: @@ -121,7 +122,7 @@ class MyOtherClass: class MyThirdClass: """Class to test self referential variable typing within conditionals. - This regressed, reported in: https://github.com/PyCQA/pylint/issues/5499 + This regressed, reported in: https://github.com/pylint-dev/pylint/issues/5499 """ def function(self, var: int) -> None: @@ -134,7 +135,7 @@ class MyThirdClass: class MyFourthClass: # pylint: disable=too-few-public-methods """Class to test conditional imports guarded by TYPE_CHECKING two levels - up then used in function annotation. See https://github.com/PyCQA/pylint/issues/7539""" + up then used in function annotation. See https://github.com/pylint-dev/pylint/issues/7539""" def is_close(self, comparator: math.isclose, first, second): # [used-before-assignment] """Conditional imports guarded are only valid for variable annotations.""" @@ -145,8 +146,8 @@ class VariableAnnotationsGuardedByTypeChecking: # pylint: disable=too-few-publi """Class to test conditional imports guarded by TYPE_CHECKING then used in local (function) variable annotations, which are not evaluated at runtime. - See: https://github.com/PyCQA/pylint/issues/7609 - and https://github.com/PyCQA/pylint/issues/7882 + See: https://github.com/pylint-dev/pylint/issues/7609 + and https://github.com/pylint-dev/pylint/issues/7882 """ still_an_error: datetime.date # [used-before-assignment] diff --git a/tests/functional/u/used/used_before_assignment_typing.txt b/tests/functional/u/used/used_before_assignment_typing.txt index c0a31fae0..12794f0e9 100644 --- a/tests/functional/u/used/used_before_assignment_typing.txt +++ b/tests/functional/u/used/used_before_assignment_typing.txt @@ -1,5 +1,5 @@ -undefined-variable:68:21:68:28:MyClass.incorrect_typing_method:Undefined variable 'MyClass':UNDEFINED -undefined-variable:73:26:73:33:MyClass.incorrect_nested_typing_method:Undefined variable 'MyClass':UNDEFINED -undefined-variable:78:20:78:27:MyClass.incorrect_default_method:Undefined variable 'MyClass':UNDEFINED -used-before-assignment:139:35:139:39:MyFourthClass.is_close:Using variable 'math' before assignment:HIGH -used-before-assignment:152:20:152:28:VariableAnnotationsGuardedByTypeChecking:Using variable 'datetime' before assignment:HIGH +undefined-variable:69:21:69:28:MyClass.incorrect_typing_method:Undefined variable 'MyClass':UNDEFINED +undefined-variable:74:26:74:33:MyClass.incorrect_nested_typing_method:Undefined variable 'MyClass':UNDEFINED +undefined-variable:79:20:79:27:MyClass.incorrect_default_method:Undefined variable 'MyClass':UNDEFINED +used-before-assignment:140:35:140:39:MyFourthClass.is_close:Using variable 'math' before assignment:CONTROL_FLOW +used-before-assignment:153:20:153:28:VariableAnnotationsGuardedByTypeChecking:Using variable 'datetime' before assignment:CONTROL_FLOW diff --git a/tests/functional/u/useless/useless_parent_delegation.py b/tests/functional/u/useless/useless_parent_delegation.py index ce645e31f..b742a4e94 100644 --- a/tests/functional/u/useless/useless_parent_delegation.py +++ b/tests/functional/u/useless/useless_parent_delegation.py @@ -312,7 +312,7 @@ class DecoratedList(MyList): return super().__hash__() -# Reported in https://github.com/PyCQA/pylint/issues/2270 +# Reported in https://github.com/pylint-dev/pylint/issues/2270 class Super: def __init__(self, *args): self.args = args diff --git a/tests/functional/u/useless/useless_suppression.py b/tests/functional/u/useless/useless_suppression.py index b5c681eef..627138b50 100644 --- a/tests/functional/u/useless/useless_suppression.py +++ b/tests/functional/u/useless/useless_suppression.py @@ -3,14 +3,14 @@ # pylint: disable=unused-import, wrong-import-order, wrong-import-position # False positive for wrong-import-order -# Reported in https://github.com/PyCQA/pylint/issues/2366 +# Reported in https://github.com/pylint-dev/pylint/issues/2366 from pylint import run_pylint import astroid # False-positive for 'line-too-long' -# Reported in https://github.com/PyCQA/pylint/issues/4212 +# Reported in https://github.com/pylint-dev/pylint/issues/4212 VAR = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" # pylint: disable=line-too-long # False-positive for 'wrong-import-order' -# Reported in https://github.com/PyCQA/pylint/issues/5219 +# Reported in https://github.com/pylint-dev/pylint/issues/5219 import os |