Skip to content

Commit

Permalink
ignore from existing unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jpy-git committed Mar 27, 2022
1 parent 4658bcb commit 851bbc8
Show file tree
Hide file tree
Showing 45 changed files with 123 additions and 117 deletions.
2 changes: 1 addition & 1 deletion tests/functional/a/alternative/alternative_union_syntax.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Test PEP 604 - Alternative Union syntax"""
# pylint: disable=missing-function-docstring,unused-argument,invalid-name,missing-class-docstring
# pylint: disable=inherit-non-class,too-few-public-methods
# pylint: disable=inherit-non-class,too-few-public-methods,unnecessary-direct-lambda-call
import dataclasses
import typing
from dataclasses import dataclass
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
For Python 3.7 - 3.9: Everything should fail.
Testing only 3.8/3.9 to support TypedDict.
"""
# pylint: disable=missing-function-docstring,unused-argument,invalid-name,missing-class-docstring,inherit-non-class,too-few-public-methods,line-too-long
# pylint: disable=missing-function-docstring,unused-argument,invalid-name,missing-class-docstring,inherit-non-class,too-few-public-methods,line-too-long,unnecessary-direct-lambda-call
import dataclasses
import typing
from dataclasses import dataclass
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
For Python 3.7 - 3.9: Most things should work.
Testing only 3.8/3.9 to support TypedDict.
"""
# pylint: disable=missing-function-docstring,unused-argument,invalid-name,missing-class-docstring,inherit-non-class,too-few-public-methods,line-too-long
# pylint: disable=missing-function-docstring,unused-argument,invalid-name,missing-class-docstring,inherit-non-class,too-few-public-methods,line-too-long,unnecessary-direct-lambda-call
from __future__ import annotations
import dataclasses
import typing
Expand Down
1 change: 1 addition & 0 deletions tests/functional/a/arguments.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# pylint: disable=too-few-public-methods, missing-docstring,import-error,wrong-import-position
# pylint: disable=wrong-import-order, useless-object-inheritance,unnecessary-lambda, consider-using-f-string
# pylint: disable=unnecessary-lambda-assignment

def decorator(fun):
"""Decorator"""
Expand Down
78 changes: 39 additions & 39 deletions tests/functional/a/arguments.txt
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
no-value-for-parameter:46:0:46:16::No value for argument 'first_argument' in function call:UNDEFINED
too-many-function-args:47:0:47:25::Too many positional arguments for function call:UNDEFINED
no-value-for-parameter:49:0:49:25::No value for argument 'third_argument' in function call:UNDEFINED
no-value-for-parameter:51:0:51:17::No value for argument 'first_argument' in function call:UNDEFINED
no-value-for-parameter:51:0:51:17::No value for argument 'second_argument' in function call:UNDEFINED
no-value-for-parameter:51:0:51:17::No value for argument 'third_argument' in function call:UNDEFINED
too-many-function-args:53:0:53:41::Too many positional arguments for function call:UNDEFINED
no-value-for-parameter:58:0:58:21::No value for argument 'first_argument' in function call:UNDEFINED
unexpected-keyword-arg:58:0:58:21::Unexpected keyword argument 'bob' in function call:UNDEFINED
unexpected-keyword-arg:59:0:59:40::Unexpected keyword argument 'coin' in function call:UNDEFINED
redundant-keyword-arg:61:0:61:30::Argument 'one' passed by position and keyword in function call:UNDEFINED
no-value-for-parameter:66:0:66:8::No value for argument 'arg' in lambda call:UNDEFINED
no-value-for-parameter:71:4:71:24:method_tests:No value for argument 'arg' in staticmethod call:UNDEFINED
no-value-for-parameter:72:4:72:29:method_tests:No value for argument 'arg' in staticmethod call:UNDEFINED
no-value-for-parameter:74:4:74:23:method_tests:No value for argument 'arg' in classmethod call:UNDEFINED
no-value-for-parameter:75:4:75:28:method_tests:No value for argument 'arg' in classmethod call:UNDEFINED
no-value-for-parameter:77:4:77:17:method_tests:No value for argument 'arg' in method call:UNDEFINED
no-value-for-parameter:78:4:78:26:method_tests:No value for argument 'arg' in unbound method call:UNDEFINED
no-value-for-parameter:80:4:80:27:method_tests:No value for argument 'arg' in method call:UNDEFINED
no-value-for-parameter:81:4:81:36:method_tests:No value for argument 'arg' in unbound method call:UNDEFINED
no-value-for-parameter:110:8:110:19:TestStaticMethod.func:No value for argument 'first' in staticmethod call:UNDEFINED
too-many-function-args:111:8:111:29:TestStaticMethod.func:Too many positional arguments for staticmethod call:UNDEFINED
too-many-function-args:119:8:119:27:TypeCheckConstructor.test:Too many positional arguments for constructor call:UNDEFINED
no-value-for-parameter:121:8:121:20:TypeCheckConstructor.test:No value for argument 'first' in constructor call:UNDEFINED
no-value-for-parameter:121:8:121:20:TypeCheckConstructor.test:No value for argument 'second' in constructor call:UNDEFINED
no-value-for-parameter:122:8:122:29:TypeCheckConstructor.test:No value for argument 'second' in constructor call:UNDEFINED
unexpected-keyword-arg:122:8:122:29:TypeCheckConstructor.test:Unexpected keyword argument 'lala' in constructor call:UNDEFINED
no-value-for-parameter:133:8:133:18:Test.test:No value for argument 'icon' in method call:UNDEFINED
too-many-function-args:134:8:134:25:Test.test:Too many positional arguments for method call:UNDEFINED
no-value-for-parameter:136:0:136:12::No value for argument 'icon' in method call:UNDEFINED
no-value-for-parameter:163:4:163:29:no_context_but_redefined:No value for argument 'three' in function call:UNDEFINED
no-value-for-parameter:163:4:163:29:no_context_but_redefined:No value for argument 'two' in function call:UNDEFINED
no-value-for-parameter:166:4:166:22:no_context_one_elem:No value for argument 'three' in function call:UNDEFINED
no-value-for-parameter:166:4:166:22:no_context_one_elem:No value for argument 'two' in function call:UNDEFINED
unexpected-keyword-arg:202:23:202:56:namedtuple_replace_issue_1036:Unexpected keyword argument 'd' in method call:UNDEFINED
unexpected-keyword-arg:202:23:202:56:namedtuple_replace_issue_1036:Unexpected keyword argument 'e' in method call:UNDEFINED
no-value-for-parameter:215:0:215:24::No value for argument 'third' in function call:UNDEFINED
no-value-for-parameter:216:0:216:30::No value for argument 'second' in function call:UNDEFINED
unexpected-keyword-arg:217:0:217:43::Unexpected keyword argument 'fourth' in function call:UNDEFINED
no-value-for-parameter:47:0:47:16::No value for argument 'first_argument' in function call:UNDEFINED
too-many-function-args:48:0:48:25::Too many positional arguments for function call:UNDEFINED
no-value-for-parameter:50:0:50:25::No value for argument 'third_argument' in function call:UNDEFINED
no-value-for-parameter:52:0:52:17::No value for argument 'first_argument' in function call:UNDEFINED
no-value-for-parameter:52:0:52:17::No value for argument 'second_argument' in function call:UNDEFINED
no-value-for-parameter:52:0:52:17::No value for argument 'third_argument' in function call:UNDEFINED
too-many-function-args:54:0:54:41::Too many positional arguments for function call:UNDEFINED
no-value-for-parameter:59:0:59:21::No value for argument 'first_argument' in function call:UNDEFINED
unexpected-keyword-arg:59:0:59:21::Unexpected keyword argument 'bob' in function call:UNDEFINED
unexpected-keyword-arg:60:0:60:40::Unexpected keyword argument 'coin' in function call:UNDEFINED
redundant-keyword-arg:62:0:62:30::Argument 'one' passed by position and keyword in function call:UNDEFINED
no-value-for-parameter:67:0:67:8::No value for argument 'arg' in lambda call:UNDEFINED
no-value-for-parameter:72:4:72:24:method_tests:No value for argument 'arg' in staticmethod call:UNDEFINED
no-value-for-parameter:73:4:73:29:method_tests:No value for argument 'arg' in staticmethod call:UNDEFINED
no-value-for-parameter:75:4:75:23:method_tests:No value for argument 'arg' in classmethod call:UNDEFINED
no-value-for-parameter:76:4:76:28:method_tests:No value for argument 'arg' in classmethod call:UNDEFINED
no-value-for-parameter:78:4:78:17:method_tests:No value for argument 'arg' in method call:UNDEFINED
no-value-for-parameter:79:4:79:26:method_tests:No value for argument 'arg' in unbound method call:UNDEFINED
no-value-for-parameter:81:4:81:27:method_tests:No value for argument 'arg' in method call:UNDEFINED
no-value-for-parameter:82:4:82:36:method_tests:No value for argument 'arg' in unbound method call:UNDEFINED
no-value-for-parameter:111:8:111:19:TestStaticMethod.func:No value for argument 'first' in staticmethod call:UNDEFINED
too-many-function-args:112:8:112:29:TestStaticMethod.func:Too many positional arguments for staticmethod call:UNDEFINED
too-many-function-args:120:8:120:27:TypeCheckConstructor.test:Too many positional arguments for constructor call:UNDEFINED
no-value-for-parameter:122:8:122:20:TypeCheckConstructor.test:No value for argument 'first' in constructor call:UNDEFINED
no-value-for-parameter:122:8:122:20:TypeCheckConstructor.test:No value for argument 'second' in constructor call:UNDEFINED
no-value-for-parameter:123:8:123:29:TypeCheckConstructor.test:No value for argument 'second' in constructor call:UNDEFINED
unexpected-keyword-arg:123:8:123:29:TypeCheckConstructor.test:Unexpected keyword argument 'lala' in constructor call:UNDEFINED
no-value-for-parameter:134:8:134:18:Test.test:No value for argument 'icon' in method call:UNDEFINED
too-many-function-args:135:8:135:25:Test.test:Too many positional arguments for method call:UNDEFINED
no-value-for-parameter:137:0:137:12::No value for argument 'icon' in method call:UNDEFINED
no-value-for-parameter:164:4:164:29:no_context_but_redefined:No value for argument 'three' in function call:UNDEFINED
no-value-for-parameter:164:4:164:29:no_context_but_redefined:No value for argument 'two' in function call:UNDEFINED
no-value-for-parameter:167:4:167:22:no_context_one_elem:No value for argument 'three' in function call:UNDEFINED
no-value-for-parameter:167:4:167:22:no_context_one_elem:No value for argument 'two' in function call:UNDEFINED
unexpected-keyword-arg:203:23:203:56:namedtuple_replace_issue_1036:Unexpected keyword argument 'd' in method call:UNDEFINED
unexpected-keyword-arg:203:23:203:56:namedtuple_replace_issue_1036:Unexpected keyword argument 'e' in method call:UNDEFINED
no-value-for-parameter:216:0:216:24::No value for argument 'third' in function call:UNDEFINED
no-value-for-parameter:217:0:217:30::No value for argument 'second' in function call:UNDEFINED
unexpected-keyword-arg:218:0:218:43::Unexpected keyword argument 'fourth' in function call:UNDEFINED
1 change: 1 addition & 0 deletions tests/functional/a/assignment/assignment_expression.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Test assignment expressions"""
# pylint: disable=missing-docstring,unused-argument,unused-import,invalid-name
# pylint: disable=blacklisted-name,unused-variable,pointless-statement,unused-variable
# pylint: disable=unnecessary-lambda-assignment
import re

