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
299
30f22b6f24184f7e0dfd890720b895e992eeab16
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
51
4
assert_*
test_noqa_overuse_is_configurable
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.options import defaults from wemake_python_styleguide.violations.best_practices import ( OveruseOfNoqaCommentViolation, ) from wemake_python_styleguide.visitors.tokenize.comments import ( WrongCommentVisitor, ) @pytest.mark.parametrize('cod...
[OveruseOfNoqaCommentViolation])
added
b301b8a53108d6e532ee16a6fde9515918a6cfce7c622fc734763d99e0715817
assert_*|test_noqa_overuse_is_configurable|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.options import defaults from wemake_python_styleguide.violations.best_practices import ( OveruseOfNoqaCommentViolation, ) from wemake_python_styleguide.visitors.tokenize.comments import ( WrongCommentVisitor, ...
null
null
null
wemake-services/wemake-python-styleguide
train
299
30f22b6f24184f7e0dfd890720b895e992eeab16
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
66
4
assert_*
test_noqa_comments_can_be_forbidden
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.options import defaults from wemake_python_styleguide.violations.best_practices import ( OveruseOfNoqaCommentViolation, ) from wemake_python_styleguide.visitors.tokenize.comments import ( WrongCommentVisitor, ) @pytest.mark.parametrize('cod...
[OveruseOfNoqaCommentViolation])
added
8ef65a22651f18147de4488820a0647f5f7ea52afc28e6e69a6763f8abc1dea7
assert_*|test_noqa_comments_can_be_forbidden|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.options import defaults from wemake_python_styleguide.violations.best_practices import ( OveruseOfNoqaCommentViolation, ) from wemake_python_styleguide.visitors.tokenize.comments import ( WrongCommentVisitor...
null
null
null
wemake-services/wemake-python-styleguide
train
300
1a8e268e9489c58b02be77d95ea59f63f430b48a
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
222
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
941cc07b9044374d4b50e1765e8748a4ce2c148442764761b1584a372fd7fe99
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
221
8
wemake-services/wemake-python-styleguide
train
300
1a8e268e9489c58b02be77d95ea59f63f430b48a
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
225
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
cd765c5ca3a18decff96b4ba5b4b87c6d66903d531cd0d47d09f7bf634d7444f
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
224
8
wemake-services/wemake-python-styleguide
train
300
1a8e268e9489c58b02be77d95ea59f63f430b48a
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
226
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
64bbc9a51031a5184862bbba876ac164ee15b50adc4721b032596ee7d3dc78a0
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)
225
8
wemake-services/wemake-python-styleguide
train
300
1a8e268e9489c58b02be77d95ea59f63f430b48a
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
254
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
25621737a7f63450a3213dc7b0a0fe6cc8174830a163639d2222889f827bcfe8
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)
253
4
wemake-services/wemake-python-styleguide
train
300
1a8e268e9489c58b02be77d95ea59f63f430b48a
train
tests/test_visitors/test_ast/test_builtins/test_numbers/test_approximate_constants.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_builtins/test_numbers/test_approximate_constants.py
31
4
assert_*
test_violation_on_approximate_constants
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( ApproximateConstantViolation, ) from wemake_python_styleguide.visitors.ast.builtins import WrongNumberVisitor @pytest.mark.parametrize(('variable_name', 'variable_value'), [ ('pi', '3.14'), ('tau', '6....
[ApproximateConstantViolation])
added
c8623acb2b038edc6b63a692c3fefe71d6b80d27c38b9a1caf8a3c8b869c2489
assert_*|test_violation_on_approximate_constants|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( ApproximateConstantViolation, ) from wemake_python_styleguide.visitors.ast.builtins import WrongNumberVisitor @pytest.mark.parametrize(('variable_name', 'variable_value...
null
null
null
wemake-services/wemake-python-styleguide
train
300
1a8e268e9489c58b02be77d95ea59f63f430b48a
train
tests/test_visitors/test_ast/test_builtins/test_numbers/test_magic_numbers.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_builtins/test_numbers/test_magic_numbers.py
190
4
assert_*
test_magic_number_warning
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.constants import MAGIC_NUMBERS_WHITELIST from wemake_python_styleguide.violations.best_practices import ( MagicNumberViolation, ) from wemake_python_styleguide.visitors.ast.builtins import WrongNumberVisitor # Correct usages: assignment = 'cons...
[MagicNumberViolation])
modified
c8c229713fdc67f55453767fae81cde49ffb6b64e615e083cf0d96d2e8807596
assert_*|test_magic_number_warning|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.constants import MAGIC_NUMBERS_WHITELIST from wemake_python_styleguide.violations.best_practices import ( MagicNumberViolation, ) from wemake_python_styleguide.visitors.ast.builtins import WrongNumberVisitor # Correct...
[MagicNumberViolation])
190
4
wemake-services/wemake-python-styleguide
train
300
1a8e268e9489c58b02be77d95ea59f63f430b48a
train
tests/test_visitors/test_ast/test_builtins/test_numbers/test_magic_numbers.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_builtins/test_numbers/test_magic_numbers.py
191
4
assert_*
test_magic_number_warning
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.constants import MAGIC_NUMBERS_WHITELIST from wemake_python_styleguide.violations.best_practices import ( MagicNumberViolation, ) from wemake_python_styleguide.visitors.ast.builtins import WrongNumberVisitor # Correct usages: assignment = 'cons...
number.replace('-', ''))
modified
6a5cd8e02b80adc6f1e7df1848330f6c947c35fe702fa5cbaa9c027b8ed2d350
assert_*|test_magic_number_warning|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.constants import MAGIC_NUMBERS_WHITELIST from wemake_python_styleguide.violations.best_practices import ( MagicNumberViolation, ) from wemake_python_styleguide.visitors.ast.builtins import WrongNumberVisitor # Correct...
number.replace('-', ''))
191
4
wemake-services/wemake-python-styleguide
train
300
1a8e268e9489c58b02be77d95ea59f63f430b48a
train
tests/test_visitors/test_ast/test_builtins/test_numbers/test_magic_numbers.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_builtins/test_numbers/test_magic_numbers.py
226
4
assert_*
test_magic_number_octal_warning
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.constants import MAGIC_NUMBERS_WHITELIST from wemake_python_styleguide.violations.best_practices import ( MagicNumberViolation, ) from wemake_python_styleguide.visitors.ast.builtins import WrongNumberVisitor # Correct usages: assignment = 'cons...
[MagicNumberViolation])
modified
51b649230353ce54debbccd229b292aa7cac6bbc18639b2f4267e8c47c781421
assert_*|test_magic_number_octal_warning|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.constants import MAGIC_NUMBERS_WHITELIST from wemake_python_styleguide.violations.best_practices import ( MagicNumberViolation, ) from wemake_python_styleguide.visitors.ast.builtins import WrongNumberVisitor # C...
[MagicNumberViolation])
226
4
wemake-services/wemake-python-styleguide
train
301
7d12eafde3cef69c9a8449ca015ffbe7d6c86dbc
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
223
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
12c5b486fef7f044c4341a8426ea723e2671e954c74618dd0c3f4d9940cd49be
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
222
8
wemake-services/wemake-python-styleguide
train
301
7d12eafde3cef69c9a8449ca015ffbe7d6c86dbc
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
227
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
1d8e33dc3c054a9f1638267e1a30cb45aa0cf797148746a143ce6959fbd97c62
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)
226
8
wemake-services/wemake-python-styleguide
train
301
7d12eafde3cef69c9a8449ca015ffbe7d6c86dbc
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
255
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
b31a1b19361a0c0e90ff0502f6f9c169a7d2b372cfdb64be114829c6b0c28224
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)
254
4
wemake-services/wemake-python-styleguide
train
301
7d12eafde3cef69c9a8449ca015ffbe7d6c86dbc
train
tests/test_visitors/test_ast/test_annotations/test_argument_annotations.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_annotations/test_argument_annotations.py
176
4
assert_*
test_forbidden_deep_nested_annotations
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.visitors.ast.annotations import ( LiteralNoneViolation, MultilineFunctionAnnotationViolation, NestedAnnotationsViolation, WrongAnnotationVisitor, WrongNestedAnnotationVisitor, ) # Correct: correct_function_without_arguments = ""...
[ NestedAnnotationsViolation, NestedAnnotationsViolation, ])
added
419752244823a575ce491aafca94244b25542168b0fc7493b1ed9940c93bbf3f
assert_*|test_forbidden_deep_nested_annotations|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.visitors.ast.annotations import ( LiteralNoneViolation, MultilineFunctionAnnotationViolation, NestedAnnotationsViolation, WrongAnnotationVisitor, WrongNestedAnnotationVisitor, ) # Correct: correct_functio...
null
null
null
wemake-services/wemake-python-styleguide
train
301
7d12eafde3cef69c9a8449ca015ffbe7d6c86dbc
train
tests/test_visitors/test_ast/test_annotations/test_argument_annotations.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_annotations/test_argument_annotations.py
199
4
assert_*
test_forbidden_literal_none_annotation
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.visitors.ast.annotations import ( LiteralNoneViolation, MultilineFunctionAnnotationViolation, NestedAnnotationsViolation, WrongAnnotationVisitor, WrongNestedAnnotationVisitor, ) # Correct: correct_function_without_arguments = ""...
[LiteralNoneViolation])
added
f312e4adb337294ad7c6f835e5b0573af9f22b3b5d6bd4b0018893749caa2a6d
assert_*|test_forbidden_literal_none_annotation|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.visitors.ast.annotations import ( LiteralNoneViolation, MultilineFunctionAnnotationViolation, NestedAnnotationsViolation, WrongAnnotationVisitor, WrongNestedAnnotationVisitor, ) # Correct: correct_functio...
null
null
null
wemake-services/wemake-python-styleguide
train
301
7d12eafde3cef69c9a8449ca015ffbe7d6c86dbc
train
tests/test_visitors/test_ast/test_annotations/test_argument_annotations.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_annotations/test_argument_annotations.py
219
4
assert_*
test_wrong_argument_annotation
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.visitors.ast.annotations import ( LiteralNoneViolation, MultilineFunctionAnnotationViolation, NestedAnnotationsViolation, WrongAnnotationVisitor, WrongNestedAnnotationVisitor, ) # Correct: correct_function_without_arguments = ""...
[MultilineFunctionAnnotationViolation])
added
5b0f958646b6bb9a1d453e406831bd917c3b368f6a9652c0d00389306981634c
assert_*|test_wrong_argument_annotation|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.visitors.ast.annotations import ( LiteralNoneViolation, MultilineFunctionAnnotationViolation, NestedAnnotationsViolation, WrongAnnotationVisitor, WrongNestedAnnotationVisitor, ) # Correct: correct_function_withou...
null
null
null
wemake-services/wemake-python-styleguide
train
301
7d12eafde3cef69c9a8449ca015ffbe7d6c86dbc
train
tests/test_visitors/test_ast/test_annotations/test_return_annotations.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_annotations/test_return_annotations.py
155
4
assert_*
test_wrong_return_annotation
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.visitors.ast.annotations import ( LiteralNoneViolation, MultilineFunctionAnnotationViolation, NestedAnnotationsViolation, WrongAnnotationVisitor, WrongNestedAnnotationVisitor, ) # Correct: correct_function_without_annotations = ...
[MultilineFunctionAnnotationViolation])
added
f135533e0a39a5eea4c19e91b6c8c0bfd32c1656814529ed778d85a7504a843a
assert_*|test_wrong_return_annotation|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.visitors.ast.annotations import ( LiteralNoneViolation, MultilineFunctionAnnotationViolation, NestedAnnotationsViolation, WrongAnnotationVisitor, WrongNestedAnnotationVisitor, ) # Correct: correct_function_without_...
null
null
null
wemake-services/wemake-python-styleguide
train
301
7d12eafde3cef69c9a8449ca015ffbe7d6c86dbc
train
tests/test_visitors/test_ast/test_annotations/test_return_annotations.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_annotations/test_return_annotations.py
220
4
assert_*
test_wrong_deep_nested_return_annotations
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.visitors.ast.annotations import ( LiteralNoneViolation, MultilineFunctionAnnotationViolation, NestedAnnotationsViolation, WrongAnnotationVisitor, WrongNestedAnnotationVisitor, ) # Correct: correct_function_without_annotations = ...
[ NestedAnnotationsViolation, NestedAnnotationsViolation, ])
added
a494c1137c7bfcabd0c40872d65316588789abf917a2e79dd45cd43c9180589d
assert_*|test_wrong_deep_nested_return_annotations|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.visitors.ast.annotations import ( LiteralNoneViolation, MultilineFunctionAnnotationViolation, NestedAnnotationsViolation, WrongAnnotationVisitor, WrongNestedAnnotationVisitor, ) # Correct: correct_func...
null
null
null
wemake-services/wemake-python-styleguide
train
302
215d43c462a118ebd925d1b6165ac823d4c9520d
train
tests/test_visitors/test_ast/test_builtins/test_numbers/test_approximate_constants.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_builtins/test_numbers/test_approximate_constants.py
32
4
assert_*
test_violation_on_approximate_constants
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( ApproximateConstantViolation, ) from wemake_python_styleguide.visitors.ast.builtins import WrongNumberVisitor @pytest.mark.parametrize('variable_value', [ # We use string, because these values in numbers r...
[ApproximateConstantViolation])
added
e02726f316712ebc7092c5c54e227b1077e76d5bea5908f632f4900fe46368ad
assert_*|test_violation_on_approximate_constants|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( ApproximateConstantViolation, ) from wemake_python_styleguide.visitors.ast.builtins import WrongNumberVisitor @pytest.mark.parametrize('variable_value', [ # We use stri...
null
null
null
wemake-services/wemake-python-styleguide
train
302
215d43c462a118ebd925d1b6165ac823d4c9520d
train
tests/test_visitors/test_ast/test_builtins/test_numbers/test_approximate_constants.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_builtins/test_numbers/test_approximate_constants.py
33
4
assert_*
test_violation_on_approximate_constants
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( ApproximateConstantViolation, ) from wemake_python_styleguide.visitors.ast.builtins import WrongNumberVisitor @pytest.mark.parametrize('variable_value', [ # We use string, because these values in numbers r...
str(variable_value))
added
716340ea809de0bd173494eb6fae61ceca8eb509030de131ea1ae8a136880a80
assert_*|test_violation_on_approximate_constants|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( ApproximateConstantViolation, ) from wemake_python_styleguide.visitors.ast.builtins import WrongNumberVisitor @pytest.mark.parametrize('variable_value', [ # We use stri...
null
null
null
wemake-services/wemake-python-styleguide
train
303
87e940f9583ac89589a0969ff7bd5535567393ee
train
tests/test_visitors/test_ast/test_functions/test_implicit_primitive.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_functions/test_implicit_primitive.py
68
4
assert_*
test_wrong_lambda
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( ImplicitPrimitiveViolation, ) from wemake_python_styleguide.visitors.ast.functions import ( UselessLambdaDefinitionVisitor, ) @pytest.mark.parametrize('code', [ 'lambda x: 0', 'lambda *x: []', ...
[ImplicitPrimitiveViolation])
added
d7434d99c7d85b7872f55d164329e8bdcee880f26770dad5b30a8c963b136a94
assert_*|test_wrong_lambda|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( ImplicitPrimitiveViolation, ) from wemake_python_styleguide.visitors.ast.functions import ( UselessLambdaDefinitionVisitor, ) @pytest.mark.parametrize('code', [ 'lambda x: 0', 'lambda *x: []...
null
null
null
wemake-services/wemake-python-styleguide
train
304
d01851a23366aecf4f581f0f7032ba3511d85bdd
train
tests/test_visitors/test_ast/test_modules/test_magic_module_functions.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_modules/test_magic_module_functions.py
49
4
assert_*
test_right_magic_used
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.constants import MAGIC_MODULE_NAMES_BLACKLIST from wemake_python_styleguide.violations.best_practices import ( BadMagicModuleFunctionViolation, ) from wemake_python_styleguide.visitors.ast.modules import ( MagicModuleFunctionsVisitor, ) regu...
[BadMagicModuleFunctionViolation])
added
1fbd7920b22b35ed56ae9899ba1a9b9e73d0d11b5f218a7207fd9f9d2f686442
assert_*|test_right_magic_used|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.constants import MAGIC_MODULE_NAMES_BLACKLIST from wemake_python_styleguide.violations.best_practices import ( BadMagicModuleFunctionViolation, ) from wemake_python_styleguide.visitors.ast.modules import ( MagicModuleFunc...
null
null
null
wemake-services/wemake-python-styleguide
train
305
70249be832b3dddae830419efa03fc255e6bd6ee
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
224
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
4e706f2fc54d762c60b69d6ceeaf3bca293099ed766c8f6fd0c43754e04d4cc0
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
223
8
wemake-services/wemake-python-styleguide
train
305
70249be832b3dddae830419efa03fc255e6bd6ee
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
227
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
f8097bf78a33f64afef9123db8d84dbc4a2dd8cbe2766adeec670927b6f57bf9
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
226
8
wemake-services/wemake-python-styleguide
train
305
70249be832b3dddae830419efa03fc255e6bd6ee
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
228
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
cb22cf4c1fede189c64f0be4a29a7f54ae98090f81696945b27af24c37cfe9ae
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)
227
8
wemake-services/wemake-python-styleguide
train
305
70249be832b3dddae830419efa03fc255e6bd6ee
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
256
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
7082cc43a384576e42d5b5595c0763c9c284d8df15f1df0b67d93a81300f368b
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)
255
4
wemake-services/wemake-python-styleguide
train
305
70249be832b3dddae830419efa03fc255e6bd6ee
train
tests/test_visitors/test_ast/test_statements/test_almost_swapped.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_statements/test_almost_swapped.py
46
4
assert_*
test_wrong_swapped_variables
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( AlmostSwappedViolation, ) from wemake_python_styleguide.visitors.ast.statements import ( StatementsWithBodiesVisitor, ) # Correct: correct_swapped_variables = 'a, b = b, a' # Wrong: wrong_swapped_variabl...
[AlmostSwappedViolation])
added
4a06ac68081f9c55a0af52d87664b6fa723cac6a0d3171b8a0e952e0e56af444
assert_*|test_wrong_swapped_variables|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( AlmostSwappedViolation, ) from wemake_python_styleguide.visitors.ast.statements import ( StatementsWithBodiesVisitor, ) # Correct: correct_swapped_variables = 'a, b = b, a' # Wron...
null
null
null
wemake-services/wemake-python-styleguide
train
306
b177bfa2dee846b762d7ecc660db025d16953fe6
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
225
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
58aabc2565b3863f84831f353d1a6179d934df372b2255fc53ceb25edef2bcf2
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
224
8
wemake-services/wemake-python-styleguide
train
306
b177bfa2dee846b762d7ecc660db025d16953fe6
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
228
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
351a337988a7997558293e5d36b318a576c48d28d267023ee378bf835125282b
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
227
8
wemake-services/wemake-python-styleguide
train
306
b177bfa2dee846b762d7ecc660db025d16953fe6
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
229
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
b1080ca0c2228cb2d1f59b975e57af95c4a39c1902124736003fb83b4e6b982b
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)
228
8
wemake-services/wemake-python-styleguide
train
306
b177bfa2dee846b762d7ecc660db025d16953fe6
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
257
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
230e8bfcbffd957beff6d78d358a3ea7c18e22155c22362b222a742ea9782d91
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)
256
4
wemake-services/wemake-python-styleguide
train
307
5c4de1cda4e92b5bfe7eedfe613b38b7af66ac03
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
226
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
57636919f96ba0fc2ea5a6fcb0008c3262f573c4a8364ecd6add284bd929256a
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
225
8
wemake-services/wemake-python-styleguide
train
307
5c4de1cda4e92b5bfe7eedfe613b38b7af66ac03
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
229
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
8cc5639f411d6041e2dbf22cccd4835595521f86b243ea3957b9c1a90de52517
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
228
8
wemake-services/wemake-python-styleguide
train
307
5c4de1cda4e92b5bfe7eedfe613b38b7af66ac03
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
230
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
45b846249974993bfda31630f23428cb9bcad63e8f9c853be08efd0205b18ece
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)
229
8
wemake-services/wemake-python-styleguide
train
307
5c4de1cda4e92b5bfe7eedfe613b38b7af66ac03
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
258
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
66f3ba249c08acce6c91b7dd0565fc6ef7255253960881603d6bec619505df39
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)
257
4
wemake-services/wemake-python-styleguide
train
307
5c4de1cda4e92b5bfe7eedfe613b38b7af66ac03
train
tests/test_visitors/test_ast/test_subscripts/test_redundant_subscripts.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_subscripts/test_redundant_subscripts.py
34
4
assert_*
test_redundant_subscript
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.consistency import ( RedundantSubscriptViolation, ) from wemake_python_styleguide.visitors.ast.subscripts import SubscriptVisitor usage_template = 'constant{0}' @pytest.mark.parametrize('expression', [ '[0:7]', '[0:7:1]', ...
[RedundantSubscriptViolation])
added
1a5e81bfd211750c2cae401eada8ec3f1b412958d6f030e0e97cbb0b2ffe1e9c
assert_*|test_redundant_subscript|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.consistency import ( RedundantSubscriptViolation, ) from wemake_python_styleguide.visitors.ast.subscripts import SubscriptVisitor usage_template = 'constant{0}' @pytest.mark.parametrize('expression', [ '[0:7...
null
null
null
wemake-services/wemake-python-styleguide
train
308
5aacfbfe4260b048c5cdd4277aa67af5c98c9ec6
train
tests/test_options.py
train
wemake-services/wemake-python-styleguide:tests/test_options.py
26
4
assert
test_option_asdict_no_none
# -*- coding: utf-8 -*- from wemake_python_styleguide.options import config def test_option_docs(): """Ensures that all options are documented.""" for option in config.Configuration._options: # noqa: WPS437 option_name = '``{0}``'.format(option.long_option_name[2:]) assert option_name in con...
opt.asdict_no_none()
added
8b9531e5051cc0d675e173badf298fb46415df3c44a14c9c513c3153d99e55e5
assert|test_option_asdict_no_none|# -*- coding: utf-8 -*- from wemake_python_styleguide.options import config def test_option_docs(): """Ensures that all options are documented.""" for option in config.Configuration._options: # noqa: WPS437 option_name = '``{0}``'.format(option.long_option_name[2:]) assert option_name ...
null
null
null
wemake-services/wemake-python-styleguide
train
309
861308aac67083412b2fd350d9afb0ba2396b5c4
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
71
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
961005638845251dad4edd71064e1a4704eef24869e0c9d0cd25f6b9e75e33d2
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
310
c2dc36650d0145583c8fc1a8c14d8567ec4d42ea
train
tests/test_visitors/test_ast/test_annotations/test_annotation_metadata/test_flat_types.py
val
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_annotations/test_annotation_metadata/test_flat_types.py
67
4
assert_*
test_wrong_nested_annotation
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.annotations import ( NestedAnnotationsViolation, ) from wemake_python_styleguide.visitors.ast.annotations import ( SemanticAnnotationVisitor, ) @pytest.mark.parametrize('code', [ # Literal: 'Literal[Literal[1]]', 'Lit...
[NestedAnnotationsViolation])
added
c4b9079c7551d2785cc6888a20fc687e3eb9d6c960850003a1ade310a2e06418
assert_*|test_wrong_nested_annotation|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.annotations import ( NestedAnnotationsViolation, ) from wemake_python_styleguide.visitors.ast.annotations import ( SemanticAnnotationVisitor, ) @pytest.mark.parametrize('code', [ # Literal: 'Literal[Lite...
null
null
null
wemake-services/wemake-python-styleguide
train
310
c2dc36650d0145583c8fc1a8c14d8567ec4d42ea
train
tests/test_visitors/test_ast/test_annotations/test_annotation_metadata/test_literal_none.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_annotations/test_annotation_metadata/test_literal_none.py
32
4
assert_*
test_wrong_literal_none
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.annotations import ( LiteralNoneViolation, ) from wemake_python_styleguide.visitors.ast.annotations import ( SemanticAnnotationVisitor, ) @pytest.mark.parametrize('code', [ 'Literal[None]', 'typing.Literal[None]', 'ty...
[LiteralNoneViolation])
added
3d811f20e3393d131dd88fce90b3e0588946a340508687162c059e0d32a101e5
assert_*|test_wrong_literal_none|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.annotations import ( LiteralNoneViolation, ) from wemake_python_styleguide.visitors.ast.annotations import ( SemanticAnnotationVisitor, ) @pytest.mark.parametrize('code', [ 'Literal[None]', 'typing.Literal[No...
null
null
null
wemake-services/wemake-python-styleguide
train
310
c2dc36650d0145583c8fc1a8c14d8567ec4d42ea
train
tests/test_visitors/test_ast/test_annotations/test_multiline_annotations/test_argument_annotations.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_annotations/test_multiline_annotations/test_argument_annotations.py
72
4
assert_*
test_wrong_argument_annotation
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.visitors.ast.annotations import ( MultilineFunctionAnnotationViolation, WrongAnnotationVisitor, ) # Correct: correct_function_without_arguments = """ def function(): ... """ correct_function_without_annotations = """ def function(arg, arg1...
[MultilineFunctionAnnotationViolation])
added
1fd4e6c4ec616cd70fbf67b82f166149904be30f1df86d7bd235db0c372cee10
assert_*|test_wrong_argument_annotation|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.visitors.ast.annotations import ( MultilineFunctionAnnotationViolation, WrongAnnotationVisitor, ) # Correct: correct_function_without_arguments = """ def function(): ... """ correct_function_without_annotations =...
null
null
null
wemake-services/wemake-python-styleguide
train
310
c2dc36650d0145583c8fc1a8c14d8567ec4d42ea
train
tests/test_visitors/test_ast/test_annotations/test_multiline_annotations/test_return_annotations.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_annotations/test_multiline_annotations/test_return_annotations.py
80
4
assert_*
test_wrong_return_annotation
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.visitors.ast.annotations import ( MultilineFunctionAnnotationViolation, WrongAnnotationVisitor, ) # Correct: correct_function_without_annotations = """ def function(): ... """ correct_simple_return = """ def function() -> int: ... """ cor...
[MultilineFunctionAnnotationViolation])
added
1f4ab3ea7999d73ab6f31473e2114331220fa18846e689162385f115150bc2cc
assert_*|test_wrong_return_annotation|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.visitors.ast.annotations import ( MultilineFunctionAnnotationViolation, WrongAnnotationVisitor, ) # Correct: correct_function_without_annotations = """ def function(): ... """ correct_simple_return = """ def functi...
null
null
null
wemake-services/wemake-python-styleguide
train
311
4670a7e0df08b4187e3a8566cf5fa7bf14430f40
train
tests/test_checker/test_presets.py
train
wemake-services/wemake-python-styleguide:tests/test_checker/test_presets.py
76
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
a3033ea9b4f2e64f3cca339cf1dbca2552a73a74bfb1011401deb0952f1c7987
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
311
4670a7e0df08b4187e3a8566cf5fa7bf14430f40
train
tests/test_checker/test_presets.py
train
wemake-services/wemake-python-styleguide:tests/test_checker/test_presets.py
78
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
07f4fa21dd037450265fda3117e69d9c58268ba9bc083cadf0cc8f9b78bff8f0
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
312
f33fe03cc53c4a5006fe79bd086d9908f9301fea
train
tests/test_checker/test_presets.py
train
wemake-services/wemake-python-styleguide:tests/test_checker/test_presets.py
74
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
fff51d24e4d53a14a91c77f0c4ea911654d87a3e15b0c1a94d2821328f1c5e48
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
76
8
wemake-services/wemake-python-styleguide
train
312
f33fe03cc53c4a5006fe79bd086d9908f9301fea
train
tests/test_checker/test_presets.py
train
wemake-services/wemake-python-styleguide:tests/test_checker/test_presets.py
76
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
def2e18b2a6d9d926a411476325c2ac152be9a8c7f9415e2cca4cd82ee005ba7
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)
78
4
wemake-services/wemake-python-styleguide
train
313
5fe6433ddcb853abfcfffd3905033edb72466d2e
train
tests/test_checker/test_presets.py
train
wemake-services/wemake-python-styleguide:tests/test_checker/test_presets.py
74
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
3799ef86468b23be6b131b62bf1ccc708e29d959d56758ecfddb47733927bdae
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
74
8
wemake-services/wemake-python-styleguide
train
313
5fe6433ddcb853abfcfffd3905033edb72466d2e
train
tests/test_checker/test_presets.py
train
wemake-services/wemake-python-styleguide:tests/test_checker/test_presets.py
76
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
feeba442196d6524966e5f0f97473ac84ad0e9f167c2e0e36c1274d68144a943
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)
76
4
wemake-services/wemake-python-styleguide
train
314
09742a951fbd34b31fbd051ad253c78b7ff083b0
train
tests/test_checker/test_presets.py
train
wemake-services/wemake-python-styleguide:tests/test_checker/test_presets.py
74
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
e30e628a68a790f3d5cd34137ff44780485dc49b76215e25e444a4ddabeb08e7
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
74
8
wemake-services/wemake-python-styleguide
train
314
09742a951fbd34b31fbd051ad253c78b7ff083b0
train
tests/test_checker/test_presets.py
train
wemake-services/wemake-python-styleguide:tests/test_checker/test_presets.py
76
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
88f65555cc8c6db316da77a54fd4e15cee895f527529b76ed86f00a032a3ea96
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)
76
4
wemake-services/wemake-python-styleguide
train
315
3e3ff7a71aea37cb4482508d8cbb64899355326d
train
tests/test_violations/test_docs.py
train
wemake-services/wemake-python-styleguide:tests/test_violations/test_docs.py
32
12
assert
test_previous_codes_versionchanged
# -*- coding: utf-8 -*- from wemake_python_styleguide.options.config import Configuration def test_all_violations_are_documented(all_module_violations): """Ensures that all violations are documented.""" for module, classes in all_module_violations.items(): for violation_class in classes: ...
len(violation.previous_codes)
added
a1ddb4812fb8491c161f50f5ac5ef0499d1899dfc1c2dee51014182827879fce
assert|test_previous_codes_versionchanged|# -*- coding: utf-8 -*- from wemake_python_styleguide.options.config import Configuration def test_all_violations_are_documented(all_module_violations): """Ensures that all violations are documented.""" for module, classes in all_module_violations.items(): for violation_class i...
null
null
null
wemake-services/wemake-python-styleguide
train
315
3e3ff7a71aea37cb4482508d8cbb64899355326d
train
tests/test_violations/test_docs.py
train
wemake-services/wemake-python-styleguide:tests/test_violations/test_docs.py
49
16
assert
test_configuration
# -*- coding: utf-8 -*- from wemake_python_styleguide.options.config import Configuration def test_all_violations_are_documented(all_module_violations): """Ensures that all violations are documented.""" for module, classes in all_module_violations.items(): for violation_class in classes: ...
violation.__doc__
added
4cebd8e73e3fa81ce3bfe63d3ff9bb7e3a4b42d4238f95a342343730779c1d55
assert|test_configuration|# -*- coding: utf-8 -*- from wemake_python_styleguide.options.config import Configuration def test_all_violations_are_documented(all_module_violations): """Ensures that all violations are documented.""" for module, classes in all_module_violations.items(): for violation_class in classes: # Onc...
null
null
null
wemake-services/wemake-python-styleguide
train
315
3e3ff7a71aea37cb4482508d8cbb64899355326d
train
tests/test_violations/test_docs.py
train
wemake-services/wemake-python-styleguide:tests/test_violations/test_docs.py
50
16
assert
test_configuration
# -*- coding: utf-8 -*- from wemake_python_styleguide.options.config import Configuration def test_all_violations_are_documented(all_module_violations): """Ensures that all violations are documented.""" for module, classes in all_module_violations.items(): for violation_class in classes: ...
violation.__doc__
added
3109281d7fc846593a5461031258c160d130f756f49bc8fc9b8eb973f063397f
assert|test_configuration|# -*- coding: utf-8 -*- from wemake_python_styleguide.options.config import Configuration def test_all_violations_are_documented(all_module_violations): """Ensures that all violations are documented.""" for module, classes in all_module_violations.items(): for violation_class in classes: # Onc...
null
null
null
wemake-services/wemake-python-styleguide
train
315
3e3ff7a71aea37cb4482508d8cbb64899355326d
train
tests/test_violations/test_docs.py
train
wemake-services/wemake-python-styleguide:tests/test_violations/test_docs.py
53
8
assert
test_configuration
# -*- coding: utf-8 -*- from wemake_python_styleguide.options.config import Configuration def test_all_violations_are_documented(all_module_violations): """Ensures that all violations are documented.""" for module, classes in all_module_violations.items(): for violation_class in classes: ...
is_listed
added
914dc534e5cb8bf1025afcd15c0a91710a29553ec7dbc1c583fe108e901bed9b
assert|test_configuration|# -*- coding: utf-8 -*- from wemake_python_styleguide.options.config import Configuration def test_all_violations_are_documented(all_module_violations): """Ensures that all violations are documented.""" for module, classes in all_module_violations.items(): for violation_class in classes: # Onc...
null
null
null
wemake-services/wemake-python-styleguide
train
316
fd4b203135e4c233059cdb776f5bc1bbed8c1a90
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
227
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
5b0e61041f7abeedf213a15978a5b8a8cddee39d3be757f5f58b63c61adce4b1
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
226
8
wemake-services/wemake-python-styleguide
train
316
fd4b203135e4c233059cdb776f5bc1bbed8c1a90
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
230
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
5d4f28e219f681e69ffa2705e8931bc7c948aab9ab358990130987a1a7eeb0db
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
229
8
wemake-services/wemake-python-styleguide
train
316
fd4b203135e4c233059cdb776f5bc1bbed8c1a90
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
231
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
46aa4b7fe998191f1d30c6d425536d418532a6620bc7a3133e0c09d5079e49f4
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)
230
8
wemake-services/wemake-python-styleguide
train
316
fd4b203135e4c233059cdb776f5bc1bbed8c1a90
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
259
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
e2b8bdfc04e9d3bd24398738d18d2f5aa40c0f6c9fb3e84da9f35e4d4ded4159
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)
258
4
wemake-services/wemake-python-styleguide
train
316
fd4b203135e4c233059cdb776f5bc1bbed8c1a90
train
tests/test_visitors/test_ast/test_statements/test_statements_with_no_effect.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_statements/test_statements_with_no_effect.py
194
4
assert_*
test_statement_with_no_effect
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( MisrefactoredAssignmentViolation, StatementHasNoEffectViolation, ) from wemake_python_styleguide.visitors.ast.statements import ( StatementsWithBodiesVisitor, ) # Modules: module_template = """ {0} """...
[StatementHasNoEffectViolation])
modified
b6119979e0e512623d21a23d47d7d19c041ce4e40ae0b73b583f06cfcd5b04af
assert_*|test_statement_with_no_effect|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( MisrefactoredAssignmentViolation, StatementHasNoEffectViolation, ) from wemake_python_styleguide.visitors.ast.statements import ( StatementsWithBodiesVisitor, ) # Modules: module...
[StatementHasNoEffectViolation])
193
4
wemake-services/wemake-python-styleguide
train
316
fd4b203135e4c233059cdb776f5bc1bbed8c1a90
train
tests/test_visitors/test_ast/test_statements/test_statements_with_no_effect.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_statements/test_statements_with_no_effect.py
226
4
assert_*
test_misrefactored_assignment
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( MisrefactoredAssignmentViolation, StatementHasNoEffectViolation, ) from wemake_python_styleguide.visitors.ast.statements import ( StatementsWithBodiesVisitor, ) # Modules: module_template = """ {0} """...
[MisrefactoredAssignmentViolation])
added
ec02d82fd86f27916fd5d449f39b850b44376cfaf6e2ccfa948bc2c2e7fa8a93
assert_*|test_misrefactored_assignment|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( MisrefactoredAssignmentViolation, StatementHasNoEffectViolation, ) from wemake_python_styleguide.visitors.ast.statements import ( StatementsWithBodiesVisitor, ) # Modules: module...
null
null
null
wemake-services/wemake-python-styleguide
train
316
fd4b203135e4c233059cdb776f5bc1bbed8c1a90
train
tests/test_visitors/test_ast/test_statements/test_statements_with_no_effect.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_statements/test_statements_with_no_effect.py
411
4
assert_*
test_statement_with_useless_docstring
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( MisrefactoredAssignmentViolation, StatementHasNoEffectViolation, ) from wemake_python_styleguide.visitors.ast.statements import ( StatementsWithBodiesVisitor, ) # Modules: module_template = """ {0} """...
[StatementHasNoEffectViolation])
added
9ead515a7fb71747bfff93330d581ad5956f5d2c3a1eef04d21cc17b1ba600de
assert_*|test_statement_with_useless_docstring|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( MisrefactoredAssignmentViolation, StatementHasNoEffectViolation, ) from wemake_python_styleguide.visitors.ast.statements import ( StatementsWithBodiesVisitor, ) # Modules...
null
null
null
wemake-services/wemake-python-styleguide
train
317
e98f02d7a73e44f3719a0219106d04c827a66892
train
tests/test_visitors/test_ast/test_complexity/test_overuses/test_overused_expressions.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_complexity/test_overuses/test_overused_expressions.py
131
4
assert_*
test_func_expression_overuse
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.complexity import ( OverusedExpressionViolation, ) from wemake_python_styleguide.visitors.ast.complexity.overuses import ( ExpressionOveruseVisitor, ) module_context = """ {0} {1} """ function_context1 = """ def function(): {...
[OverusedExpressionViolation])
added
2a5cb9bea140157344793f570db6f982bdab422af39b49ce51f6495d89d31de4
assert_*|test_func_expression_overuse|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.complexity import ( OverusedExpressionViolation, ) from wemake_python_styleguide.visitors.ast.complexity.overuses import ( ExpressionOveruseVisitor, ) module_context = """ {0} {1} """ function_context1 =...
null
null
null
wemake-services/wemake-python-styleguide
train
317
e98f02d7a73e44f3719a0219106d04c827a66892
train
tests/test_visitors/test_ast/test_complexity/test_overuses/test_overused_expressions.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_complexity/test_overuses/test_overused_expressions.py
152
4
assert_*
test_module_expression_overuse
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.complexity import ( OverusedExpressionViolation, ) from wemake_python_styleguide.visitors.ast.complexity.overuses import ( ExpressionOveruseVisitor, ) module_context = """ {0} {1} """ function_context1 = """ def function(): {...
[OverusedExpressionViolation])
added
af07ef197ba5e67d17a1eb9b087061c205d77a24bebdadc3b47e184be11511a7
assert_*|test_module_expression_overuse|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.complexity import ( OverusedExpressionViolation, ) from wemake_python_styleguide.visitors.ast.complexity.overuses import ( ExpressionOveruseVisitor, ) module_context = """ {0} {1} """ function_context1...
null
null
null
wemake-services/wemake-python-styleguide
train
318
2063e1fdf76259f93513d1b3acab146bb161686f
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
228
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
a8499289dc2ad357662ff40ac91804d123aa48cd4909ed27e8ff1e0360e7f1b9
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
227
8
wemake-services/wemake-python-styleguide
train
318
2063e1fdf76259f93513d1b3acab146bb161686f
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
231
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
8d9bcfd751f0b4c3c088f54cb7dc589da73db7eeabf9d88e8d3170c469cf1994
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
230
8
wemake-services/wemake-python-styleguide
train
318
2063e1fdf76259f93513d1b3acab146bb161686f
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
232
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
bdd1278bf31409fda334373a166ff5bd223693b0c86dbd5399e42a45d7d4fba8
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)
231
8
wemake-services/wemake-python-styleguide
train
318
2063e1fdf76259f93513d1b3acab146bb161686f
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
260
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
363c46392c2174216b977bc758e056233938c014babdd0f05033242b321bf475
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)
259
4
wemake-services/wemake-python-styleguide
train
318
2063e1fdf76259f93513d1b3acab146bb161686f
train
tests/test_visitors/test_ast/test_statements/test_augmented_assign.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_statements/test_augmented_assign.py
70
4
assert_*
test_no_augmented_assign
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.consistency import ( AugmentedAssignPatternViolation, ) from wemake_python_styleguide.visitors.ast.statements import ( AssignmentPatternsVisitor, ) OPERATIONS = frozenset(( '+', '-', '*', '/', '%', '**', ...
[AugmentedAssignPatternViolation])
added
0ffcd750679ebeda89d057b000e00547c700f91c6a606252ecac0c62c2cc253b
assert_*|test_no_augmented_assign|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.consistency import ( AugmentedAssignPatternViolation, ) from wemake_python_styleguide.visitors.ast.statements import ( AssignmentPatternsVisitor, ) OPERATIONS = frozenset(( '+', '-', '*', '/', '%', '**', '&'...
null
null
null
wemake-services/wemake-python-styleguide
train
319
78a57bb228fb1fe316f1524b00776d5011d7d01d
train
tests/test_visitors/test_tokenize/test_comments/test_noqa_comment.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_tokenize/test_comments/test_noqa_comment.py
64
4
assert_*
test_incorrect_noqa_comment
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( WrongMagicCommentViolation, ) from wemake_python_styleguide.visitors.tokenize.comments import ( WrongCommentVisitor, ) @pytest.mark.parametrize('code', [ 'x = 10_00 # noqa: WPS002,Z114', 'x = 10_0...
[WrongMagicCommentViolation])
modified
201b6cb86a487afedb96a60d4345fb3b0593dc02d0c232d911ab16d8c6ef7127
assert_*|test_incorrect_noqa_comment|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( WrongMagicCommentViolation, ) from wemake_python_styleguide.visitors.tokenize.comments import ( WrongCommentVisitor, ) @pytest.mark.parametrize('code', [ 'x = 10_00 # noqa: WPS002,...
[WrongMagicCommentViolation])
63
4
wemake-services/wemake-python-styleguide
train
320
246638f1f14cb266725ec5d4d7632ea20b9e2c47
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
229
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
c8691f92eb21b10b3887b940ecc26418cc67f326eccd9c7e861dedf55856e28c
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
228
8
wemake-services/wemake-python-styleguide
train
320
246638f1f14cb266725ec5d4d7632ea20b9e2c47
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
232
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
d47fb481c3a761f61b908a4eee81ec65f7df712b2d5aed8b486cfe960c3ca87c
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
231
8
wemake-services/wemake-python-styleguide
train
320
246638f1f14cb266725ec5d4d7632ea20b9e2c47
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
233
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
d2d564eec1e6454d28b8b34cead398d2e92be9a5249274c2641ea756e3ef6c2e
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)
232
8
wemake-services/wemake-python-styleguide
train
320
246638f1f14cb266725ec5d4d7632ea20b9e2c47
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
261
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
c1b5efc81555922945788f388dfc31ec8d10e479b6b4a0542e14e456483807dc
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)
260
4
wemake-services/wemake-python-styleguide
train
320
246638f1f14cb266725ec5d4d7632ea20b9e2c47
train
tests/test_visitors/test_ast/test_annotations/test_annotation_metadata/test_flat_types.py
val
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_annotations/test_annotation_metadata/test_flat_types.py
68
4
assert_*
test_wrong_nested_annotation
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.annotations import ( NestedAnnotationsViolation, ) from wemake_python_styleguide.visitors.ast.annotations import ( SemanticAnnotationVisitor, UnionNestedInOptionalViolation, ) @pytest.mark.parametrize('code', [ # Literal:...
[NestedAnnotationsViolation])
modified
77836c891c62f1fed3ad76174b1e17f39338845a32ca6b3a158570280ad19cbd
assert_*|test_wrong_nested_annotation|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.annotations import ( NestedAnnotationsViolation, ) from wemake_python_styleguide.visitors.ast.annotations import ( SemanticAnnotationVisitor, UnionNestedInOptionalViolation, ) @pytest.mark.parametrize('c...
[NestedAnnotationsViolation])
67
4
wemake-services/wemake-python-styleguide
train
320
246638f1f14cb266725ec5d4d7632ea20b9e2c47
train
tests/test_visitors/test_ast/test_annotations/test_annotation_metadata/test_flat_types.py
val
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_annotations/test_annotation_metadata/test_flat_types.py
127
4
assert_*
test_wrong_union_nested_in_optional
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.annotations import ( NestedAnnotationsViolation, ) from wemake_python_styleguide.visitors.ast.annotations import ( SemanticAnnotationVisitor, UnionNestedInOptionalViolation, ) @pytest.mark.parametrize('code', [ # Literal:...
[UnionNestedInOptionalViolation])
added
b59a090a6127ba117f96e143c65c2d74a531b13b8e45957f904932992e2c2a91
assert_*|test_wrong_union_nested_in_optional|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.annotations import ( NestedAnnotationsViolation, ) from wemake_python_styleguide.visitors.ast.annotations import ( SemanticAnnotationVisitor, UnionNestedInOptionalViolation, ) @pytest.mark.paramet...
null
null
null
wemake-services/wemake-python-styleguide
train
321
63ea5ef9fad2ef7d14eee5ac5926a74eae9bdaf8
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
229
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
added
f59d659f646d5a68de9ac8d35b27aa38097bf7a59056700e1ce49dd6f994bc8a
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/...
null
null
null
wemake-services/wemake-python-styleguide
train
321
63ea5ef9fad2ef7d14eee5ac5926a74eae9bdaf8
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
233
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)
added
bda0d1f2a73ce74ea76bffb62224cab532ddbb24b5c5ddb750551eed21e6c55e
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/...
null
null
null
wemake-services/wemake-python-styleguide
train
321
63ea5ef9fad2ef7d14eee5ac5926a74eae9bdaf8
train
tests/test_violations/test_codes.py
train
wemake-services/wemake-python-styleguide:tests/test_violations/test_codes.py
20
12
assert
test_all_violations_correct_numbers
# -*- coding: utf-8 -*- def test_all_unique_violation_codes(all_violations): """Ensures that all violations have unique violation codes.""" codes = [] for violation in all_violations: codes.append(int(violation.code)) assert len(set(codes)) == len(all_violations) def test_all_violations_cor...
violation_class.code
modified
8838cef27c47768a33cd952a45a93611ed411b680729cf64b825e0155a1147e6
assert|test_all_violations_correct_numbers|# -*- coding: utf-8 -*- def test_all_unique_violation_codes(all_violations): """Ensures that all violations have unique violation codes.""" codes = [] for violation in all_violations: codes.append(int(violation.code)) assert len(set(codes)) == len(all_violations) def test_all_...
violation_class.code
21
12
wemake-services/wemake-python-styleguide
train
321
63ea5ef9fad2ef7d14eee5ac5926a74eae9bdaf8
train
tests/test_violations/test_codes.py
train
wemake-services/wemake-python-styleguide:tests/test_violations/test_codes.py
43
16
assert
test_no_holes
# -*- coding: utf-8 -*- def test_all_unique_violation_codes(all_violations): """Ensures that all violations have unique violation codes.""" codes = [] for violation in all_violations: codes.append(int(violation.code)) assert len(set(codes)) == len(all_violations) def test_all_violations_cor...
diff == 1 or diff > 2
added
56af6b48cacc1f35473f546c4071dafaa50425ced2b7dd10683e7b21c067cfc9
assert|test_no_holes|# -*- coding: utf-8 -*- def test_all_unique_violation_codes(all_violations): """Ensures that all violations have unique violation codes.""" codes = [] for violation in all_violations: codes.append(int(violation.code)) assert len(set(codes)) == len(all_violations) def test_all_violations_correct_num...
null
null
null
wemake-services/wemake-python-styleguide
train
321
63ea5ef9fad2ef7d14eee5ac5926a74eae9bdaf8
train
tests/test_visitors/test_ast/test_functions/test_implicit_primitive.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_functions/test_implicit_primitive.py
68
4
assert_*
test_wrong_lambda
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.refactoring import ( ImplicitPrimitiveViolation, ) from wemake_python_styleguide.visitors.ast.functions import ( UselessLambdaDefinitionVisitor, ) @pytest.mark.parametrize('code', [ 'lambda x: 0', 'lambda *x: []', 'la...
[ImplicitPrimitiveViolation])
modified
c17c099ee108bb79af95a091ad4398ade15a99fbb34376b7ce5a4d7937416951
assert_*|test_wrong_lambda|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.refactoring import ( ImplicitPrimitiveViolation, ) from wemake_python_styleguide.visitors.ast.functions import ( UselessLambdaDefinitionVisitor, ) @pytest.mark.parametrize('code', [ 'lambda x: 0', 'lambda *x: []', ...
[ImplicitPrimitiveViolation])
68
4
wemake-services/wemake-python-styleguide
train
321
63ea5ef9fad2ef7d14eee5ac5926a74eae9bdaf8
train
tests/test_visitors/test_ast/test_statements/test_almost_swapped.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_statements/test_almost_swapped.py
46
4
assert_*
test_wrong_swapped_variables
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.refactoring import ( AlmostSwappedViolation, ) from wemake_python_styleguide.visitors.ast.statements import ( StatementsWithBodiesVisitor, ) # Correct: correct_swapped_variables = 'a, b = b, a' # Wrong: wrong_swapped_variables ...
[AlmostSwappedViolation])
modified
47e2995fb724343db0659d5e9433a92d67e71daa30a8b82f89c8e8889c68300f
assert_*|test_wrong_swapped_variables|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.refactoring import ( AlmostSwappedViolation, ) from wemake_python_styleguide.visitors.ast.statements import ( StatementsWithBodiesVisitor, ) # Correct: correct_swapped_variables = 'a, b = b, a' # Wrong: ...
[AlmostSwappedViolation])
46
4
wemake-services/wemake-python-styleguide
train
321
63ea5ef9fad2ef7d14eee5ac5926a74eae9bdaf8
train
tests/test_visitors/test_ast/test_statements/test_statements_with_no_effect.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_statements/test_statements_with_no_effect.py
196
4
assert_*
test_statement_with_no_effect
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( StatementHasNoEffectViolation, ) from wemake_python_styleguide.violations.refactoring import ( MisrefactoredAssignmentViolation, ) from wemake_python_styleguide.visitors.ast.statements import ( Statement...
[StatementHasNoEffectViolation])
modified
a3ae2b11bc32ad14191894f2fa5bc67bc410505982caad714d4bf750899d1c8f
assert_*|test_statement_with_no_effect|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( StatementHasNoEffectViolation, ) from wemake_python_styleguide.violations.refactoring import ( MisrefactoredAssignmentViolation, ) from wemake_python_styleguide.visitors.ast.stat...
[StatementHasNoEffectViolation])
194
4
wemake-services/wemake-python-styleguide
train
321
63ea5ef9fad2ef7d14eee5ac5926a74eae9bdaf8
train
tests/test_visitors/test_ast/test_statements/test_statements_with_no_effect.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_statements/test_statements_with_no_effect.py
228
4
assert_*
test_misrefactored_assignment
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( StatementHasNoEffectViolation, ) from wemake_python_styleguide.violations.refactoring import ( MisrefactoredAssignmentViolation, ) from wemake_python_styleguide.visitors.ast.statements import ( Statement...
[MisrefactoredAssignmentViolation])
modified
84235791b32a35dea0372963d8fa658c4db44e604852dfa304615752660d278d
assert_*|test_misrefactored_assignment|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( StatementHasNoEffectViolation, ) from wemake_python_styleguide.violations.refactoring import ( MisrefactoredAssignmentViolation, ) from wemake_python_styleguide.visitors.ast.stat...
[MisrefactoredAssignmentViolation])
226
4
wemake-services/wemake-python-styleguide
train
322
8e8881aff502df307d8a807089aeaf4a3d4a002a
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
230
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
f8f8ad155977f206648f04aead23bd1f351a8fd4f0c41f9a90bc402823399415
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
229
8
wemake-services/wemake-python-styleguide
train
322
8e8881aff502df307d8a807089aeaf4a3d4a002a
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
233
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
9f3056de3e577be9fabe0c609add7eea72facddfb11c6a33b6921f89f4654913
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
232
8
wemake-services/wemake-python-styleguide
train
322
8e8881aff502df307d8a807089aeaf4a3d4a002a
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
234
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
b6987f2c5e9ae375155203aef7e01964d67048641f6271caed060b4c52aa0819
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)
233
8
wemake-services/wemake-python-styleguide
train
322
8e8881aff502df307d8a807089aeaf4a3d4a002a
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
262
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
95a92191377979dac4e9299d9f02d6cf72d9fdc190541749bea3ff0b6886bdc3
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)
261
4
wemake-services/wemake-python-styleguide
train
322
8e8881aff502df307d8a807089aeaf4a3d4a002a
train
tests/test_visitors/test_ast/test_builtins/test_strings/test_alphabet_string.py
val
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_builtins/test_strings/test_alphabet_string.py
36
4
assert_*
test_alphabet_as_string_violation
# -*- coding: utf-8 -*- import string import pytest from wemake_python_styleguide.violations.best_practices import ( StringConstantRedefinedViolation, ) from wemake_python_styleguide.visitors.ast.builtins import WrongStringVisitor @pytest.mark.parametrize('code', [ # We don't test all values here, because ...
[StringConstantRedefinedViolation])
added
a778d5aacf38baea536a9d855805bff413f95ebb898117e26e88f82eb5ed98f1
assert_*|test_alphabet_as_string_violation|# -*- coding: utf-8 -*- import string import pytest from wemake_python_styleguide.violations.best_practices import ( StringConstantRedefinedViolation, ) from wemake_python_styleguide.visitors.ast.builtins import WrongStringVisitor @pytest.mark.parametrize('code', [ # We don't ...
null
null
null
wemake-services/wemake-python-styleguide
train
323
449510334af0ddf68b8aa1e6b2ff78ce71070fa2
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
231
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
aad1768c2af8702856543e00b9f801bc0381382eaf86d1a025a9b32d950877a0
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
230
8
wemake-services/wemake-python-styleguide
train
323
449510334af0ddf68b8aa1e6b2ff78ce71070fa2
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
234
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
7a91008c350c894d7e77fd46c18664a81b7d77d6ad095df1a6fa3d25747fc750
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
233
8
wemake-services/wemake-python-styleguide
train
323
449510334af0ddf68b8aa1e6b2ff78ce71070fa2
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
235
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
9ef88b5755560e8041f3d06d652c91775af9d761b416f288f07a64131a1b6663
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)
234
8
wemake-services/wemake-python-styleguide
train
323
449510334af0ddf68b8aa1e6b2ff78ce71070fa2
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
263
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
4ab81dba506c47c814968bd45bbb48f209a1b8986e33c980420714e9015cb882
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)
262
4
wemake-services/wemake-python-styleguide
train
323
449510334af0ddf68b8aa1e6b2ff78ce71070fa2
train
tests/test_visitors/test_ast/test_functions/test_unnecessary_literals.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_functions/test_unnecessary_literals.py
31
4
assert_*
test_unnecessary_literals
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.constants import LITERALS_BLACKLIST from wemake_python_styleguide.violations.consistency import ( UnnecessaryLiteralsViolation, ) from wemake_python_styleguide.visitors.ast.functions import ( UnnecessaryLiteralsVisitor, ) regular_call_withou...
[UnnecessaryLiteralsViolation])
added
37d3f61ddaab8e44fbd92c2663f68bf59348ee618a69a2d295773b35064fe0a8
assert_*|test_unnecessary_literals|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.constants import LITERALS_BLACKLIST from wemake_python_styleguide.violations.consistency import ( UnnecessaryLiteralsViolation, ) from wemake_python_styleguide.visitors.ast.functions import ( UnnecessaryLiteralsVisito...
null
null
null
wemake-services/wemake-python-styleguide
train
324
04ced26064668e2c70ea2440dc50bab63603d606
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
232
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
27ed1c47fd491b737d129aafbef158b2bac19eef6f301f13ba44c655df38e954
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
231
8
wemake-services/wemake-python-styleguide
train
324
04ced26064668e2c70ea2440dc50bab63603d606
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
235
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
bf37484f456cd51f259574c22ab57d7127f95ce8855dd934d943e42e12f675ca
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
234
8
wemake-services/wemake-python-styleguide
train
324
04ced26064668e2c70ea2440dc50bab63603d606
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
236
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
a65504b24017a32def0313e871c79a9e463104c79eaeed9f4294411becb20b5b
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)
235
8
wemake-services/wemake-python-styleguide
train
324
04ced26064668e2c70ea2440dc50bab63603d606
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
264
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
6bf0a1d3d05c39c662081eaaacad00c6518e771f06a99bde5486b0c38ab5be9b
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)
263
4
wemake-services/wemake-python-styleguide
train
324
04ced26064668e2c70ea2440dc50bab63603d606
train
tests/test_visitors/test_ast/test_functions/test_super_call.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_functions/test_super_call.py
109
4
assert_*
test_wrong_super_call
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.oop import ( WrongSuperCallAccessViolation, WrongSuperCallViolation, ) from wemake_python_styleguide.visitors.ast.functions import ( WrongFunctionCallVisitor, ) # Template for super call with method and property tests super_c...
[WrongSuperCallViolation])
added
31e24a05e9372f38996e197a131eb1a2f5a06f189f8ac447ae2783e7de04d3a5
assert_*|test_wrong_super_call|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.oop import ( WrongSuperCallAccessViolation, WrongSuperCallViolation, ) from wemake_python_styleguide.visitors.ast.functions import ( WrongFunctionCallVisitor, ) # Template for super call with method and propert...
null
null
null
wemake-services/wemake-python-styleguide
train
324
04ced26064668e2c70ea2440dc50bab63603d606
train
tests/test_visitors/test_ast/test_functions/test_super_call.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_functions/test_super_call.py
129
4
assert_*
test_double_wrong_super_call
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.oop import ( WrongSuperCallAccessViolation, WrongSuperCallViolation, ) from wemake_python_styleguide.visitors.ast.functions import ( WrongFunctionCallVisitor, ) # Template for super call with method and property tests super_c...
[ WrongSuperCallViolation, WrongSuperCallViolation, ])
added
8b3b41fb8aeeb699617964f0f61acf827289494504cd879cb7ef2330f3339872
assert_*|test_double_wrong_super_call|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.oop import ( WrongSuperCallAccessViolation, WrongSuperCallViolation, ) from wemake_python_styleguide.visitors.ast.functions import ( WrongFunctionCallVisitor, ) # Template for super call with method and ...
null
null
null
wemake-services/wemake-python-styleguide
train
324
04ced26064668e2c70ea2440dc50bab63603d606
train
tests/test_visitors/test_ast/test_functions/test_super_call.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_functions/test_super_call.py
160
4
assert_*
test_wrong_access_super_call_with_no_args
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.oop import ( WrongSuperCallAccessViolation, WrongSuperCallViolation, ) from wemake_python_styleguide.visitors.ast.functions import ( WrongFunctionCallVisitor, ) # Template for super call with method and property tests super_c...
[ WrongSuperCallAccessViolation, ])
added
68482806a2e483914b34b6cee3b0b57f8443905138afc8e8076275515917890a
assert_*|test_wrong_access_super_call_with_no_args|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.oop import ( WrongSuperCallAccessViolation, WrongSuperCallViolation, ) from wemake_python_styleguide.visitors.ast.functions import ( WrongFunctionCallVisitor, ) # Template for super call wit...
null
null
null