repo_id
string
cross_repo_split
string
commit_index
int32
commit_sha
string
in_repo_split
string
test_file
string
file_split
string
split_group
string
lineno
int32
col_offset
int32
assertion_type
string
test_function
string
prefix
large_string
target
string
assertion_event_type
string
assertion_event_id
string
assertion_anchor
large_string
old_target
string
old_lineno
int32
old_col_offset
int32
wemake-services/wemake-python-styleguide
train
257
24f68770f01336e7c0e3d304b98e41e0318f4909
train
tests/test_visitors/test_ast/test_blocks/test_overlap/test_blocks_overlap.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_blocks/test_overlap/test_blocks_overlap.py
107
4
assert_*
test_block_overlap
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( BlockAndLocalOverlapViolation, ) from wemake_python_styleguide.visitors.ast.blocks import BlockVariableVisitor # Wrong: import_and_class1 = """ import overlap class overlap: ... """ import_and_class2 = """ c...
[BlockAndLocalOverlapViolation])
added
89868b8c7018f1ee254221ba4dabe7174e2ee8fa18ce9a78b71af19f809bd5ea
assert_*|test_block_overlap|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( BlockAndLocalOverlapViolation, ) from wemake_python_styleguide.visitors.ast.blocks import BlockVariableVisitor # Wrong: import_and_class1 = """ import overlap class overlap: ... """ import_...
null
null
null
wemake-services/wemake-python-styleguide
train
257
24f68770f01336e7c0e3d304b98e41e0318f4909
train
tests/test_visitors/test_ast/test_blocks/test_overlap/test_blocks_overlap.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_blocks/test_overlap/test_blocks_overlap.py
108
4
assert_*
test_block_overlap
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( BlockAndLocalOverlapViolation, ) from wemake_python_styleguide.visitors.ast.blocks import BlockVariableVisitor # Wrong: import_and_class1 = """ import overlap class overlap: ... """ import_and_class2 = """ c...
'overlap')
added
896ac22c4fca5bc697d9d53d1408eb397b7c2c78ad2e624a3d8d725522e21f2b
assert_*|test_block_overlap|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( BlockAndLocalOverlapViolation, ) from wemake_python_styleguide.visitors.ast.blocks import BlockVariableVisitor # Wrong: import_and_class1 = """ import overlap class overlap: ... """ import_...
null
null
null
wemake-services/wemake-python-styleguide
train
257
24f68770f01336e7c0e3d304b98e41e0318f4909
train
tests/test_visitors/test_ast/test_functions/test_unused_variables.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_functions/test_unused_variables.py
153
4
assert_*
test_wrong_super_call
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.naming import ( UnusedVariableIsUsedViolation, ) from wemake_python_styleguide.visitors.ast.functions import ( FunctionDefinitionVisitor, ) # Correct: correct_module = """ _PROTECTED = 1 PUBLIC = _PROTECTED + 1 """ correct_class...
[UnusedVariableIsUsedViolation])
added
bee86cba13ddd49896406e37864996f212764be9d3e64f9b723cd644297c32be
assert_*|test_wrong_super_call|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.naming import ( UnusedVariableIsUsedViolation, ) from wemake_python_styleguide.visitors.ast.functions import ( FunctionDefinitionVisitor, ) # Correct: correct_module = """ _PROTECTED = 1 PUBLIC = _PROTECTED + 1...
null
null
null
wemake-services/wemake-python-styleguide
train
257
24f68770f01336e7c0e3d304b98e41e0318f4909
train
tests/test_visitors/test_ast/test_functions/test_unused_variables.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_functions/test_unused_variables.py
173
4
assert_*
test_double_wrong_variables
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.naming import ( UnusedVariableIsUsedViolation, ) from wemake_python_styleguide.visitors.ast.functions import ( FunctionDefinitionVisitor, ) # Correct: correct_module = """ _PROTECTED = 1 PUBLIC = _PROTECTED + 1 """ correct_class...
[ UnusedVariableIsUsedViolation, UnusedVariableIsUsedViolation, ])
added
0f5301ec8c0243e39c380057b743d4a1d9d2597ef28376a33a278d0f2768f741
assert_*|test_double_wrong_variables|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.naming import ( UnusedVariableIsUsedViolation, ) from wemake_python_styleguide.visitors.ast.functions import ( FunctionDefinitionVisitor, ) # Correct: correct_module = """ _PROTECTED = 1 PUBLIC = _PROTECT...
null
null
null
wemake-services/wemake-python-styleguide
train
257
24f68770f01336e7c0e3d304b98e41e0318f4909
train
tests/test_visitors/test_ast/test_naming/test_variable_usages.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_naming/test_variable_usages.py
139
4
assert_*
test_wrong_variable_usage
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.naming import ( UnusedVariableIsUsedViolation, ) from wemake_python_styleguide.visitors.ast.naming import ( WrongNameVisitor, WrongVariableUsageVisitor, ) annotation = 'some_var: {0}' annotation_value = 'some_var: {0} = None' ...
[UnusedVariableIsUsedViolation])
added
4450c48d368133b4ab5d9ddf7659b76414b4ffdbe5a4feac41a5d0e447791bc4
assert_*|test_wrong_variable_usage|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.naming import ( UnusedVariableIsUsedViolation, ) from wemake_python_styleguide.visitors.ast.naming import ( WrongNameVisitor, WrongVariableUsageVisitor, ) annotation = 'some_var: {0}' annotation_value = 'so...
null
null
null
wemake-services/wemake-python-styleguide
train
258
84ed0efb421bdae163697af2dcc5eeac11d961a5
train
tests/fixtures/noqa.py
train
wemake-services/wemake-python-styleguide:tests/fixtures/noqa.py
208
0
assert
# -*- coding: utf-8 -*- """ This file contains all possible violations. It is used for e2e tests. """ from __future__ import print_function # noqa: WPS422 import os.path # noqa: WPS301 import sys as sys # noqa: WPS113 from some import _protected # noqa: WPS436 from .version import get_version # noqa: WPS300 ...
octal_number
modified
00c7a9e8373b1fa3b4f8ae2e13627c32979a3fd99a2b329825f1b516a4a2cf12
assert||# -*- coding: utf-8 -*- """ This file contains all possible violations. It is used for e2e tests. """ from __future__ import print_function # noqa: WPS422 import os.path # noqa: WPS301 import sys as sys # noqa: WPS113 from some import _protected # noqa: WPS436 from .version import get_version # noqa: WPS300 ful...
octal_number
208
0
wemake-services/wemake-python-styleguide
train
258
84ed0efb421bdae163697af2dcc5eeac11d961a5
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
200
8
assert
# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/late...
errors
modified
377e12a4c42c14ae7c718f008398dfd0a1dcc49f40006be22f2aac4cc7e7a18c
assert||# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/...
errors
199
8
wemake-services/wemake-python-styleguide
train
258
84ed0efb421bdae163697af2dcc5eeac11d961a5
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
203
8
assert
# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/late...
errors
modified
af3b2a3ba4ef89e7f852a4e59655bc67b30dccc7a92528dd09fa472aa538c6c3
assert||# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/...
errors
202
8
wemake-services/wemake-python-styleguide
train
258
84ed0efb421bdae163697af2dcc5eeac11d961a5
train
tests/test_visitors/test_ast/test_blocks/test_overlap/test_blocks_overlap.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_blocks/test_overlap/test_blocks_overlap.py
126
4
assert_*
test_block_overlap
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( BlockAndLocalOverlapViolation, ) from wemake_python_styleguide.visitors.ast.blocks import BlockVariableVisitor # Wrong: import_and_class1 = """ import overlap class overlap: ... """ import_and_class2 = """ c...
[BlockAndLocalOverlapViolation])
added
37e543b679332f4792b0e78ca4ba2328e22fd3e1c6118df57febfe352f6495d0
assert_*|test_block_overlap|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( BlockAndLocalOverlapViolation, ) from wemake_python_styleguide.visitors.ast.blocks import BlockVariableVisitor # Wrong: import_and_class1 = """ import overlap class overlap: ... """ import_...
null
null
null
wemake-services/wemake-python-styleguide
train
258
84ed0efb421bdae163697af2dcc5eeac11d961a5
train
tests/test_visitors/test_ast/test_blocks/test_overlap/test_blocks_overlap.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_blocks/test_overlap/test_blocks_overlap.py
127
4
assert_*
test_block_overlap
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( BlockAndLocalOverlapViolation, ) from wemake_python_styleguide.visitors.ast.blocks import BlockVariableVisitor # Wrong: import_and_class1 = """ import overlap class overlap: ... """ import_and_class2 = """ c...
'overlap')
added
69e78547e2c970d41c69c18bb070aa6d8d4702eb6c2af539c607c18eb99c17e9
assert_*|test_block_overlap|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( BlockAndLocalOverlapViolation, ) from wemake_python_styleguide.visitors.ast.blocks import BlockVariableVisitor # Wrong: import_and_class1 = """ import overlap class overlap: ... """ import_...
null
null
null
wemake-services/wemake-python-styleguide
train
258
84ed0efb421bdae163697af2dcc5eeac11d961a5
train
tests/test_visitors/test_ast/test_classes/test_methods/test_useless_overwriting_method.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_classes/test_methods/test_useless_overwriting_method.py
135
4
assert_*
test_useless_overwriting
# -*- coding: utf-8 -*- from typing import List, NamedTuple import pytest from wemake_python_styleguide.violations import oop from wemake_python_styleguide.visitors.ast.classes import WrongMethodVisitor regular_method_detailed = """ class Useless(object): {decorator} def function(self, {args_definition}): ...
[oop.UselessOverwrittenMethodViolation])
added
ed87c51fe665f8594ba576c87f5b21f0a37dfb517241557bc2552adecdf71f13
assert_*|test_useless_overwriting|# -*- coding: utf-8 -*- from typing import List, NamedTuple import pytest from wemake_python_styleguide.violations import oop from wemake_python_styleguide.visitors.ast.classes import WrongMethodVisitor regular_method_detailed = """ class Useless(object): {decorator} def function(self,...
null
null
null
wemake-services/wemake-python-styleguide
train
258
84ed0efb421bdae163697af2dcc5eeac11d961a5
train
tests/test_visitors/test_ast/test_naming/test_unused/test_unused_definition.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_naming/test_unused/test_unused_definition.py
59
4
assert_*
test_unused_variable_definition
# -*- coding: utf-8 -*- from textwrap import indent import pytest from wemake_python_styleguide.violations.naming import ( UnusedVariableIsDefinedViolation, ) from wemake_python_styleguide.visitors.ast.naming import ( WrongVariableUsageVisitor, ) module_context = '{0}' function_context = """ def function()...
[UnusedVariableIsDefinedViolation])
added
8411c15dcb50ba822ca9c07f1cf27c2aaa09ff96758e8c732c71c8ca3fa51cc4
assert_*|test_unused_variable_definition|# -*- coding: utf-8 -*- from textwrap import indent import pytest from wemake_python_styleguide.violations.naming import ( UnusedVariableIsDefinedViolation, ) from wemake_python_styleguide.visitors.ast.naming import ( WrongVariableUsageVisitor, ) module_context = '{0}' function_...
null
null
null
wemake-services/wemake-python-styleguide
train
258
84ed0efb421bdae163697af2dcc5eeac11d961a5
train
tests/test_visitors/test_ast/test_naming/test_unused/test_unused_definition.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_naming/test_unused/test_unused_definition.py
194
4
assert_*
test_raw_unused_variable_definition
# -*- coding: utf-8 -*- from textwrap import indent import pytest from wemake_python_styleguide.violations.naming import ( UnusedVariableIsDefinedViolation, ) from wemake_python_styleguide.visitors.ast.naming import ( WrongVariableUsageVisitor, ) module_context = '{0}' function_context = """ def function()...
[UnusedVariableIsDefinedViolation])
added
62a6c48f8bc8604233e71ebe7da2561a94811a51d6c846b3e0567ab64c1614af
assert_*|test_raw_unused_variable_definition|# -*- coding: utf-8 -*- from textwrap import indent import pytest from wemake_python_styleguide.violations.naming import ( UnusedVariableIsDefinedViolation, ) from wemake_python_styleguide.visitors.ast.naming import ( WrongVariableUsageVisitor, ) module_context = '{0}' funct...
null
null
null
wemake-services/wemake-python-styleguide
train
259
a74dd202db0d10270b4f39b0b30d7734039a1662
train
tests/test_visitors/test_ast/test_naming/test_naming_rules/test_short.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_naming/test_naming_rules/test_short.py
32
4
assert_*
test_short_variable_name
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.naming import ( TooShortNameViolation, TrailingUnderscoreViolation, ) from wemake_python_styleguide.visitors.ast.naming import WrongNameVisitor @pytest.mark.parametrize('short_name', [ 'y', '_y', ]) def test_short_variabl...
short_name)
added
0b36d7f4a87d99322350bcc6e67c5783bea15249ac2d9af8bb83e47efdce678e
assert_*|test_short_variable_name|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.naming import ( TooShortNameViolation, TrailingUnderscoreViolation, ) from wemake_python_styleguide.visitors.ast.naming import WrongNameVisitor @pytest.mark.parametrize('short_name', [ 'y', '_y', ]) def test...
null
null
null
wemake-services/wemake-python-styleguide
train
259
a74dd202db0d10270b4f39b0b30d7734039a1662
train
tests/test_visitors/test_ast/test_naming/test_naming_rules/test_short.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_naming/test_naming_rules/test_short.py
52
4
assert_*
test_short_variable_name_underscore
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.naming import ( TooShortNameViolation, TrailingUnderscoreViolation, ) from wemake_python_styleguide.visitors.ast.naming import WrongNameVisitor @pytest.mark.parametrize('short_name', [ 'y', '_y', ]) def test_short_variabl...
[ TooShortNameViolation, TrailingUnderscoreViolation, ])
added
8f3b8daa8e82fa0f9ab992e1419d04bc33a41636683e7fcd3fc032c5ac631a9c
assert_*|test_short_variable_name_underscore|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.naming import ( TooShortNameViolation, TrailingUnderscoreViolation, ) from wemake_python_styleguide.visitors.ast.naming import WrongNameVisitor @pytest.mark.parametrize('short_name', [ 'y', '_y', ...
null
null
null
wemake-services/wemake-python-styleguide
train
259
a74dd202db0d10270b4f39b0b30d7734039a1662
train
tests/test_visitors/test_ast/test_naming/test_naming_rules/test_short.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_naming/test_naming_rules/test_short.py
74
4
assert_*
test_naming_length_settings
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.naming import ( TooShortNameViolation, TrailingUnderscoreViolation, ) from wemake_python_styleguide.visitors.ast.naming import WrongNameVisitor @pytest.mark.parametrize('short_name', [ 'y', '_y', ]) def test_short_variabl...
[TooShortNameViolation])
added
910df8e75664a4b97ce21114fd08f6e1b6372b1ac731565a4738c18e7f7ef9d9
assert_*|test_naming_length_settings|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.naming import ( TooShortNameViolation, TrailingUnderscoreViolation, ) from wemake_python_styleguide.visitors.ast.naming import WrongNameVisitor @pytest.mark.parametrize('short_name', [ 'y', '_y', ]) def t...
null
null
null
wemake-services/wemake-python-styleguide
train
259
a74dd202db0d10270b4f39b0b30d7734039a1662
train
tests/test_visitors/test_ast/test_naming/test_naming_rules/test_short.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_naming/test_naming_rules/test_short.py
75
4
assert_*
test_naming_length_settings
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.naming import ( TooShortNameViolation, TrailingUnderscoreViolation, ) from wemake_python_styleguide.visitors.ast.naming import WrongNameVisitor @pytest.mark.parametrize('short_name', [ 'y', '_y', ]) def test_short_variabl...
short_name)
added
ac2aae53dead02c8cfcdaaf4f30b05b2553608d99f7a550661d6a358faebc5b6
assert_*|test_naming_length_settings|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.naming import ( TooShortNameViolation, TrailingUnderscoreViolation, ) from wemake_python_styleguide.visitors.ast.naming import WrongNameVisitor @pytest.mark.parametrize('short_name', [ 'y', '_y', ]) def t...
null
null
null
wemake-services/wemake-python-styleguide
train
259
a74dd202db0d10270b4f39b0b30d7734039a1662
train
tests/test_visitors/test_filenames/test_module/test_module_name_length.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_filenames/test_module/test_module_name_length.py
27
4
assert_*
test_too_short_filename
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.naming import ( TooLongNameViolation, TooShortNameViolation, ) from wemake_python_styleguide.visitors.filenames.module import ( WrongModuleNameVisitor, ) @pytest.mark.parametrize('filename', [ 'a.py', 'relative/_a.py'...
[TooShortNameViolation])
modified
79571ed018a819c1c7f84ef11d6cf44833e9037efe71d85bcb94d438604a2ff1
assert_*|test_too_short_filename|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.naming import ( TooLongNameViolation, TooShortNameViolation, ) from wemake_python_styleguide.visitors.filenames.module import ( WrongModuleNameVisitor, ) @pytest.mark.parametrize('filename', [ 'a.py', 'relati...
[TooShortNameViolation])
25
4
wemake-services/wemake-python-styleguide
train
259
a74dd202db0d10270b4f39b0b30d7734039a1662
train
tests/test_visitors/test_filenames/test_module/test_module_name_length.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_filenames/test_module/test_module_name_length.py
52
4
assert_*
test_length_option
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.naming import ( TooLongNameViolation, TooShortNameViolation, ) from wemake_python_styleguide.visitors.filenames.module import ( WrongModuleNameVisitor, ) @pytest.mark.parametrize('filename', [ 'a.py', 'relative/_a.py'...
filename.replace('.py', ''))
modified
5b89d81d78adf9932556a6dd79ad39a6aab97beb34e5f1cd385a51ad7c426263
assert_*|test_length_option|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.naming import ( TooLongNameViolation, TooShortNameViolation, ) from wemake_python_styleguide.visitors.filenames.module import ( WrongModuleNameVisitor, ) @pytest.mark.parametrize('filename', [ 'a.py', 'relative/_a...
filename.replace('.py', ''))
50
4
wemake-services/wemake-python-styleguide
train
259
a74dd202db0d10270b4f39b0b30d7734039a1662
train
tests/test_visitors/test_filenames/test_module/test_module_name_length.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_filenames/test_module/test_module_name_length.py
66
4
assert_*
test_too_long_filename
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.naming import ( TooLongNameViolation, TooShortNameViolation, ) from wemake_python_styleguide.visitors.filenames.module import ( WrongModuleNameVisitor, ) @pytest.mark.parametrize('filename', [ 'a.py', 'relative/_a.py'...
[TooLongNameViolation])
modified
b31720199bb36ac52ec14ed079035d059f6ac84a73cd9886a3677dfff09d947f
assert_*|test_too_long_filename|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.naming import ( TooLongNameViolation, TooShortNameViolation, ) from wemake_python_styleguide.visitors.filenames.module import ( WrongModuleNameVisitor, ) @pytest.mark.parametrize('filename', [ 'a.py', 'relativ...
[TooLongNameViolation])
64
4
wemake-services/wemake-python-styleguide
train
259
a74dd202db0d10270b4f39b0b30d7734039a1662
train
tests/test_visitors/test_filenames/test_module/test_module_name_length.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_filenames/test_module/test_module_name_length.py
78
4
assert_*
test_max_length_option
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.naming import ( TooLongNameViolation, TooShortNameViolation, ) from wemake_python_styleguide.visitors.filenames.module import ( WrongModuleNameVisitor, ) @pytest.mark.parametrize('filename', [ 'a.py', 'relative/_a.py'...
filename.replace('.py', ''))
modified
a0ce20fccc6999becaf48d1ce7c63451debabc86343e8f1f604f7b7c1d66682e
assert_*|test_max_length_option|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.naming import ( TooLongNameViolation, TooShortNameViolation, ) from wemake_python_styleguide.visitors.filenames.module import ( WrongModuleNameVisitor, ) @pytest.mark.parametrize('filename', [ 'a.py', 'relativ...
filename.replace('.py', ''))
76
4
wemake-services/wemake-python-styleguide
train
260
b18ec9326162b86d5e7818263db629bd6d9c434f
train
tests/fixtures/noqa.py
train
wemake-services/wemake-python-styleguide:tests/fixtures/noqa.py
210
0
assert
# -*- coding: utf-8 -*- """ This file contains all possible violations. It is used for e2e tests. """ from __future__ import print_function # noqa: WPS422 import os.path # noqa: WPS301 import sys as sys # noqa: WPS113 from some import _protected # noqa: WPS436 from .version import get_version # noqa: WPS300 ...
octal_number
modified
afa479eeaf20398f0ee6c5363811398637612c68c9622d2ca0f3fa68893232f7
assert||# -*- coding: utf-8 -*- """ This file contains all possible violations. It is used for e2e tests. """ from __future__ import print_function # noqa: WPS422 import os.path # noqa: WPS301 import sys as sys # noqa: WPS113 from some import _protected # noqa: WPS436 from .version import get_version # noqa: WPS300 ful...
octal_number
208
0
wemake-services/wemake-python-styleguide
train
260
b18ec9326162b86d5e7818263db629bd6d9c434f
train
tests/fixtures/noqa.py
train
wemake-services/wemake-python-styleguide:tests/fixtures/noqa.py
221
0
assert
# -*- coding: utf-8 -*- """ This file contains all possible violations. It is used for e2e tests. """ from __future__ import print_function # noqa: WPS422 import os.path # noqa: WPS301 import sys as sys # noqa: WPS113 from some import _protected # noqa: WPS436 from .version import get_version # noqa: WPS300 ...
hex_number
modified
32f092cb17ab42b37fe4ea764bff4218fbd8911300d06eb243223615c9875bbc
assert||# -*- coding: utf-8 -*- """ This file contains all possible violations. It is used for e2e tests. """ from __future__ import print_function # noqa: WPS422 import os.path # noqa: WPS301 import sys as sys # noqa: WPS113 from some import _protected # noqa: WPS436 from .version import get_version # noqa: WPS300 ful...
hex_number
219
0
wemake-services/wemake-python-styleguide
train
260
b18ec9326162b86d5e7818263db629bd6d9c434f
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
201
8
assert
# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/late...
errors
modified
0ca72009338bc27777f11ee1789c678a2c03694dc2e99b690b223e51dc0d5019
assert||# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/...
errors
200
8
wemake-services/wemake-python-styleguide
train
260
b18ec9326162b86d5e7818263db629bd6d9c434f
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
204
8
assert
# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/late...
errors
modified
5f3b01f7457356b7f5c39fdf3fcbed6ed88c8cca0027794d43670c9b5928bcbf
assert||# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/...
errors
203
8
wemake-services/wemake-python-styleguide
train
260
b18ec9326162b86d5e7818263db629bd6d9c434f
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
205
8
assert
# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/late...
errors.get(found_error)
modified
f6fa9224e3cafbe2f012e3096accc2e71d1d671a5e445395d3b4224747ef379e
assert||# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/...
errors.get(found_error)
204
8
wemake-services/wemake-python-styleguide
train
260
b18ec9326162b86d5e7818263db629bd6d9c434f
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
233
4
assert
test_noqa_fixture_disabled
# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/late...
len(all_violations)
modified
e7d24bf532feadd63f6772bbe0b70abdb0c54c7ce2d738aee1e345fa99627066
assert|test_noqa_fixture_disabled|# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wem...
len(all_violations)
232
4
wemake-services/wemake-python-styleguide
train
260
b18ec9326162b86d5e7818263db629bd6d9c434f
train
tests/test_visitors/test_ast/test_naming/test_naming_rules/test_wrong_unused_name.py
val
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_naming/test_naming_rules/test_wrong_unused_name.py
30
4
assert_*
test_wrong_unused_variable_name
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.naming import ( WrongUnusedVariableNameViolation, ) from wemake_python_styleguide.visitors.ast.naming import WrongNameVisitor @pytest.mark.parametrize('wrong_name', [ '__', '___', ]) def test_wrong_unused_variable_name( a...
[WrongUnusedVariableNameViolation])
added
ad2c5f18089a4145d734ca381e9101468a8f463c9619faebf749ddf85f6fd3ba
assert_*|test_wrong_unused_variable_name|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.naming import ( WrongUnusedVariableNameViolation, ) from wemake_python_styleguide.visitors.ast.naming import WrongNameVisitor @pytest.mark.parametrize('wrong_name', [ '__', '___', ]) def test_wrong_un...
null
null
null
wemake-services/wemake-python-styleguide
train
260
b18ec9326162b86d5e7818263db629bd6d9c434f
train
tests/test_visitors/test_ast/test_naming/test_naming_rules/test_wrong_unused_name.py
val
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_naming/test_naming_rules/test_wrong_unused_name.py
31
4
assert_*
test_wrong_unused_variable_name
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.naming import ( WrongUnusedVariableNameViolation, ) from wemake_python_styleguide.visitors.ast.naming import WrongNameVisitor @pytest.mark.parametrize('wrong_name', [ '__', '___', ]) def test_wrong_unused_variable_name( a...
wrong_name)
added
080844f87b6db2de2abcaa81ffa0620cea2815e8477e9c57f48c7b95b0ed2e0e
assert_*|test_wrong_unused_variable_name|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.naming import ( WrongUnusedVariableNameViolation, ) from wemake_python_styleguide.visitors.ast.naming import WrongNameVisitor @pytest.mark.parametrize('wrong_name', [ '__', '___', ]) def test_wrong_un...
null
null
null
wemake-services/wemake-python-styleguide
train
261
b21c16301ade9dbf80cb29da8a3be4e61e8beccf
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
202
8
assert
# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/late...
errors
modified
fdbc693c4d114e0af1b3fb4727c76366e0b3ccf3c9419fe26663630b74dcb832
assert||# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/...
errors
201
8
wemake-services/wemake-python-styleguide
train
261
b21c16301ade9dbf80cb29da8a3be4e61e8beccf
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
205
8
assert
# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/late...
errors
modified
c419b5d1d77040f1b88421afce6a8905ff5ad29237473c482f4d2dc629db9852
assert||# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/...
errors
204
8
wemake-services/wemake-python-styleguide
train
261
b21c16301ade9dbf80cb29da8a3be4e61e8beccf
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
206
8
assert
# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/late...
errors.get(found_error)
modified
50c9082a16ef47bd767027e45b87bd4a43ef9a4eb298a47eb9be7d354b2294ca
assert||# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/...
errors.get(found_error)
205
8
wemake-services/wemake-python-styleguide
train
261
b21c16301ade9dbf80cb29da8a3be4e61e8beccf
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
234
4
assert
test_noqa_fixture_disabled
# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/late...
len(all_violations)
modified
e79869fceec63886efb3c8b8dbd2e6fdebdf76ebabdbb27012bcd5cb5d117254
assert|test_noqa_fixture_disabled|# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wem...
len(all_violations)
233
4
wemake-services/wemake-python-styleguide
train
261
b21c16301ade9dbf80cb29da8a3be4e61e8beccf
train
tests/test_visitors/test_ast/test_operators/test_sign_negation.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_operators/test_sign_negation.py
60
4
assert_*
test_minus_minus_operation
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.consistency import ( OpeationSignNegationViolation, ) from wemake_python_styleguide.visitors.ast.operators import ( WrongMathOperatorVisitor, ) usage_template = 'constant {0}' @pytest.mark.parametrize('expression', [ '- -1',...
[OpeationSignNegationViolation])
added
82130e83a72babd8da41aa6222b15e9b5969981a8b66101e45f67cbfcc87614e
assert_*|test_minus_minus_operation|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.consistency import ( OpeationSignNegationViolation, ) from wemake_python_styleguide.visitors.ast.operators import ( WrongMathOperatorVisitor, ) usage_template = 'constant {0}' @pytest.mark.parametrize('exp...
null
null
null
wemake-services/wemake-python-styleguide
train
261
b21c16301ade9dbf80cb29da8a3be4e61e8beccf
train
tests/test_visitors/test_ast/test_operators/test_useless_math.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_operators/test_useless_math.py
58
4
assert_*
test_zero_div
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.consistency import ( MeaninglessNumberOperationViolation, ZeroDivisionViolation, ) from wemake_python_styleguide.visitors.ast.operators import ( UselessOperatorsVisitor, ) usage_template = 'constant {0}' @pytest.mark.paramet...
[ZeroDivisionViolation])
modified
00a0ddb7eeac154986ec465c3c92c6999275e2e88f8bf3a1a560fe9f1d44b770
assert_*|test_zero_div|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.consistency import ( MeaninglessNumberOperationViolation, ZeroDivisionViolation, ) from wemake_python_styleguide.visitors.ast.operators import ( UselessOperatorsVisitor, ) usage_template = 'constant {0}' @pytest.mark.p...
[ZeroDivisionViolation])
58
4
wemake-services/wemake-python-styleguide
train
261
b21c16301ade9dbf80cb29da8a3be4e61e8beccf
train
tests/test_visitors/test_ast/test_operators/test_useless_math.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_operators/test_useless_math.py
95
4
assert_*
test_meaningless_math
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.consistency import ( MeaninglessNumberOperationViolation, ZeroDivisionViolation, ) from wemake_python_styleguide.visitors.ast.operators import ( UselessOperatorsVisitor, ) usage_template = 'constant {0}' @pytest.mark.paramet...
[MeaninglessNumberOperationViolation])
modified
441ea0e1c8e1ea9242645d1b16a34bc4e3a7cca254e4b7fa6eb0b9460c14e5b2
assert_*|test_meaningless_math|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.consistency import ( MeaninglessNumberOperationViolation, ZeroDivisionViolation, ) from wemake_python_styleguide.visitors.ast.operators import ( UselessOperatorsVisitor, ) usage_template = 'constant {0}' @pytes...
[MeaninglessNumberOperationViolation])
95
4
wemake-services/wemake-python-styleguide
train
261
b21c16301ade9dbf80cb29da8a3be4e61e8beccf
train
tests/test_visitors/test_ast/test_operators/test_useless_operators_before_numbers.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_operators/test_useless_operators_before_numbers.py
68
4
assert_*
test_plus_sign_before_numbers
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.consistency import ( UselessOperatorsViolation, ) from wemake_python_styleguide.visitors.ast.operators import ( UselessOperatorsVisitor, ) # Usages: assignment = 'constant = {0}' assignment_addition = 'constant = x + {0}' assignme...
[UselessOperatorsViolation])
modified
4aae865fe2ffc72aed4d8444a331f4f48cf7b158ae49ab8440d974d0ebee403a
assert_*|test_plus_sign_before_numbers|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.consistency import ( UselessOperatorsViolation, ) from wemake_python_styleguide.visitors.ast.operators import ( UselessOperatorsVisitor, ) # Usages: assignment = 'constant = {0}' assignment_addition = '...
[UselessOperatorsViolation])
68
4
wemake-services/wemake-python-styleguide
train
262
92869bdd857209f486d2184bf8671ae660abf5fa
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
203
8
assert
# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/late...
errors
modified
e5346fe4de915d499158be4026306b9add972eb0a9decee2fe6db1e0f1f915e6
assert||# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/...
errors
202
8
wemake-services/wemake-python-styleguide
train
262
92869bdd857209f486d2184bf8671ae660abf5fa
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
206
8
assert
# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/late...
errors
modified
99bfbef59748175a0de36136fc2b76bcc5ac9c61e5b8e1b732dcd492645659c5
assert||# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/...
errors
205
8
wemake-services/wemake-python-styleguide
train
262
92869bdd857209f486d2184bf8671ae660abf5fa
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
207
8
assert
# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/late...
errors.get(found_error)
modified
48443c0b4345fc8a33e69b0d2f27e5aa6dfbb3fdde489b79992677038d8d704e
assert||# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/...
errors.get(found_error)
206
8
wemake-services/wemake-python-styleguide
train
262
92869bdd857209f486d2184bf8671ae660abf5fa
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
235
4
assert
test_noqa_fixture_disabled
# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/late...
len(all_violations)
modified
ec7dab8dadcb5a5a28e245ff34f30aba7a04decfc1f9bfe06c06d359f81cc1e9
assert|test_noqa_fixture_disabled|# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wem...
len(all_violations)
234
4
wemake-services/wemake-python-styleguide
train
262
92869bdd857209f486d2184bf8671ae660abf5fa
train
tests/test_visitors/test_ast/test_operators/test_list_multiply.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_operators/test_list_multiply.py
33
4
assert_*
test_list_mult_operation
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( ListMultiplyViolation, ) from wemake_python_styleguide.visitors.ast.operators import ( WrongMathOperatorVisitor, ) usage_template = 'constant = {0}' @pytest.mark.parametrize('expression', [ '[] * 1', ...
[ListMultiplyViolation])
added
46aa85a74f265c2a72e106b839d528f9a58b97d5ad69256348168fa1a598ece8
assert_*|test_list_mult_operation|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( ListMultiplyViolation, ) from wemake_python_styleguide.visitors.ast.operators import ( WrongMathOperatorVisitor, ) usage_template = 'constant = {0}' @pytest.mark.parametrize('expressi...
null
null
null
wemake-services/wemake-python-styleguide
train
263
7a544536370279638ccb4db1437bda1bf04a8ba7
train
tests/fixtures/noqa.py
train
wemake-services/wemake-python-styleguide:tests/fixtures/noqa.py
210
0
assert
# -*- coding: utf-8 -*- """ This file contains all possible violations. It is used for e2e tests. """ from __future__ import print_function # noqa: WPS422 import os.path # noqa: WPS301 import sys as sys # noqa: WPS113 from some import _protected # noqa: WPS436 from .version import get_version # noqa: WPS300 ...
octal_number
modified
978f41c1cc7f798edee4761bc1ec25ce956846b160c12f1775d5b74503336997
assert||# -*- coding: utf-8 -*- """ This file contains all possible violations. It is used for e2e tests. """ from __future__ import print_function # noqa: WPS422 import os.path # noqa: WPS301 import sys as sys # noqa: WPS113 from some import _protected # noqa: WPS436 from .version import get_version # noqa: WPS300 ful...
octal_number
210
0
wemake-services/wemake-python-styleguide
train
263
7a544536370279638ccb4db1437bda1bf04a8ba7
train
tests/fixtures/noqa.py
train
wemake-services/wemake-python-styleguide:tests/fixtures/noqa.py
221
0
assert
# -*- coding: utf-8 -*- """ This file contains all possible violations. It is used for e2e tests. """ from __future__ import print_function # noqa: WPS422 import os.path # noqa: WPS301 import sys as sys # noqa: WPS113 from some import _protected # noqa: WPS436 from .version import get_version # noqa: WPS300 ...
hex_number
modified
79a1ec88c039d415d7dfd75f96aa981021f55f403aa252ee85c2f9e441f61736
assert||# -*- coding: utf-8 -*- """ This file contains all possible violations. It is used for e2e tests. """ from __future__ import print_function # noqa: WPS422 import os.path # noqa: WPS301 import sys as sys # noqa: WPS113 from some import _protected # noqa: WPS436 from .version import get_version # noqa: WPS300 ful...
hex_number
221
0
wemake-services/wemake-python-styleguide
train
263
7a544536370279638ccb4db1437bda1bf04a8ba7
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
207
8
assert
# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/late...
errors
modified
4426df9e4f97cbe57fe89b776d8d0b975bce7c585a6d88c9ccc949d62a3d141c
assert||# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/...
errors
206
8
wemake-services/wemake-python-styleguide
train
263
7a544536370279638ccb4db1437bda1bf04a8ba7
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
208
8
assert
# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/late...
errors.get(found_error)
modified
8cbd2218abf7125d4ea47991df5439c9ddf8b832ac79ea0a8b1eec6593766802
assert||# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/...
errors.get(found_error)
207
8
wemake-services/wemake-python-styleguide
train
263
7a544536370279638ccb4db1437bda1bf04a8ba7
train
tests/test_checker/test_presets.py
train
wemake-services/wemake-python-styleguide:tests/test_checker/test_presets.py
73
8
assert
test_all_visitors_contained_in_checker
# -*- coding: utf-8 -*- import importlib import inspect from importlib.machinery import SourceFileLoader from operator import itemgetter from pathlib import Path import pytest from wemake_python_styleguide.checker import Checker from wemake_python_styleguide.visitors.base import ( BaseFilenameVisitor, BaseNo...
checker_visitors
modified
e3f91269d4c50f32ff4716988c279b82786f86746dc1afd81b1dc7a9d2464668
assert|test_all_visitors_contained_in_checker|# -*- coding: utf-8 -*- import importlib import inspect from importlib.machinery import SourceFileLoader from operator import itemgetter from pathlib import Path import pytest from wemake_python_styleguide.checker import Checker from wemake_python_styleguide.visitors.base i...
checker_visitors
73
8
wemake-services/wemake-python-styleguide
train
263
7a544536370279638ccb4db1437bda1bf04a8ba7
train
tests/test_checker/test_presets.py
train
wemake-services/wemake-python-styleguide:tests/test_checker/test_presets.py
75
4
assert
test_all_visitors_contained_in_checker
# -*- coding: utf-8 -*- import importlib import inspect from importlib.machinery import SourceFileLoader from operator import itemgetter from pathlib import Path import pytest from wemake_python_styleguide.checker import Checker from wemake_python_styleguide.visitors.base import ( BaseFilenameVisitor, BaseNo...
len(checker_visitors)
modified
a441db26164c02f738887fc84220d41f91deb05fd228cc8d2f5a755e7c298772
assert|test_all_visitors_contained_in_checker|# -*- coding: utf-8 -*- import importlib import inspect from importlib.machinery import SourceFileLoader from operator import itemgetter from pathlib import Path import pytest from wemake_python_styleguide.checker import Checker from wemake_python_styleguide.visitors.base i...
len(checker_visitors)
75
4
wemake-services/wemake-python-styleguide
train
263
7a544536370279638ccb4db1437bda1bf04a8ba7
train
tests/test_visitors/test_ast/test_blocks/test_outer_scope_shadow.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_blocks/test_outer_scope_shadow.py
301
4
assert_*
test_outer_variable_shadow
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( OuterScopeShadowingViolation, ) from wemake_python_styleguide.visitors.ast.blocks import BlockVariableVisitor # Correct: correct_for_loop1 = """ import ast def wrapper(): for i, j in (): print(i, ...
[OuterScopeShadowingViolation])
added
731e2b2bbe0e191437c39d2c1a622b0217642f81cc79ef61d1d6f0508bad5615
assert_*|test_outer_variable_shadow|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( OuterScopeShadowingViolation, ) from wemake_python_styleguide.visitors.ast.blocks import BlockVariableVisitor # Correct: correct_for_loop1 = """ import ast def wrapper(): for i, j i...
null
null
null
wemake-services/wemake-python-styleguide
train
263
7a544536370279638ccb4db1437bda1bf04a8ba7
train
tests/test_visitors/test_ast/test_blocks/test_outer_scope_shadow.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_blocks/test_outer_scope_shadow.py
324
4
assert_*
test_outer_variable_double_shadow
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( OuterScopeShadowingViolation, ) from wemake_python_styleguide.visitors.ast.blocks import BlockVariableVisitor # Correct: correct_for_loop1 = """ import ast def wrapper(): for i, j in (): print(i, ...
[ OuterScopeShadowingViolation, OuterScopeShadowingViolation, ])
added
0b5018e58c12a2535ea08b1fec70b2ade12eecba325ba50290eb632924a5ae85
assert_*|test_outer_variable_double_shadow|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( OuterScopeShadowingViolation, ) from wemake_python_styleguide.visitors.ast.blocks import BlockVariableVisitor # Correct: correct_for_loop1 = """ import ast def wrapper(): for...
null
null
null
wemake-services/wemake-python-styleguide
train
264
ef5c10a751aed151556a4008ecc3f6332587b8bf
train
tests/fixtures/noqa.py
train
wemake-services/wemake-python-styleguide:tests/fixtures/noqa.py
144
4
assert
# -*- coding: utf-8 -*- """ This file contains all possible violations. It is used for e2e tests. """ from __future__ import print_function # noqa: WPS422 import os.path # noqa: WPS301 import sys as sys # noqa: WPS113 from some import _protected # noqa: WPS436 from .version import get_version # noqa: WPS300 ...
test_function(3)
added
5e6ee9914aa8f59d52376480e397923db251cff9b0980b04f752ca18a213cac3
assert||# -*- coding: utf-8 -*- """ This file contains all possible violations. It is used for e2e tests. """ from __future__ import print_function # noqa: WPS422 import os.path # noqa: WPS301 import sys as sys # noqa: WPS113 from some import _protected # noqa: WPS436 from .version import get_version # noqa: WPS300 ful...
null
null
null
wemake-services/wemake-python-styleguide
train
264
ef5c10a751aed151556a4008ecc3f6332587b8bf
train
tests/fixtures/noqa.py
train
wemake-services/wemake-python-styleguide:tests/fixtures/noqa.py
146
4
assert
# -*- coding: utf-8 -*- """ This file contains all possible violations. It is used for e2e tests. """ from __future__ import print_function # noqa: WPS422 import os.path # noqa: WPS301 import sys as sys # noqa: WPS113 from some import _protected # noqa: WPS436 from .version import get_version # noqa: WPS300 ...
test_function(5)
added
ad44530adab9bbed184d73a69cabcda933c459362ad8ea624b0172aab973a01e
assert||# -*- coding: utf-8 -*- """ This file contains all possible violations. It is used for e2e tests. """ from __future__ import print_function # noqa: WPS422 import os.path # noqa: WPS301 import sys as sys # noqa: WPS113 from some import _protected # noqa: WPS436 from .version import get_version # noqa: WPS300 ful...
null
null
null
wemake-services/wemake-python-styleguide
train
264
ef5c10a751aed151556a4008ecc3f6332587b8bf
train
tests/fixtures/noqa.py
train
wemake-services/wemake-python-styleguide:tests/fixtures/noqa.py
147
4
assert
# -*- coding: utf-8 -*- """ This file contains all possible violations. It is used for e2e tests. """ from __future__ import print_function # noqa: WPS422 import os.path # noqa: WPS301 import sys as sys # noqa: WPS113 from some import _protected # noqa: WPS436 from .version import get_version # noqa: WPS300 ...
test_function(6)
added
1cf1a4f917c3cadf0b756506a46ea98fd61e24e7d361d25ee203e311a315641e
assert||# -*- coding: utf-8 -*- """ This file contains all possible violations. It is used for e2e tests. """ from __future__ import print_function # noqa: WPS422 import os.path # noqa: WPS301 import sys as sys # noqa: WPS113 from some import _protected # noqa: WPS436 from .version import get_version # noqa: WPS300 ful...
null
null
null
wemake-services/wemake-python-styleguide
train
264
ef5c10a751aed151556a4008ecc3f6332587b8bf
train
tests/fixtures/noqa.py
train
wemake-services/wemake-python-styleguide:tests/fixtures/noqa.py
230
0
assert
# -*- coding: utf-8 -*- """ This file contains all possible violations. It is used for e2e tests. """ from __future__ import print_function # noqa: WPS422 import os.path # noqa: WPS301 import sys as sys # noqa: WPS113 from some import _protected # noqa: WPS436 from .version import get_version # noqa: WPS300 ...
hex_number
added
23b1a336c61334c7bdbb5de6c96c690312c7a85715617832fe22746d803d6827
assert||# -*- coding: utf-8 -*- """ This file contains all possible violations. It is used for e2e tests. """ from __future__ import print_function # noqa: WPS422 import os.path # noqa: WPS301 import sys as sys # noqa: WPS113 from some import _protected # noqa: WPS436 from .version import get_version # noqa: WPS300 ful...
null
null
null
wemake-services/wemake-python-styleguide
train
264
ef5c10a751aed151556a4008ecc3f6332587b8bf
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
205
8
assert
# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/late...
errors
modified
81ba51deba39da6192a502ef781d80ca00db4f6ea8b3e6242acfb70de663a7f1
assert||# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/...
errors
204
8
wemake-services/wemake-python-styleguide
train
264
ef5c10a751aed151556a4008ecc3f6332587b8bf
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
208
8
assert
# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/late...
errors
modified
e3a91adea65a16676cff7394c54ee94f79272cc620d670aeb105c6d909374428
assert||# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/...
errors
207
8
wemake-services/wemake-python-styleguide
train
264
ef5c10a751aed151556a4008ecc3f6332587b8bf
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
209
8
assert
# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/late...
errors.get(found_error)
modified
13ba485934cab1b61cc3e35cd52b0a4e06130a695d88c1516586cd651f7c5234
assert||# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/...
errors.get(found_error)
208
8
wemake-services/wemake-python-styleguide
train
264
ef5c10a751aed151556a4008ecc3f6332587b8bf
train
tests/test_visitors/test_ast/test_complexity/test_function/test_asserts_count.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_complexity/test_function/test_asserts_count.py
67
4
assert_*
test_asserts_wrong_count
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.complexity import ( TooManyAssertsViolation, ) from wemake_python_styleguide.visitors.ast.complexity.function import ( FunctionComplexityVisitor, ) function_without_asserts = 'def function(): ...' function_with_asserts = """ def ...
[TooManyAssertsViolation])
added
00faf3365256a9485d34135a9945539c3b564b046dcf94af969c0547d64f6402
assert_*|test_asserts_wrong_count|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.complexity import ( TooManyAssertsViolation, ) from wemake_python_styleguide.visitors.ast.complexity.function import ( FunctionComplexityVisitor, ) function_without_asserts = 'def function(): ...' function_w...
null
null
null
wemake-services/wemake-python-styleguide
train
265
d987bb48d6477fc7052a5f3d78b33ebbc01bb47a
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
209
8
assert
# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/late...
errors
modified
c1b46ccb169dd4b6645da4971f275e22e01d80ad53fb71ceee736e9565068b77
assert||# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/...
errors
208
8
wemake-services/wemake-python-styleguide
train
265
d987bb48d6477fc7052a5f3d78b33ebbc01bb47a
train
tests/test_options.py
train
wemake-services/wemake-python-styleguide:tests/test_options.py
17
8
assert
test_option_help
# -*- coding: utf-8 -*- from wemake_python_styleguide.options.config import Configuration def test_option_docs(): """Ensures that all options are documented.""" for option in Configuration.options: option_name = '``{0}``'.format(option.long_option_name[2:]) assert option_name in Configuration...
option.help
modified
6690f4b936c1f8381f9df426e11917919047d1ee92a07c281bd018e254494e7c
assert|test_option_help|# -*- coding: utf-8 -*- from wemake_python_styleguide.options.config import Configuration def test_option_docs(): """Ensures that all options are documented.""" for option in Configuration.options: option_name = '``{0}``'.format(option.long_option_name[2:]) assert option_name in Configuration.__...
option.help
17
8
wemake-services/wemake-python-styleguide
train
265
d987bb48d6477fc7052a5f3d78b33ebbc01bb47a
train
tests/test_visitors/test_ast/test_conditions/test_implicit_in.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_conditions/test_implicit_in.py
104
4
assert_*
test_wrong_patterns_in_values
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.refactoring import ( ImplicitInConditionViolation, ) from wemake_python_styleguide.visitors.ast.conditions import ( ImplicitBoolPatternsVisitor, ) # Correct: eq_and = '{0} == some1 and {1} == some2' noteq_or = '{0} != some1 or {1...
[ImplicitInConditionViolation])
modified
d88318cd81554f1d2a4f1a2fbcf3544ac2af446d7387fac2660beebf11b87ce7
assert_*|test_wrong_patterns_in_values|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.refactoring import ( ImplicitInConditionViolation, ) from wemake_python_styleguide.visitors.ast.conditions import ( ImplicitBoolPatternsVisitor, ) # Correct: eq_and = '{0} == some1 and {1} == some2' not...
[ImplicitInConditionViolation])
104
4
wemake-services/wemake-python-styleguide
train
265
d987bb48d6477fc7052a5f3d78b33ebbc01bb47a
train
tests/test_visitors/test_ast/test_operators/test_list_multiply.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_operators/test_list_multiply.py
34
4
assert_*
test_list_mult_operation
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( ListMultiplyViolation, ) from wemake_python_styleguide.visitors.ast.operators import ( WrongMathOperatorVisitor, ) usage_template = 'constant = {0}' @pytest.mark.parametrize('expression', [ '[] * 1', ...
[ListMultiplyViolation])
modified
2ba6133fbb290754245a0020d0be948c3fb2d605d5100b783c2065b8f9118183
assert_*|test_list_mult_operation|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( ListMultiplyViolation, ) from wemake_python_styleguide.visitors.ast.operators import ( WrongMathOperatorVisitor, ) usage_template = 'constant = {0}' @pytest.mark.parametrize('expressi...
[ListMultiplyViolation])
33
4
wemake-services/wemake-python-styleguide
train
265
d987bb48d6477fc7052a5f3d78b33ebbc01bb47a
train
tests/test_visitors/test_ast/test_operators/test_sign_negation.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_operators/test_sign_negation.py
60
4
assert_*
test_minus_minus_operation
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.consistency import ( OperationSignNegationViolation, ) from wemake_python_styleguide.visitors.ast.operators import ( WrongMathOperatorVisitor, ) usage_template = 'constant {0}' @pytest.mark.parametrize('expression', [ '- -1'...
[OperationSignNegationViolation])
modified
6fd992a29a8af2b907b0b9d29c6e9799db7c24a6627e89c303e215e3da58a1e4
assert_*|test_minus_minus_operation|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.consistency import ( OperationSignNegationViolation, ) from wemake_python_styleguide.visitors.ast.operators import ( WrongMathOperatorVisitor, ) usage_template = 'constant {0}' @pytest.mark.parametrize('ex...
[OpeationSignNegationViolation])
60
4
wemake-services/wemake-python-styleguide
train
265
d987bb48d6477fc7052a5f3d78b33ebbc01bb47a
train
tests/test_visitors/test_ast/test_operators/test_string_concat.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_operators/test_string_concat.py
79
4
assert_*
test_string_concat
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.consistency import ( ExplicitStringConcatViolation, ) from wemake_python_styleguide.visitors.ast.operators import ( WrongMathOperatorVisitor, ) usage_template = 'constant {0}' docstring = """ def function(): '''Docstring''' ...
[ExplicitStringConcatViolation])
added
1922f324e870d50ac1a098c1103b928d48c7a4b6ceab23df049ec0d6ce8543f9
assert_*|test_string_concat|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.consistency import ( ExplicitStringConcatViolation, ) from wemake_python_styleguide.visitors.ast.operators import ( WrongMathOperatorVisitor, ) usage_template = 'constant {0}' docstring = """ def function(): '''Do...
null
null
null
wemake-services/wemake-python-styleguide
train
265
d987bb48d6477fc7052a5f3d78b33ebbc01bb47a
train
tests/test_visitors/test_tokenize/test_comments/test_no_cover_comment.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_tokenize/test_comments/test_no_cover_comment.py
31
4
assert_*
test_no_cover_overuse
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( OveruseOfNoCoverCommentViolation, ) from wemake_python_styleguide.visitors.tokenize.comments import ( WrongCommentVisitor, ) @pytest.mark.parametrize('code', [ 'wallet = 10 # pragma: no cover', 'w...
[OveruseOfNoCoverCommentViolation])
modified
cf4b1045e83c1f2a3968406038085e5df9224b95a8b2a1a34afbd75c90fa668b
assert_*|test_no_cover_overuse|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( OveruseOfNoCoverCommentViolation, ) from wemake_python_styleguide.visitors.tokenize.comments import ( WrongCommentVisitor, ) @pytest.mark.parametrize('code', [ 'wallet = 10 # pragma: no ...
[OveruseOfNoCoverCommentViolation])
31
4
wemake-services/wemake-python-styleguide
train
265
d987bb48d6477fc7052a5f3d78b33ebbc01bb47a
train
tests/test_visitors/test_tokenize/test_comments/test_noqa_count.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_tokenize/test_comments/test_noqa_count.py
33
4
assert_*
test_noqa_overuse
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( OveruseOfNoqaCommentViolation, ) from wemake_python_styleguide.visitors.tokenize.comments import ( WrongCommentVisitor, ) @pytest.mark.parametrize('code', [ 'wallet = 10 # noqa: WPS002,WPS114', 'w...
[OveruseOfNoqaCommentViolation])
modified
f696e703812db130d4f88e4a4547ac25657ecb86954f691c6e767bcca2f4cf74
assert_*|test_noqa_overuse|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( OveruseOfNoqaCommentViolation, ) from wemake_python_styleguide.visitors.tokenize.comments import ( WrongCommentVisitor, ) @pytest.mark.parametrize('code', [ 'wallet = 10 # noqa: WPS002,WPS11...
[OveruseOfNoqaCommentViolation])
33
4
wemake-services/wemake-python-styleguide
train
266
1327a1d4e61787f5796a2b31a1a393cce4e591b1
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
206
8
assert
# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/late...
errors
modified
2882381eb1147007d0e67dfedfd80de774d99b2b1357fc673477921886dd1a28
assert||# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/...
errors
206
8
wemake-services/wemake-python-styleguide
train
266
1327a1d4e61787f5796a2b31a1a393cce4e591b1
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
209
8
assert
# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/late...
errors
modified
864c5d02e44ee05d4acef1a4d7a6bfd65daf84d97d85668f3bd2a3037c4c999f
assert||# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/...
errors
209
8
wemake-services/wemake-python-styleguide
train
266
1327a1d4e61787f5796a2b31a1a393cce4e591b1
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
210
8
assert
# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/late...
errors.get(found_error)
modified
48a00b0e4fdffcd094a4f09dffcb79edae2c8689ff7526d3dbb6db5d4f3010d5
assert||# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/...
errors.get(found_error)
210
8
wemake-services/wemake-python-styleguide
train
266
1327a1d4e61787f5796a2b31a1a393cce4e591b1
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
238
4
assert
test_noqa_fixture_disabled
# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/late...
len(all_violations)
modified
32b65021c7d6eef686cf41a129a048d5dcbc6cc12b264ff663112294377f471f
assert|test_noqa_fixture_disabled|# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wem...
len(all_violations)
238
4
wemake-services/wemake-python-styleguide
train
266
1327a1d4e61787f5796a2b31a1a393cce4e591b1
train
tests/test_visitors/test_ast/test_classes/test_methods/test_async_magic_methods.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_classes/test_methods/test_async_magic_methods.py
39
4
assert_*
test_wrong_async_magic_used
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.oop import AsyncMagicMethodViolation from wemake_python_styleguide.visitors.ast.classes import WrongMethodVisitor sync_method = """ class Example(object): def {0}(self): ... """ async_method = """ class Example(object): async def...
[AsyncMagicMethodViolation])
added
394c88dbb9ccb5653049cce7c544550a4ad177b0443b7201e471ad945d8a45b8
assert_*|test_wrong_async_magic_used|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.oop import AsyncMagicMethodViolation from wemake_python_styleguide.visitors.ast.classes import WrongMethodVisitor sync_method = """ class Example(object): def {0}(self): ... """ async_method = """ class E...
null
null
null
wemake-services/wemake-python-styleguide
train
266
1327a1d4e61787f5796a2b31a1a393cce4e591b1
train
tests/test_visitors/test_ast/test_classes/test_methods/test_async_magic_methods.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_classes/test_methods/test_async_magic_methods.py
40
4
assert_*
test_wrong_async_magic_used
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.oop import AsyncMagicMethodViolation from wemake_python_styleguide.visitors.ast.classes import WrongMethodVisitor sync_method = """ class Example(object): def {0}(self): ... """ async_method = """ class Example(object): async def...
method)
modified
edfd439a354354f2ef924db38bf97b1ce7f2a05b19b9d8cdc0022786cfa81032
assert_*|test_wrong_async_magic_used|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.oop import AsyncMagicMethodViolation from wemake_python_styleguide.visitors.ast.classes import WrongMethodVisitor sync_method = """ class Example(object): def {0}(self): ... """ async_method = """ class E...
method)
42
4
wemake-services/wemake-python-styleguide
train
266
1327a1d4e61787f5796a2b31a1a393cce4e591b1
train
tests/test_visitors/test_ast/test_classes/test_methods/test_yield_magic_method.py
val
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_classes/test_methods/test_yield_magic_method.py
52
4
assert_*
test_magic_generator
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.oop import YieldMagicMethodViolation from wemake_python_styleguide.visitors.ast.classes import WrongMethodVisitor method_template = """ class Test(object): def {0}(self, *args, **kwargs): {1} """ classmethod_template = """ cl...
[YieldMagicMethodViolation])
added
f289e7e262cd9ed1b9f6c715114cab0000277e72803f2171c689b7f2500d2039
assert_*|test_magic_generator|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.oop import YieldMagicMethodViolation from wemake_python_styleguide.visitors.ast.classes import WrongMethodVisitor method_template = """ class Test(object): def {0}(self, *args, **kwargs): {1} """ classmethod_tem...
null
null
null
wemake-services/wemake-python-styleguide
train
267
ed02d1beb674f5ce365f0954953035712fcb4464
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
207
8
assert
# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/late...
errors
modified
a79dbf50617f8c171f9522e02e428fcaad2a4ca06f2646d99fafaf37ffba8b50
assert||# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/...
errors
206
8
wemake-services/wemake-python-styleguide
train
267
ed02d1beb674f5ce365f0954953035712fcb4464
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
210
8
assert
# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/late...
errors
modified
8bb203eac1535dd74b50a8c625e3f0fd1311879125b7c49c009b86a82608a86b
assert||# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/...
errors
209
8
wemake-services/wemake-python-styleguide
train
267
ed02d1beb674f5ce365f0954953035712fcb4464
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
211
8
assert
# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/late...
errors.get(found_error)
modified
ff180f512791d6ff5b77509df8be6ce2aa4d2c5132ece3c3c5b5f02bd4232491
assert||# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/...
errors.get(found_error)
210
8
wemake-services/wemake-python-styleguide
train
267
ed02d1beb674f5ce365f0954953035712fcb4464
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
239
4
assert
test_noqa_fixture_disabled
# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/late...
len(all_violations)
modified
d5434328a0f955de8b2bf30821c49a705d3cac5b0003ecd4842a87526db7c6c1
assert|test_noqa_fixture_disabled|# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wem...
len(all_violations)
238
4
wemake-services/wemake-python-styleguide
train
267
ed02d1beb674f5ce365f0954953035712fcb4464
train
tests/test_visitors/test_ast/test_keywords/test_keyword_condition.py
test
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_keywords/test_keyword_condition.py
50
4
assert_*
test_false_condition_keywords
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( WrongKeywordConditionViolation, ) from wemake_python_styleguide.visitors.ast.keywords import ( ConstantKeywordVisitor, ) while_template = """ while {0}: ... """ assert_template = 'assert {0}' assert_wi...
[WrongKeywordConditionViolation])
added
e62d272c8b0e236faa28cef582aa070c7d054df82d9e0dbd30328d842cacd583
assert_*|test_false_condition_keywords|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( WrongKeywordConditionViolation, ) from wemake_python_styleguide.visitors.ast.keywords import ( ConstantKeywordVisitor, ) while_template = """ while {0}: ... """ assert_template =...
null
null
null
wemake-services/wemake-python-styleguide
train
267
ed02d1beb674f5ce365f0954953035712fcb4464
train
tests/test_visitors/test_ast/test_keywords/test_keyword_condition.py
test
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_keywords/test_keyword_condition.py
51
4
assert_*
test_false_condition_keywords
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( WrongKeywordConditionViolation, ) from wemake_python_styleguide.visitors.ast.keywords import ( ConstantKeywordVisitor, ) while_template = """ while {0}: ... """ assert_template = 'assert {0}' assert_wi...
condition)
added
9795b66bd0889f6987b2ac8b4fbae2aa61b7737763dae43b2012601d9bcb7252
assert_*|test_false_condition_keywords|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( WrongKeywordConditionViolation, ) from wemake_python_styleguide.visitors.ast.keywords import ( ConstantKeywordVisitor, ) while_template = """ while {0}: ... """ assert_template =...
null
null
null
wemake-services/wemake-python-styleguide
train
268
eec9a14de916cb9051fa847e62d331d53fbcf914
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
208
8
assert
# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/late...
errors
modified
fcc7e258e481836b11ab2282f2a7ced07519a00d3078103de013e05be8c2f1e3
assert||# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/...
errors
207
8
wemake-services/wemake-python-styleguide
train
268
eec9a14de916cb9051fa847e62d331d53fbcf914
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
211
8
assert
# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/late...
errors
modified
84fe1705525cd1c257a821a5de86680c774ed2c8256fff0cecf0b561587cb6a4
assert||# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/...
errors
210
8
wemake-services/wemake-python-styleguide
train
268
eec9a14de916cb9051fa847e62d331d53fbcf914
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
212
8
assert
# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/late...
errors.get(found_error)
modified
c17505d1d8578af3ae32df231973811f7e1ecf553c2b02e0db2616491e10e0e6
assert||# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/...
errors.get(found_error)
211
8
wemake-services/wemake-python-styleguide
train
268
eec9a14de916cb9051fa847e62d331d53fbcf914
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
240
4
assert
test_noqa_fixture_disabled
# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/late...
len(all_violations)
modified
799da41ea69e39c7790978a25fe1fac0b9a8b3a7625e952f9bc246a2369d6a23
assert|test_noqa_fixture_disabled|# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wem...
len(all_violations)
239
4
wemake-services/wemake-python-styleguide
train
268
eec9a14de916cb9051fa847e62d331d53fbcf914
train
tests/test_visitors/test_ast/test_functions/test_open_with.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_functions/test_open_with.py
134
4
assert_*
test_open_without_context_manager
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.refactoring import ( OpenWithoutContextManagerViolation, ) from wemake_python_styleguide.visitors.ast.functions import ( WrongFunctionCallContextVisitior, ) # Correct: context_manager1 = """ def wrapper(): with {0} as file: ...
[OpenWithoutContextManagerViolation])
added
c69fac2caf08125d9bf94f1733b73e33537abd875c6cc46ca6b9509144fdd220
assert_*|test_open_without_context_manager|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.refactoring import ( OpenWithoutContextManagerViolation, ) from wemake_python_styleguide.visitors.ast.functions import ( WrongFunctionCallContextVisitior, ) # Correct: context_manager1 = """ def wra...
null
null
null
wemake-services/wemake-python-styleguide
train
269
b331091e8c55b1b2c070d75b50dce2ae2fa63bd3
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
209
8
assert
# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/late...
errors
modified
b66a4bd8dfe7f8728f4a4ff0e2c17cea0268f0cc203d696a432406267ced1748
assert||# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/...
errors
208
8
wemake-services/wemake-python-styleguide
train
269
b331091e8c55b1b2c070d75b50dce2ae2fa63bd3
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
212
8
assert
# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/late...
errors
modified
68100304d6101c20c985420e6f6ab942a03b9fa2cd5798cb9211cd428c416d9f
assert||# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/...
errors
211
8
wemake-services/wemake-python-styleguide
train
269
b331091e8c55b1b2c070d75b50dce2ae2fa63bd3
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
213
8
assert
# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/late...
errors.get(found_error)
modified
c7538a140f12f71ca15ffe40dadb5a6907941b739515014231090966aecb7e73
assert||# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/...
errors.get(found_error)
212
8
wemake-services/wemake-python-styleguide
train
269
b331091e8c55b1b2c070d75b50dce2ae2fa63bd3
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
241
4
assert
test_noqa_fixture_disabled
# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/late...
len(all_violations)
modified
8dd8a056a3ae5ae8c4d89162333da642f073d1728f4a62e53dd256b9e8ecc018
assert|test_noqa_fixture_disabled|# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wem...
len(all_violations)
240
4
wemake-services/wemake-python-styleguide
train
269
b331091e8c55b1b2c070d75b50dce2ae2fa63bd3
train
tests/test_visitors/test_ast/test_functions/test_call_context/test_open_with.py
test
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_functions/test_call_context/test_open_with.py
135
4
assert_*
test_open_without_context_manager
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.refactoring import ( OpenWithoutContextManagerViolation, ) from wemake_python_styleguide.visitors.ast.functions import ( WrongFunctionCallContextVisitior, ) # Correct: context_manager1 = """ def wrapper(): with {0} as file: ...
[OpenWithoutContextManagerViolation])
modified
9fd9eb21dc2814d72d71b11ecfba3b5a419826b7f1bef066ccf12f3885a66cfe
assert_*|test_open_without_context_manager|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.refactoring import ( OpenWithoutContextManagerViolation, ) from wemake_python_styleguide.visitors.ast.functions import ( WrongFunctionCallContextVisitior, ) # Correct: context_manager1 = """ def wra...
[OpenWithoutContextManagerViolation])
134
4
wemake-services/wemake-python-styleguide
train
269
b331091e8c55b1b2c070d75b50dce2ae2fa63bd3
train
tests/test_visitors/test_ast/test_functions/test_call_context/test_type_compare.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_functions/test_call_context/test_type_compare.py
133
4
assert_*
test_type_with_compare
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.refactoring import ( TypeCompareViolation, ) from wemake_python_styleguide.visitors.ast.functions import ( WrongFunctionCallContextVisitior, ) # Wrong: simple_compare = '{0} == other' is_compare = '{0} is other' nested_compare = ...
[TypeCompareViolation])
added
6343d749828299731a744e1307302ee774e316c7ec53dbf143ddc82e75670e0f
assert_*|test_type_with_compare|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.refactoring import ( TypeCompareViolation, ) from wemake_python_styleguide.visitors.ast.functions import ( WrongFunctionCallContextVisitior, ) # Wrong: simple_compare = '{0} == other' is_compare = '{0} is othe...
null
null
null
wemake-services/wemake-python-styleguide
train
270
4085191e0ae3d55a23a98233dbcaaece451d6e33
train
tests/fixtures/noqa.py
train
wemake-services/wemake-python-styleguide:tests/fixtures/noqa.py
220
0
assert
# -*- coding: utf-8 -*- """ This file contains all possible violations. It is used for e2e tests. """ from __future__ import print_function # noqa: WPS422 import os.path # noqa: WPS301 import sys as sys # noqa: WPS113 from some import _protected # noqa: WPS436 from .version import get_version # noqa: WPS300 ...
octal_number
modified
2912e82fff0d224497c44c8dd4a3152491901a43912b55dca33a2270721cd1c3
assert||# -*- coding: utf-8 -*- """ This file contains all possible violations. It is used for e2e tests. """ from __future__ import print_function # noqa: WPS422 import os.path # noqa: WPS301 import sys as sys # noqa: WPS113 from some import _protected # noqa: WPS436 from .version import get_version # noqa: WPS300 ful...
octal_number
219
0
wemake-services/wemake-python-styleguide
train
270
4085191e0ae3d55a23a98233dbcaaece451d6e33
train
tests/fixtures/noqa.py
train
wemake-services/wemake-python-styleguide:tests/fixtures/noqa.py
231
0
assert
# -*- coding: utf-8 -*- """ This file contains all possible violations. It is used for e2e tests. """ from __future__ import print_function # noqa: WPS422 import os.path # noqa: WPS301 import sys as sys # noqa: WPS113 from some import _protected # noqa: WPS436 from .version import get_version # noqa: WPS300 ...
hex_number
modified
3cfb4173ddb0e7b1b690792d5a2ed462768283cda39762c697bee6db37ae88a4
assert||# -*- coding: utf-8 -*- """ This file contains all possible violations. It is used for e2e tests. """ from __future__ import print_function # noqa: WPS422 import os.path # noqa: WPS301 import sys as sys # noqa: WPS113 from some import _protected # noqa: WPS436 from .version import get_version # noqa: WPS300 ful...
hex_number
230
0
wemake-services/wemake-python-styleguide
train
270
4085191e0ae3d55a23a98233dbcaaece451d6e33
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
210
8
assert
# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/late...
errors
modified
e59ec91376e8544947847e28e95acff89cf979b82573e0bf964062fe5bfe1a5f
assert||# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/...
errors
209
8
wemake-services/wemake-python-styleguide
train
270
4085191e0ae3d55a23a98233dbcaaece451d6e33
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
213
8
assert
# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/late...
errors
modified
6a1fe22f4ace838a534868a861f60b12bca8d9bd0189f1b6cc37861edc4b8d96
assert||# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/...
errors
212
8
wemake-services/wemake-python-styleguide
train
270
4085191e0ae3d55a23a98233dbcaaece451d6e33
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
214
8
assert
# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/late...
errors.get(found_error)
modified
c47a19de55740d68a1491e5029ba0d72b07accb44f21d3a9225a7008429a99b8
assert||# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/...
errors.get(found_error)
213
8
wemake-services/wemake-python-styleguide
train
270
4085191e0ae3d55a23a98233dbcaaece451d6e33
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
242
4
assert
test_noqa_fixture_disabled
# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wemake-python-stylegui.de/en/late...
len(all_violations)
modified
ff1a6fe6cbac46cd50e21f0299b32813295f5d520b1cf41cbe6f1ecc99070031
assert|test_noqa_fixture_disabled|# -*- coding: utf-8 -*- """ Integration tests definition. These are integration tests for several things: 1. that violation is active and enabled 2. that violation is raised for the bad code 3. that line number where violation is raised is correct 4. that `noqa` works Docs: https://wem...
len(all_violations)
241
4
wemake-services/wemake-python-styleguide
train
270
4085191e0ae3d55a23a98233dbcaaece451d6e33
train
tests/test_visitors/test_ast/test_complexity/test_access/test_access.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_complexity/test_access/test_access.py
72
4
assert_*
test_incorrect_access
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.complexity import ( TooDeepAccessViolation, ) from wemake_python_styleguide.visitors.ast.complexity.access import ( AccessVisitor, ) # boundary expressions subscript_access = 'my_matrix[0][0][0][0]' attribute_access = 'self.attr.i...
[TooDeepAccessViolation])
added
b718cb81b5e272e91d0b649368734061e45d45778ca23ba8b12ec890005d47b2
assert_*|test_incorrect_access|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.complexity import ( TooDeepAccessViolation, ) from wemake_python_styleguide.visitors.ast.complexity.access import ( AccessVisitor, ) # boundary expressions subscript_access = 'my_matrix[0][0][0][0]' attribute_a...
null
null
null
wemake-services/wemake-python-styleguide
train
270
4085191e0ae3d55a23a98233dbcaaece451d6e33
train
tests/test_visitors/test_ast/test_complexity/test_access/test_access.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_complexity/test_access/test_access.py
73
4
assert_*
test_incorrect_access
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.complexity import ( TooDeepAccessViolation, ) from wemake_python_styleguide.visitors.ast.complexity.access import ( AccessVisitor, ) # boundary expressions subscript_access = 'my_matrix[0][0][0][0]' attribute_access = 'self.attr.i...
str(access_level))
added
6d0996dcbc821b6da0615c5f810aac2c7e9c3e8ba58a16a3c35c8cf51c1148c1
assert_*|test_incorrect_access|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.complexity import ( TooDeepAccessViolation, ) from wemake_python_styleguide.visitors.ast.complexity.access import ( AccessVisitor, ) # boundary expressions subscript_access = 'my_matrix[0][0][0][0]' attribute_a...
null
null
null
wemake-services/wemake-python-styleguide
train
271
f18294ea9828b78d2fe80d66f33efdacf763d2ce
train
tests/fixtures/noqa.py
train
wemake-services/wemake-python-styleguide:tests/fixtures/noqa.py
153
4
assert
# -*- coding: utf-8 -*- """ This file contains all possible violations. It is used for e2e tests. """ from __future__ import print_function # noqa: WPS422 import os.path # noqa: WPS301 import sys as sys # noqa: WPS113 from some import _protected # noqa: WPS436 from .version import get_version # noqa: WPS300 ...
test_function(1)
added
96a59eeafb043a39641c162e528a90875c7727502935e9a69abbee25c4a96cad
assert||# -*- coding: utf-8 -*- """ This file contains all possible violations. It is used for e2e tests. """ from __future__ import print_function # noqa: WPS422 import os.path # noqa: WPS301 import sys as sys # noqa: WPS113 from some import _protected # noqa: WPS436 from .version import get_version # noqa: WPS300 ful...
null
null
null
wemake-services/wemake-python-styleguide
train
271
f18294ea9828b78d2fe80d66f33efdacf763d2ce
train
tests/fixtures/noqa.py
train
wemake-services/wemake-python-styleguide:tests/fixtures/noqa.py
154
4
assert
# -*- coding: utf-8 -*- """ This file contains all possible violations. It is used for e2e tests. """ from __future__ import print_function # noqa: WPS422 import os.path # noqa: WPS301 import sys as sys # noqa: WPS113 from some import _protected # noqa: WPS436 from .version import get_version # noqa: WPS300 ...
test_function(2)
added
81db0313cdae4fb8b019420d35ac346356eb4f2ec26fa5b0844967af7308e96d
assert||# -*- coding: utf-8 -*- """ This file contains all possible violations. It is used for e2e tests. """ from __future__ import print_function # noqa: WPS422 import os.path # noqa: WPS301 import sys as sys # noqa: WPS113 from some import _protected # noqa: WPS436 from .version import get_version # noqa: WPS300 ful...
null
null
null