if (a := True):
Expand Down
6 changes: 3 additions & 3 deletions tests/functional/a/assignment/assignment_expression.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
used-before-assignment:21:7:21:12::Using variable 'err_a' before assignment:HIGH
used-before-assignment:22:6:22:11::Using variable 'err_b' before assignment:HIGH
used-before-assignment:24:13:24:18::Using variable 'err_d' before assignment:HIGH
used-before-assignment:22:7:22:12::Using variable 'err_a' before assignment:HIGH
used-before-assignment:23:6:23:11::Using variable 'err_b' before assignment:HIGH
used-before-assignment:25:13:25:18::Using variable 'err_d' before assignment:HIGH
2 changes: 1 addition & 1 deletion tests/functional/c/cellvar_escaping_loop.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# pylint: disable= unnecessary-comprehension,missing-docstring,too-few-public-methods
# pylint: disable= unnecessary-comprehension,missing-docstring,too-few-public-methods,unnecessary-direct-lambda-call
"""Tests for loopvar-in-closure."""
from __future__ import print_function

Expand Down
2 changes: 1 addition & 1 deletion tests/functional/c/class_scope.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# pylint: disable=too-few-public-methods,no-init, useless-object-inheritance
# pylint: disable=too-few-public-methods,no-init, useless-object-inheritance, unnecessary-lambda-assignment
"""check for scope problems"""

