Skip to content

Commit

Permalink
Clean up tests that had min_pyver=3.7 test setting (#8792)
Browse files Browse the repository at this point in the history
Unlike py-version, which is still meaningful for lower versions,
min_pyver doesn't have any meaning when it's already the lowest
supported Python interpreter for launching pylint.
  • Loading branch information
jacobtylerwalls committed Jun 23, 2023
1 parent e33920f commit 0754b1d
Show file tree
Hide file tree
Showing 51 changed files with 14 additions and 104 deletions.
3 changes: 0 additions & 3 deletions doc/data/messages/r/redundant-typehint-argument/pylintrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
[main]
load-plugins=pylint.extensions.typing

[testoptions]
min_pyver=3.7

This file was deleted.

2 changes: 0 additions & 2 deletions tests/functional/a/assigning/assigning_non_slot_4509.rc

This file was deleted.

2 changes: 0 additions & 2 deletions tests/functional/a/await_outside_async.rc

This file was deleted.

2 changes: 0 additions & 2 deletions tests/functional/d/dataclass/dataclass_typecheck.rc

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions tests/functional/d/dataclass/dataclass_with_field.rc

This file was deleted.

3 changes: 0 additions & 3 deletions tests/functional/ext/typing/redundant_typehint_argument.rc
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
[main]
load-plugins=pylint.extensions.typing

[testoptions]
min_pyver=3.7

[TYPING]
runtime-typing=no
3 changes: 0 additions & 3 deletions tests/functional/ext/typing/typing_broken_callable.rc
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
[main]
py-version=3.9
load-plugins=pylint.extensions.typing

[testoptions]
min_pyver=3.7
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
[main]
py-version=3.9
load-plugins=pylint.extensions.typing

[testoptions]
min_pyver=3.7
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
[main]
py-version=3.9
load-plugins=pylint.extensions.typing

[testoptions]
min_pyver=3.7
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
[main]
py-version=3.7
load-plugins=pylint.extensions.typing

[testoptions]
min_pyver=3.7
2 changes: 0 additions & 2 deletions tests/functional/f/forgotten_debug_statement_py37.rc

This file was deleted.

2 changes: 0 additions & 2 deletions tests/functional/f/function_redefined_2540.rc

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
[testoptions]
min_pyver=3.7
max_pyver=3.9
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
[testoptions]
min_pyver=3.7
max_pyver=3.9
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
[testoptions]
min_pyver=3.7
max_pyver=3.9
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
[testoptions]
min_pyver=3.7
max_pyver=3.9
2 changes: 0 additions & 2 deletions tests/functional/g/generic_alias/generic_alias_related.rc

This file was deleted.

2 changes: 0 additions & 2 deletions tests/functional/g/generic_alias/generic_alias_typing.rc

This file was deleted.

2 changes: 0 additions & 2 deletions tests/functional/i/invalid/invalid_field_call.rc

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,3 @@ enable=invalid-name
[BASIC]
attr-rgx=^x$
class-attribute-rgx=^y$

[testoptions]
min_pyver=3.7
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
[testoptions]
min_pyver=3.7
exclude_from_minimal_messages_config=true

[LOGGING]
Expand Down
2 changes: 0 additions & 2 deletions tests/functional/m/member/member_checks_py37.rc

This file was deleted.

2 changes: 0 additions & 2 deletions tests/functional/n/no/no_member_dataclasses.rc

This file was deleted.

3 changes: 0 additions & 3 deletions tests/functional/n/no/no_member_nested_namedtuple.rc
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
[testoptions]
min_pyver=3.7

[MESSAGES CONTROL]
disable=fixme,
logging-too-many-args,
Expand Down
2 changes: 0 additions & 2 deletions tests/functional/n/no/no_member_subclassed_dataclasses.rc

This file was deleted.

14 changes: 13 additions & 1 deletion tests/functional/n/no/no_self_argument.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Check for method without self as first argument"""

# pylint: disable=missing-docstring,too-few-public-methods

MYSTATICMETHOD = staticmethod

Expand Down Expand Up @@ -47,3 +47,15 @@ def kwargs(**kwargs): # [no-self-argument]

def varargs_and_kwargs(*args, **kwargs): # [no-self-argument]
"""A method without a self argument but with *args and **kwargs."""


class Toto:

def __class_getitem__(cls, params):
# This is actually a special method which is always a class method.
# See https://www.python.org/dev/peps/pep-0560/#class-getitem
pass

def __class_other__(cls, params): # [no-self-argument]
# This is not a special case and as such is an instance method.
pass
1 change: 1 addition & 0 deletions tests/functional/n/no/no_self_argument.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ no-self-argument:19:4:19:12:NoSelfArgument.abdc:"Method 'abdc' should have ""sel
no-self-argument:42:4:42:15:NoSelfArgument.varargs:"Method 'varargs' should have ""self"" as first argument":UNDEFINED
no-self-argument:45:4:45:14:NoSelfArgument.kwargs:"Method 'kwargs' should have ""self"" as first argument":UNDEFINED
no-self-argument:48:4:48:26:NoSelfArgument.varargs_and_kwargs:"Method 'varargs_and_kwargs' should have ""self"" as first argument":UNDEFINED
no-self-argument:59:4:59:23:Toto.__class_other__:"Method '__class_other__' should have ""self"" as first argument":UNDEFINED
15 changes: 0 additions & 15 deletions tests/functional/n/no/no_self_argument_py37.py

This file was deleted.

2 changes: 0 additions & 2 deletions tests/functional/n/no/no_self_argument_py37.rc

This file was deleted.

1 change: 0 additions & 1 deletion tests/functional/n/no/no_self_argument_py37.txt

This file was deleted.

2 changes: 0 additions & 2 deletions tests/functional/n/not_async_context_manager_py37.rc

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions tests/functional/r/regression_02/regression_5030.rc

This file was deleted.

2 changes: 0 additions & 2 deletions tests/functional/t/too/too_few_public_methods_37.rc

This file was deleted.

2 changes: 0 additions & 2 deletions tests/functional/t/too/too_many_instance_attributes_py37.rc

This file was deleted.

1 change: 0 additions & 1 deletion tests/functional/t/try_except_raise_crash.rc
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
[testoptions]
min_pyver=3.7
exclude_from_minimal_messages_config=true
2 changes: 0 additions & 2 deletions tests/functional/t/typing_generic.rc

This file was deleted.

2 changes: 0 additions & 2 deletions tests/functional/u/unpacking/unpacking_non_sequence_py37.rc

This file was deleted.

2 changes: 0 additions & 2 deletions tests/functional/u/unsubscriptable_value_py37.rc

This file was deleted.

2 changes: 0 additions & 2 deletions tests/functional/u/used/used_before_assignment_py37.rc

This file was deleted.

1 change: 0 additions & 1 deletion tests/functional/w/wrong_exception_operation_py37.rc
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
[testoptions]
min_pyver=3.7
max_pyver=3.10

0 comments on commit 0754b1d

Please sign in to comment.