diff options
Diffstat (limited to 'tests/functional/t')
-rw-r--r-- | tests/functional/t/too/too_few_public_methods_37.py | 2 | ||||
-rw-r--r-- | tests/functional/t/too/too_many_ancestors.py | 4 | ||||
-rw-r--r-- | tests/functional/t/too/too_many_arguments.py | 2 | ||||
-rw-r--r-- | tests/functional/t/too/too_many_function_args.py | 2 | ||||
-rw-r--r-- | tests/functional/t/too/too_many_instance_attributes.py | 2 | ||||
-rw-r--r-- | tests/functional/t/too/too_many_instance_attributes_py37.py | 2 | ||||
-rw-r--r-- | tests/functional/t/trailing_whitespaces.py | 4 | ||||
-rw-r--r-- | tests/functional/t/typealias_naming_style_default.py | 11 | ||||
-rw-r--r-- | tests/functional/t/typealias_naming_style_default.txt | 1 | ||||
-rw-r--r-- | tests/functional/t/typedDict.py | 2 | ||||
-rw-r--r-- | tests/functional/t/typing_generic.py | 4 |
11 files changed, 24 insertions, 12 deletions
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) |