__revision__ = None
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/d/decorator_scope.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- pylint: disable=no-init,too-few-public-methods, useless-object-inheritance
# -*- pylint: disable=no-init,too-few-public-methods, useless-object-inheritance, unnecessary-lambda-assignment
"""Test that decorators sees the class namespace - just like
function default values does but function body doesn't.
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/d/defined_and_used_on_same_line.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Check for definitions and usage happening on the same line."""
#pylint: disable=missing-docstring,multiple-statements,wrong-import-position,unnecessary-comprehension,unspecified-encoding
#pylint: disable=missing-docstring,multiple-statements,wrong-import-position,unnecessary-comprehension,unspecified-encoding,unnecessary-lambda-assignment
from __future__ import print_function
print([index
for index in range(10)])
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/ext/typing/typing_consider_using_alias.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
'py-version' needs to be set to '3.7' or '3.8' and 'runtime-typing=no'.
With 'from __future__ import annotations' present.
"""
# pylint: disable=missing-docstring,invalid-name,unused-argument,line-too-long
# pylint: disable=missing-docstring,invalid-name,unused-argument,line-too-long,unnecessary-direct-lambda-call
from __future__ import annotations

import collections
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
'py-version' needs to be set to '3.7' or '3.8' and 'runtime-typing=no'.
"""
# pylint: disable=missing-docstring,invalid-name,unused-argument,line-too-long,unsubscriptable-object
# pylint: disable=missing-docstring,invalid-name,unused-argument,line-too-long,unsubscriptable-object,unnecessary-direct-lambda-call
import collections
import collections.abc
import typing
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/ext/typing/typing_consider_using_union.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
With 'from __future__ import annotations' present.
"""
# pylint: disable=missing-docstring,invalid-name,unused-argument,line-too-long
# pylint: disable=consider-using-alias
# pylint: disable=consider-using-alias,unnecessary-direct-lambda-call
from __future__ import annotations
from dataclasses import dataclass
import typing
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
'py-version' needs to be set to >= '3.10'.
"""
# pylint: disable=missing-docstring,invalid-name,unused-argument,line-too-long
# pylint: disable=deprecated-typing-alias
# pylint: disable=deprecated-typing-alias,unnecessary-direct-lambda-call
from dataclasses import dataclass
import typing
from typing import Dict, List, Optional, Union, TypedDict
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
'py-version' needs to be set to >= '3.7' and 'runtime-typing=no'.
"""
# pylint: disable=missing-docstring,invalid-name,unused-argument,line-too-long
# pylint: disable=missing-docstring,invalid-name,unused-argument,line-too-long,unnecessary-direct-lambda-call
# pylint: disable=consider-using-alias
from dataclasses import dataclass
import typing
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/ext/typing/typing_deprecated_alias.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
'py-version' needs to be set to >= '3.9'.
"""
# pylint: disable=missing-docstring,invalid-name,unused-argument,line-too-long,unsubscriptable-object
# pylint: disable=missing-docstring,invalid-name,unused-argument,line-too-long,unsubscriptable-object,unnecessary-direct-lambda-call
import collections
import collections.abc
import typing
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/g/generic_alias/generic_alias_related.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"""
# flake8: noqa
# pylint: disable=missing-docstring,pointless-statement,expression-not-assigned
# pylint: disable=too-few-public-methods,multiple-statements,line-too-long
# pylint: disable=too-few-public-methods,multiple-statements,line-too-long, unnecessary-lambda-assignment
from abc import ABCMeta, abstractmethod
import typing

Expand Down
2 changes: 1 addition & 1 deletion tests/functional/i/invalid/invalid_bool_returned.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Check invalid value returned by __bool__ """

# pylint: disable=too-few-public-methods,missing-docstring,no-self-use,import-error, useless-object-inheritance
# pylint: disable=too-few-public-methods,missing-docstring,no-self-use,import-error, useless-object-inheritance, unnecessary-lambda-assignment
import six

from missing import Missing
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/i/invalid/invalid_bytes_returned.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Check invalid value returned by __bytes__ """

# pylint: disable=too-few-public-methods,missing-docstring,no-self-use,import-error, useless-object-inheritance
# pylint: disable=too-few-public-methods,missing-docstring,no-self-use,import-error, useless-object-inheritance, unnecessary-lambda-assignment
import six

from missing import Missing
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/i/invalid/invalid_format_returned.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Check invalid value returned by __format__ """

# pylint: disable=too-few-public-methods,missing-docstring,no-self-use,import-error, useless-object-inheritance
# pylint: disable=too-few-public-methods,missing-docstring,no-self-use,import-error, useless-object-inheritance, unnecessary-lambda-assignment
import six

from missing import Missing
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Check invalid value returned by __getnewargs_ex__ """

# pylint: disable=too-few-public-methods,missing-docstring,no-self-use,import-error, useless-object-inheritance, use-dict-literal
# pylint: disable=too-few-public-methods,missing-docstring,no-self-use,import-error, useless-object-inheritance, use-dict-literal, unnecessary-lambda-assignment
import six

from missing import Missing
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Check invalid value returned by __getnewargs__ """

# pylint: disable=too-few-public-methods,missing-docstring,no-self-use,import-error, useless-object-inheritance
# pylint: disable=too-few-public-methods,missing-docstring,no-self-use,import-error, useless-object-inheritance, unnecessary-lambda-assignment
import six

from missing import Missing
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/i/invalid/invalid_hash_returned.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Check invalid value returned by __hash__ """

# pylint: disable=too-few-public-methods,missing-docstring,no-self-use,import-error, useless-object-inheritance
# pylint: disable=too-few-public-methods,missing-docstring,no-self-use,import-error, useless-object-inheritance, unnecessary-lambda-assignment
import six

from missing import Missing
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/i/invalid/invalid_index_returned.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Check invalid value returned by __index__ """

# pylint: disable=too-few-public-methods,missing-docstring,no-self-use,import-error, useless-object-inheritance
# pylint: disable=too-few-public-methods,missing-docstring,no-self-use,import-error, useless-object-inheritance, unnecessary-lambda-assignment
import six

from missing import Missing
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Check invalid value returned by __length_hint__ """

# pylint: disable=too-few-public-methods,missing-docstring,no-self-use,import-error, useless-object-inheritance
# pylint: disable=too-few-public-methods,missing-docstring,no-self-use,import-error, useless-object-inheritance, unnecessary-lambda-assignment
import sys

import six
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Check invalid value returned by __len__ """

# pylint: disable=too-few-public-methods,missing-docstring,no-self-use,import-error, useless-object-inheritance
# pylint: disable=too-few-public-methods,missing-docstring,no-self-use,import-error, useless-object-inheritance, unnecessary-lambda-assignment
import sys

import six
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/i/invalid/invalid_repr_returned.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Check invalid value returned by __repr__ """

# pylint: disable=too-few-public-methods,missing-docstring,no-self-use,import-error, useless-object-inheritance
# pylint: disable=too-few-public-methods,missing-docstring,no-self-use,import-error, useless-object-inheritance, unnecessary-lambda-assignment
import six

from missing import Missing
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/i/invalid/invalid_str_returned.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Check invalid value returned by __str__ """

# pylint: disable=too-few-public-methods,missing-docstring,no-self-use,import-error, useless-object-inheritance
# pylint: disable=too-few-public-methods,missing-docstring,no-self-use,import-error, useless-object-inheritance, unnecessary-lambda-assignment
import six

from missing import Missing
Expand Down
1 change: 1 addition & 0 deletions tests/functional/l/lambda_use_before_assign.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""https://www.logilab.net/elo/ticket/18862"""
# pylint: disable=unnecessary-lambda-assignment
from __future__ import print_function
__revision__ = 1
def function():
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Verify if call to function or method inside tests are missing parentheses."""
# pylint: disable=using-constant-test, missing-docstring, useless-object-inheritance
# pylint: disable=invalid-name, expression-not-assigned
# pylint: disable=invalid-name, expression-not-assigned, unnecessary-lambda-assignment

import collections

Expand Down
2 changes: 1 addition & 1 deletion tests/functional/n/name/name_styles.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Test for the invalid-name warning."""
# pylint: disable= useless-object-inheritance, unnecessary-pass, unnecessary-comprehension, unused-private-member
# pylint: disable= useless-object-inheritance, unnecessary-pass, unnecessary-comprehension, unused-private-member, unnecessary-lambda-assignment
from __future__ import print_function
import abc
import collections
Expand Down
Loading

0 comments on commit 851bbc8

Please sign in to comment.