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
345
025f932751f6c5194b2ad39bceee77770beb8da0
train
tests/test_visitors/test_ast/test_conditions/test_same_element.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_conditions/test_same_element.py
74
4
assert_*
test_duplicate_element
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( SameElementsInConditionViolation, ) from wemake_python_styleguide.visitors.ast.conditions import ( BooleanConditionVisitor, ) @pytest.mark.parametrize('code', [ 'some or other', 'other and some', ...
[SameElementsInConditionViolation])
added
d2bfa1cf94caf6ffa36f4a9b8a5b6bf5eeac2e8489c5f36b165cd867be2fe685
assert_*|test_duplicate_element|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( SameElementsInConditionViolation, ) from wemake_python_styleguide.visitors.ast.conditions import ( BooleanConditionVisitor, ) @pytest.mark.parametrize('code', [ 'some or other', 'other ...
null
null
null
wemake-services/wemake-python-styleguide
train
345
025f932751f6c5194b2ad39bceee77770beb8da0
train
tests/test_visitors/test_ast/test_conditions/test_same_element.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_conditions/test_same_element.py
93
4
assert_*
test_duplicate_element_and_ternary
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( SameElementsInConditionViolation, ) from wemake_python_styleguide.visitors.ast.conditions import ( BooleanConditionVisitor, ) @pytest.mark.parametrize('code', [ 'some or other', 'other and some', ...
[SameElementsInConditionViolation])
added
15acdc33ebfdc00f3f5280ec6fd637eba9e4e82ba633f7286e104679bbd54590
assert_*|test_duplicate_element_and_ternary|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( SameElementsInConditionViolation, ) from wemake_python_styleguide.visitors.ast.conditions import ( BooleanConditionVisitor, ) @pytest.mark.parametrize('code', [ 'some or oth...
null
null
null
wemake-services/wemake-python-styleguide
train
346
81d6eb792e6f0764c6ee0af9b100b20dab5f189d
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
246
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
476b4a630b80a7ccba2434c5d817ecfd7359a8197ca7fd0fbdd01fb81d85028a
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
245
8
wemake-services/wemake-python-styleguide
train
346
81d6eb792e6f0764c6ee0af9b100b20dab5f189d
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
250
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
8bce54dff66550d28631ab92e9900043bdbebe91abbd0137fdfc85639fcc6558
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)
249
8
wemake-services/wemake-python-styleguide
train
346
81d6eb792e6f0764c6ee0af9b100b20dab5f189d
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
278
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
2094b0d945f81887590367a5c49c1b04ea64c1694d7ae12ba18a04290b40acc7
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)
277
4
wemake-services/wemake-python-styleguide
train
346
81d6eb792e6f0764c6ee0af9b100b20dab5f189d
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
308
4
assert
test_noqa_fixture_disabled_no_control
# -*- 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_controlled_violations)
modified
d3736f041629703e93022a11f94b22963a4fffe4ef59ec7d35a88b96b034b7fe
assert|test_noqa_fixture_disabled_no_control|# -*- 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: ...
len(all_controlled_violations)
307
4
wemake-services/wemake-python-styleguide
train
346
81d6eb792e6f0764c6ee0af9b100b20dab5f189d
train
tests/test_visitors/test_ast/test_keywords/test_generator_keywords/test_yield_from_type.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_keywords/test_generator_keywords/test_yield_from_type.py
41
4
assert_*
test_yield_from_incorrect_type
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.consistency import ( IncorrectYieldFromTargetViolation, ) from wemake_python_styleguide.visitors.ast.keywords import ( GeneratorKeywordsVisitor, ) yield_from_template = """ def wrapper(): yield from {0} """ @pytest.mark.para...
[IncorrectYieldFromTargetViolation])
added
6e9785734026f38e00e449ddb6c0645b6f5a902c0bc559fb7f0370ead2c9ff5e
assert_*|test_yield_from_incorrect_type|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.consistency import ( IncorrectYieldFromTargetViolation, ) from wemake_python_styleguide.visitors.ast.keywords import ( GeneratorKeywordsVisitor, ) yield_from_template = """ def wrapper(): yield from {0...
null
null
null
wemake-services/wemake-python-styleguide
train
347
93a949c0a6e9db55f89d6570b5f015a0cb4a357b
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
250
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
b8dc20906e8d39a742240f817d099354e4719758f5adc0073d6d6fa68c8b84eb
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
249
8
wemake-services/wemake-python-styleguide
train
347
93a949c0a6e9db55f89d6570b5f015a0cb4a357b
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
251
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
5cf0cffef3be303f3b935693a0a6fd1dd8e4df3fc2750959c8470eae97724829
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)
250
8
wemake-services/wemake-python-styleguide
train
347
93a949c0a6e9db55f89d6570b5f015a0cb4a357b
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
279
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
367b1597af2e07c0758dd0fd00873b747aa6ccd161051f30a6028a46e3d6cd12
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)
278
4
wemake-services/wemake-python-styleguide
train
347
93a949c0a6e9db55f89d6570b5f015a0cb4a357b
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
309
4
assert
test_noqa_fixture_disabled_no_control
# -*- 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_controlled_violations)
modified
6fd344e93c80c6ec18e1c370ea7a4fbf4319d62e4ed6d33b90dc2ac9a1105161
assert|test_noqa_fixture_disabled_no_control|# -*- 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: ...
len(all_controlled_violations)
308
4
wemake-services/wemake-python-styleguide
train
347
93a949c0a6e9db55f89d6570b5f015a0cb4a357b
train
tests/test_visitors/test_ast/test_keywords/test_generator_keywords/test_consecutive_yields.py
val
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_keywords/test_generator_keywords/test_consecutive_yields.py
144
4
assert_*
test_yield_inccorect
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.consistency import ( ConsecutiveYieldsViolation, ) from wemake_python_styleguide.visitors.ast.keywords import ( GeneratorKeywordsVisitor, ) # Correct: simple_yield = """ def some(): yield 1 """ conditional_yield1 = """ def s...
[ConsecutiveYieldsViolation])
added
cdc6405620a6f82e4b294eaf856749a3ac506f15bc53de82ab06839b8ae92f7b
assert_*|test_yield_inccorect|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.consistency import ( ConsecutiveYieldsViolation, ) from wemake_python_styleguide.visitors.ast.keywords import ( GeneratorKeywordsVisitor, ) # Correct: simple_yield = """ def some(): yield 1 """ conditional_yield...
null
null
null
wemake-services/wemake-python-styleguide
train
348
ab557f342d2fd83a97e18ca1e6cacb2bb8bf0744
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
251
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
0236458e68d3024b27baa00586f5e89767163f8bfd90a7510cde51866a5ad9d3
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
250
8
wemake-services/wemake-python-styleguide
train
348
ab557f342d2fd83a97e18ca1e6cacb2bb8bf0744
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
252
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
976ea5b3e063a44cb21d037e2dd10c449058ef4932cfac7993a2dbbc44c2b860
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)
251
8
wemake-services/wemake-python-styleguide
train
348
ab557f342d2fd83a97e18ca1e6cacb2bb8bf0744
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
280
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
faefe6948165aa3ef028bf09c27311814eb2037f3d5f3432b7d29c1f5d7d4d12
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)
279
4
wemake-services/wemake-python-styleguide
train
348
ab557f342d2fd83a97e18ca1e6cacb2bb8bf0744
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
310
4
assert
test_noqa_fixture_disabled_no_control
# -*- 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_controlled_violations)
modified
ebc8ce9c61501b16b57b2fc69eb53a1d3a7b47852fdb95c19fcc658e88648497
assert|test_noqa_fixture_disabled_no_control|# -*- 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: ...
len(all_controlled_violations)
309
4
wemake-services/wemake-python-styleguide
train
348
ab557f342d2fd83a97e18ca1e6cacb2bb8bf0744
train
tests/test_visitors/test_ast/test_keywords/test_generator_keywords/test_consecutive_yields.py
val
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_keywords/test_generator_keywords/test_consecutive_yields.py
146
4
assert_*
test_yield_inccorect
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.consistency import ( ConsecutiveYieldsViolation, ) from wemake_python_styleguide.visitors.ast.keywords import ( GeneratorKeywordsVisitor, ) # Correct: simple_yield = """ def some(): yield 1 """ conditional_yield1 = """ def s...
[ConsecutiveYieldsViolation])
modified
603d72383117b76d31e8280b67f1f744659d597a4b963e128175b796923c035a
assert_*|test_yield_inccorect|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.consistency import ( ConsecutiveYieldsViolation, ) from wemake_python_styleguide.visitors.ast.keywords import ( GeneratorKeywordsVisitor, ) # Correct: simple_yield = """ def some(): yield 1 """ conditional_yield...
[ConsecutiveYieldsViolation])
144
4
wemake-services/wemake-python-styleguide
train
348
ab557f342d2fd83a97e18ca1e6cacb2bb8bf0744
train
tests/test_visitors/test_ast/test_loops/test_sync_loops/test_implicit_items.py
test
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_loops/test_sync_loops/test_implicit_items.py
59
4
assert_*
test_implicit_forloop_items
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.refactoring import ( ImplicitItemsIteratorViolation, ) from wemake_python_styleguide.visitors.ast.loops import SyncForLoopVisitor for_loop_template1 = """ for {0} in {1}: {2} """ for_loop_template2 = """ for {0} in {1}: if so...
[ImplicitItemsIteratorViolation])
added
54a46c9b31d990410766aa1a78cb905add02f7871b085200a4a273f91baead07
assert_*|test_implicit_forloop_items|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.refactoring import ( ImplicitItemsIteratorViolation, ) from wemake_python_styleguide.visitors.ast.loops import SyncForLoopVisitor for_loop_template1 = """ for {0} in {1}: {2} """ for_loop_template2 = """ ...
null
null
null
wemake-services/wemake-python-styleguide
train
349
0192428087e768d08c432f1b8f1dc5746d2fbb64
train
tests/test_visitors/test_ast/test_keywords/test_generator_keywords/test_consecutive_yields.py
val
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_keywords/test_generator_keywords/test_consecutive_yields.py
163
4
assert_*
test_yield_inccorect
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.consistency import ( ConsecutiveYieldsViolation, ) from wemake_python_styleguide.visitors.ast.keywords import ( GeneratorKeywordsVisitor, ) # Correct: simple_yield = """ def some(): yield 1 """ conditional_yield1 = """ def s...
[ConsecutiveYieldsViolation])
added
fa31cc55cb68caf80f97b40c5f1e19d9fed5bc08cc94259834bf13a334165512
assert_*|test_yield_inccorect|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.consistency import ( ConsecutiveYieldsViolation, ) from wemake_python_styleguide.visitors.ast.keywords import ( GeneratorKeywordsVisitor, ) # Correct: simple_yield = """ def some(): yield 1 """ conditional_yield...
null
null
null
wemake-services/wemake-python-styleguide
train
350
acd9de9b2ac006be5b4b5361d2bcdb8942eacfc4
train
tests/test_visitors/test_ast/test_loops/test_sync_loops/test_implicit_items.py
test
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_loops/test_sync_loops/test_implicit_items.py
63
4
assert_*
test_implicit_forloop_items
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.refactoring import ( ImplicitItemsIteratorViolation, ) from wemake_python_styleguide.visitors.ast.loops import SyncForLoopVisitor for_loop_template1 = """ for {0} in {1}: {2} """ for_loop_template2 = """ for {0} in {1}: if so...
[ImplicitItemsIteratorViolation])
added
d5022baa2e774fd07fd24bb629389f0b91e7004ed083657207314745dd67de8b
assert_*|test_implicit_forloop_items|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.refactoring import ( ImplicitItemsIteratorViolation, ) from wemake_python_styleguide.visitors.ast.loops import SyncForLoopVisitor for_loop_template1 = """ for {0} in {1}: {2} """ for_loop_template2 = """ ...
null
null
null
wemake-services/wemake-python-styleguide
train
351
5fde5b8658c5b0db26c4fda955e7ffbd74c44477
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
252
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
d4016890f010947a0268982bdda3892948e918f2c3483cbf4c522230f90bc94f
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
251
8
wemake-services/wemake-python-styleguide
train
351
5fde5b8658c5b0db26c4fda955e7ffbd74c44477
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
253
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
22789e84b76be32802629909467b3849c8c4e669fcb8ffe5dac2e7c451e31c01
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)
252
8
wemake-services/wemake-python-styleguide
train
351
5fde5b8658c5b0db26c4fda955e7ffbd74c44477
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
281
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
e09c2b705b6d0b48e2be642f7b59d2f9620922d001b01ba2734ddf1fcc5a537c
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)
280
4
wemake-services/wemake-python-styleguide
train
351
5fde5b8658c5b0db26c4fda955e7ffbd74c44477
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
311
4
assert
test_noqa_fixture_disabled_no_control
# -*- 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_controlled_violations)
modified
64d7c6cda3a8f8b52f43d9251acecdba37d0cf6de7b9ed3515f71ddd1bdbed7d
assert|test_noqa_fixture_disabled_no_control|# -*- 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: ...
len(all_controlled_violations)
310
4
wemake-services/wemake-python-styleguide
train
351
5fde5b8658c5b0db26c4fda955e7ffbd74c44477
train
tests/test_visitors/test_ast/test_loops/test_sync_loops/test_implicit_items.py
test
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_loops/test_sync_loops/test_implicit_items.py
65
4
assert_*
test_implicit_forloop_items
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.refactoring import ( ImplicitItemsIteratorViolation, ) from wemake_python_styleguide.visitors.ast.loops import SyncForLoopVisitor for_loop_template1 = """ for {0} in {1}: {2} """ for_loop_template2 = """ for {0} in {1}: if so...
[ImplicitItemsIteratorViolation])
modified
3e3037484a9cc00788686813b3ce03d3c285a5be1c3496ca440649301943de16
assert_*|test_implicit_forloop_items|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.refactoring import ( ImplicitItemsIteratorViolation, ) from wemake_python_styleguide.visitors.ast.loops import SyncForLoopVisitor for_loop_template1 = """ for {0} in {1}: {2} """ for_loop_template2 = """ ...
[ImplicitItemsIteratorViolation])
63
4
wemake-services/wemake-python-styleguide
train
351
5fde5b8658c5b0db26c4fda955e7ffbd74c44477
train
tests/test_visitors/test_ast/test_subscripts/test_implicit_get.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_subscripts/test_implicit_get.py
81
4
assert_*
test_implicit_dict_get
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.refactoring import ( ImplicitDictGetViolation, ) from wemake_python_styleguide.visitors.ast.subscripts import ( ImplicitDictGetVisitor, ) if_template1 = """ if {0}: {1} """ if_template2 = """ if {0}: {1} else: ... """...
[ImplicitDictGetViolation])
added
64bd826643b309e9ecc5a97546bc02e4a930de1f3e575d6839165717796bc1ad
assert_*|test_implicit_dict_get|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.refactoring import ( ImplicitDictGetViolation, ) from wemake_python_styleguide.visitors.ast.subscripts import ( ImplicitDictGetVisitor, ) if_template1 = """ if {0}: {1} """ if_template2 = """ if {0}: {1} else:...
null
null
null
wemake-services/wemake-python-styleguide
train
352
661f80bb594d7a76982fe5bab6ed4e42bca313c1
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
253
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
5b69175202c4cfd237307476191e69db0fcde57ebcded7347d76e054a6a84886
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
252
8
wemake-services/wemake-python-styleguide
train
352
661f80bb594d7a76982fe5bab6ed4e42bca313c1
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
282
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
4e5ae71493fc55af753cdb39d40b29896efbdd2961de6f64cc8e27b21f6ac2ab
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)
281
4
wemake-services/wemake-python-styleguide
train
352
661f80bb594d7a76982fe5bab6ed4e42bca313c1
train
tests/test_visitors/test_ast/test_builtins/test_collection_hashes/test_float_keys.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_builtins/test_collection_hashes/test_float_keys.py
42
4
assert_*
test_dict_with_float_key
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( FloatKeyViolation, ) from wemake_python_styleguide.visitors.ast.builtins import ( WrongCollectionVisitor, ) dict_template1 = '{{ {0}: 1 }}' dict_template2 = '{{ {0}: {0} }}' dict_template3 = '{{ {0}: 1, **k...
[FloatKeyViolation])
added
039d671731dc9d597a564b3c2019547bb91ae04dc665ef67c3d5c01c54d5383c
assert_*|test_dict_with_float_key|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( FloatKeyViolation, ) from wemake_python_styleguide.visitors.ast.builtins import ( WrongCollectionVisitor, ) dict_template1 = '{{ {0}: 1 }}' dict_template2 = '{{ {0}: {0} }}' dict_temp...
null
null
null
wemake-services/wemake-python-styleguide
train
352
661f80bb594d7a76982fe5bab6ed4e42bca313c1
train
tests/test_visitors/test_ast/test_builtins/test_collection_hashes/test_hash_elements.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_builtins/test_collection_hashes/test_hash_elements.py
146
4
assert_*
test_set_with_pure_duplicate
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( NonUniqueItemsInHashViolation, ) from wemake_python_styleguide.visitors.ast.builtins import ( WrongCollectionVisitor, ) set_literal_template = '{{{0}, {1}}}' nested_set_template = """ {{ *{{ {0}...
[NonUniqueItemsInHashViolation])
modified
47bc9d8a2d189cb6dca794dbb47bbac132842e52c98580166cd870269addf64f
assert_*|test_set_with_pure_duplicate|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( NonUniqueItemsInHashViolation, ) from wemake_python_styleguide.visitors.ast.builtins import ( WrongCollectionVisitor, ) set_literal_template = '{{{0}, {1}}}' nested_set_template =...
[NonUniqueItemsInHashViolation])
147
4
wemake-services/wemake-python-styleguide
train
352
661f80bb594d7a76982fe5bab6ed4e42bca313c1
train
tests/test_visitors/test_ast/test_builtins/test_collection_hashes/test_hash_elements.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_builtins/test_collection_hashes/test_hash_elements.py
175
4
assert_*
test_set_with_similar_values
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( NonUniqueItemsInHashViolation, ) from wemake_python_styleguide.visitors.ast.builtins import ( WrongCollectionVisitor, ) set_literal_template = '{{{0}, {1}}}' nested_set_template = """ {{ *{{ {0}...
[NonUniqueItemsInHashViolation])
modified
dcbe63fef4d380b04fa4d2d3e5c896b659968fb2a2ec1137a46df63b82e0ff3e
assert_*|test_set_with_similar_values|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( NonUniqueItemsInHashViolation, ) from wemake_python_styleguide.visitors.ast.builtins import ( WrongCollectionVisitor, ) set_literal_template = '{{{0}, {1}}}' nested_set_template =...
[NonUniqueItemsInHashViolation])
176
4
wemake-services/wemake-python-styleguide
train
352
661f80bb594d7a76982fe5bab6ed4e42bca313c1
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
193
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
b3641e314475d9ee960ac07a8eaa423cff6ce65abdd1906196216c7237991d65
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
352
661f80bb594d7a76982fe5bab6ed4e42bca313c1
train
tests/test_visitors/test_ast/test_subscripts/test_float_key_usage.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_subscripts/test_float_key_usage.py
30
4
assert_*
test_float_key_usage
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( FloatKeyViolation, ) from wemake_python_styleguide.visitors.ast.subscripts import CorrectKeyVisitor usage_template = 'some_dict[{0}]' @pytest.mark.parametrize('expression', [ '1.0', '-0.0', '+3.5'...
[FloatKeyViolation])
added
7d1333f5ab7111e86fb7f1a03814bcbb0fb945e6e4f9ba10bafdc283640ce2b5
assert_*|test_float_key_usage|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( FloatKeyViolation, ) from wemake_python_styleguide.visitors.ast.subscripts import CorrectKeyVisitor usage_template = 'some_dict[{0}]' @pytest.mark.parametrize('expression', [ '1.0', '-0.0...
null
null
null
wemake-services/wemake-python-styleguide
train
352
661f80bb594d7a76982fe5bab6ed4e42bca313c1
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])
modified
f3515bada59aa60b2a139b3b2560074ea7fe6a9f44e46b485abc04f893aa7107
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:...
[RedundantSubscriptViolation])
34
4
wemake-services/wemake-python-styleguide
train
354
ab742aebab79b34aa163a6c3e73a31de7edf8dc7
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
254
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
21b72fc9036b16dabb2de443181a0c77ceb65ccef373c12df48a1b2059e242ce
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
253
8
wemake-services/wemake-python-styleguide
train
354
ab742aebab79b34aa163a6c3e73a31de7edf8dc7
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
255
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
b92556878655667be487467deb72b116e62f02f3ed6900526408ceb5ecafacaa
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)
254
8
wemake-services/wemake-python-styleguide
train
354
ab742aebab79b34aa163a6c3e73a31de7edf8dc7
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
283
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
e56df7ebc18b78d917b55cd1866343e9d2935cd5f7ccbcb49583decd013664a9
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)
282
4
wemake-services/wemake-python-styleguide
train
354
ab742aebab79b34aa163a6c3e73a31de7edf8dc7
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
313
4
assert
test_noqa_fixture_disabled_no_control
# -*- 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_controlled_violations)
modified
d6ba11c906401ecbef577bf18af8e36b1b889088d8eff743d787792d385ded3b
assert|test_noqa_fixture_disabled_no_control|# -*- 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: ...
len(all_controlled_violations)
312
4
wemake-services/wemake-python-styleguide
train
354
ab742aebab79b34aa163a6c3e73a31de7edf8dc7
train
tests/test_visitors/test_ast/test_subscripts/test_implicit_negative_index.py
test
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_subscripts/test_implicit_negative_index.py
33
4
assert_*
test_implicit_negative_index
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.refactoring import ( ImplicitNegativeIndexViolation, ) from wemake_python_styleguide.visitors.ast.subscripts import CorrectKeyVisitor @pytest.mark.parametrize('code', [ 'some_list[len(some_list) - 1]', 'some_list[len(some_lis...
[ImplicitNegativeIndexViolation])
added
d7f31ebfc4105d505b19a2c138f0ecbde2c4d772ce8d8462e45155cce5f00259
assert_*|test_implicit_negative_index|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.refactoring import ( ImplicitNegativeIndexViolation, ) from wemake_python_styleguide.visitors.ast.subscripts import CorrectKeyVisitor @pytest.mark.parametrize('code', [ 'some_list[len(some_list) - 1]', '...
null
null
null
wemake-services/wemake-python-styleguide
train
355
e86a12cf396cd537409ec0b46e9a88fda2aa95c4
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
252
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
0fd928cabc641d00b2f4c9dc74b12efbae22b87965589c271ff934cb94a51929
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
251
8
wemake-services/wemake-python-styleguide
train
355
e86a12cf396cd537409ec0b46e9a88fda2aa95c4
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
255
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
bffc2c3e48b2666c5b7e11f41a3cc7ccfa3c77b983cddcd131c4ca5f558be58a
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
254
8
wemake-services/wemake-python-styleguide
train
355
e86a12cf396cd537409ec0b46e9a88fda2aa95c4
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
284
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
d045638cf15ebc6ed650dc86eef7dbc2f017b78ac5d7d1133030917ff4cbddd1
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)
283
4
wemake-services/wemake-python-styleguide
train
355
e86a12cf396cd537409ec0b46e9a88fda2aa95c4
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
314
4
assert
test_noqa_fixture_disabled_no_control
# -*- 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_controlled_violations)
modified
c2a899023acb4fd11bec3e45cf92aa5f7de320f1b33456998da90155c863727f
assert|test_noqa_fixture_disabled_no_control|# -*- 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: ...
len(all_controlled_violations)
313
4
wemake-services/wemake-python-styleguide
train
355
e86a12cf396cd537409ec0b46e9a88fda2aa95c4
train
tests/test_visitors/test_ast/test_complexity/test_call_chains/test_call_chains.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_complexity/test_call_chains/test_call_chains.py
65
4
assert_*
test_incorrect_cases
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.complexity import ( TooLongCallChainViolation, ) from wemake_python_styleguide.visitors.ast.complexity.calls import ( CallChainsVisitor, ) # incorrect expression deep_call_chain = 'foo(a)(b)(c)(d)' # correct expression call_chain...
[TooLongCallChainViolation])
added
dfe3c4777de4876164e14200c061f8f775ae32fa83c7194f786e78b1eb26b0a9
assert_*|test_incorrect_cases|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.complexity import ( TooLongCallChainViolation, ) from wemake_python_styleguide.visitors.ast.complexity.calls import ( CallChainsVisitor, ) # incorrect expression deep_call_chain = 'foo(a)(b)(c)(d)' # correct exp...
null
null
null
wemake-services/wemake-python-styleguide
train
355
e86a12cf396cd537409ec0b46e9a88fda2aa95c4
train
tests/test_visitors/test_ast/test_complexity/test_call_chains/test_call_chains.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_complexity/test_call_chains/test_call_chains.py
66
4
assert_*
test_incorrect_cases
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.complexity import ( TooLongCallChainViolation, ) from wemake_python_styleguide.visitors.ast.complexity.calls import ( CallChainsVisitor, ) # incorrect expression deep_call_chain = 'foo(a)(b)(c)(d)' # correct expression call_chain...
str(call_level))
added
4db7ff995e94103b352e4f1489a2e7395f8f17aab9ae3a7fe75731b6cd2b5537
assert_*|test_incorrect_cases|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.complexity import ( TooLongCallChainViolation, ) from wemake_python_styleguide.visitors.ast.complexity.calls import ( CallChainsVisitor, ) # incorrect expression deep_call_chain = 'foo(a)(b)(c)(d)' # correct exp...
null
null
null
wemake-services/wemake-python-styleguide
train
356
85f5eda40ae3c45b8e2c8846716a3c6386f871fd
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
256
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
5179d7494796416d4f63c5c941f82591403e84028bd87b1163226d3e02ec1061
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
255
8
wemake-services/wemake-python-styleguide
train
356
85f5eda40ae3c45b8e2c8846716a3c6386f871fd
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
257
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
6de9c5c9316d7a7e56b686fcd1914a2df72942be9047afaf15681c8f119efa7a
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)
256
8
wemake-services/wemake-python-styleguide
train
356
85f5eda40ae3c45b8e2c8846716a3c6386f871fd
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
285
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
edcdc1a9c8525ea152f5482e9508d881bbaaf829125b5de04b0ced3be8278474
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)
284
4
wemake-services/wemake-python-styleguide
train
356
85f5eda40ae3c45b8e2c8846716a3c6386f871fd
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
315
4
assert
test_noqa_fixture_disabled_no_control
# -*- 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_controlled_violations)
modified
c7f82dd217541d8175558b0f39e382d5e86fbecb232c9342a633f4880cee6536
assert|test_noqa_fixture_disabled_no_control|# -*- 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: ...
len(all_controlled_violations)
314
4
wemake-services/wemake-python-styleguide
train
356
85f5eda40ae3c45b8e2c8846716a3c6386f871fd
train
tests/test_visitors/test_tokenize/test_statements/test_bracket_empty_line.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_tokenize/test_statements/test_bracket_empty_line.py
180
4
assert_*
test_wrong_blank_lines
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.consistency import ( BracketBlankLineViolation, ) from wemake_python_styleguide.visitors.tokenize.statements import ( BracketLocationVisitor, ) # Correct: correct_empty_module = '' correct_single_line = 'arr = []' correct_single_...
[BracketBlankLineViolation])
added
934464b7c8d75b6f3d7059b7c7302928f25833c71b9d402b19fcee392fdad931
assert_*|test_wrong_blank_lines|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.consistency import ( BracketBlankLineViolation, ) from wemake_python_styleguide.visitors.tokenize.statements import ( BracketLocationVisitor, ) # Correct: correct_empty_module = '' correct_single_line = 'arr =...
null
null
null
wemake-services/wemake-python-styleguide
train
358
945017df234adb3366e4f0f7f2637925d2ea8253
train
tests/test_visitors/test_ast/test_imports/test_vague_imports.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_imports/test_vague_imports.py
41
4
assert_*
test_vague_method_name_import
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide import constants from wemake_python_styleguide.violations.consistency import ( VagueImportViolation, ) from wemake_python_styleguide.visitors.ast.imports import WrongImportVisitor import_template = 'from mod import {0}' alias_import_template = '...
[VagueImportViolation])
added
b5ea6a0e7131e75ec410e04dbd63c925a54d9ea7435dbb3620d8b066b85b147f
assert_*|test_vague_method_name_import|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide import constants from wemake_python_styleguide.violations.consistency import ( VagueImportViolation, ) from wemake_python_styleguide.visitors.ast.imports import WrongImportVisitor import_template = 'from mod impor...
null
null
null
wemake-services/wemake-python-styleguide
train
359
2df1fb231ed32d8ad9cd813a0d277a74eb4f4e78
train
tests/test_visitors/test_ast/test_conditions/test_negated_conditions.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_conditions/test_negated_conditions.py
109
4
assert_*
test_wrong_negated_complex_conditions
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.refactoring import ( NegatedConditionsViolation, ) from wemake_python_styleguide.visitors.ast.conditions import IfStatementVisitor simple_conditions = """ if {0}: ... """ complex_elif_conditions = """ if {0}: ... elif ...: ...
[NegatedConditionsViolation])
added
2c3ae706467f1f385891eda0ddee033262519b5d9626966a3d296ce53c832358
assert_*|test_wrong_negated_complex_conditions|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.refactoring import ( NegatedConditionsViolation, ) from wemake_python_styleguide.visitors.ast.conditions import IfStatementVisitor simple_conditions = """ if {0}: ... """ complex_elif_conditions...
null
null
null
wemake-services/wemake-python-styleguide
train
360
fd4ce2e3d9aa55cf7b3e3cce39341c4784ab8f5c
train
tests/test_visitors/test_ast/test_loops/test_sync_loops/test_implicit_items.py
test
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_loops/test_sync_loops/test_implicit_items.py
66
4
assert_*
test_implicit_forloop_items
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.refactoring import ( ImplicitItemsIteratorViolation, ) from wemake_python_styleguide.visitors.ast.loops import SyncForLoopVisitor for_loop_template1 = """ for {0} in {1}: {2} """ for_loop_template2 = """ for {0} in {1}: if so...
[ImplicitItemsIteratorViolation])
modified
c118a6ba6da1ad91f54247fbcecea8f5e31d1da56c4d66fb796430f0db0f2244
assert_*|test_implicit_forloop_items|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.refactoring import ( ImplicitItemsIteratorViolation, ) from wemake_python_styleguide.visitors.ast.loops import SyncForLoopVisitor for_loop_template1 = """ for {0} in {1}: {2} """ for_loop_template2 = """ ...
[ImplicitItemsIteratorViolation])
65
4
wemake-services/wemake-python-styleguide
train
361
16d2f789dd0e4471f085405fa11b6089292a210a
train
tests/test_visitors/test_ast/test_attributes/test_protected_attributes.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_attributes/test_protected_attributes.py
137
4
assert_*
test_protected_attribute_is_restricted
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.visitors.ast.attributes import ( ProtectedAttributeViolation, WrongAttributeVisitor, ) # Wrong: protected_attribute_assigned = 'some._protected = 1' protected_attribute_accessed = 'print(some._protected)' protected_method_called = 'some._pr...
[ProtectedAttributeViolation])
modified
2c1de95f6d634c9da06b3885cd6e91bf01e195b08634f5d516c997829d3e350d
assert_*|test_protected_attribute_is_restricted|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.visitors.ast.attributes import ( ProtectedAttributeViolation, WrongAttributeVisitor, ) # Wrong: protected_attribute_assigned = 'some._protected = 1' protected_attribute_accessed = 'print(some._protected)'...
[ProtectedAttributeViolation])
136
4
wemake-services/wemake-python-styleguide
train
361
16d2f789dd0e4471f085405fa11b6089292a210a
train
tests/test_visitors/test_ast/test_attributes/test_protected_attributes.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_attributes/test_protected_attributes.py
138
4
assert_*
test_protected_attribute_is_restricted
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.visitors.ast.attributes import ( ProtectedAttributeViolation, WrongAttributeVisitor, ) # Wrong: protected_attribute_assigned = 'some._protected = 1' protected_attribute_accessed = 'print(some._protected)' protected_method_called = 'some._pr...
'_protected')
modified
7086f7e86b3e1539ff8c9aa59261f6f710217af3ab9c396decf693ea39018a79
assert_*|test_protected_attribute_is_restricted|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.visitors.ast.attributes import ( ProtectedAttributeViolation, WrongAttributeVisitor, ) # Wrong: protected_attribute_assigned = 'some._protected = 1' protected_attribute_accessed = 'print(some._protected)'...
'_protected')
137
4
wemake-services/wemake-python-styleguide
train
361
16d2f789dd0e4471f085405fa11b6089292a210a
train
tests/test_visitors/test_ast/test_keywords/test_keyword_condition.py
test
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_keywords/test_keyword_condition.py
64
4
assert_*
test_false_condition_keywords
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( WrongKeywordConditionViolation, ) from wemake_python_styleguide.visitors.ast.keywords import ( ConstantKeywordVisitor, ) while_template = """ while {0}: ... """ assert_template = 'assert {0}' assert_wi...
[WrongKeywordConditionViolation])
modified
df21b9ec95e13daadd4e4c51c17e22425b1bbe1ae724e25dd14bba568218f03d
assert_*|test_false_condition_keywords|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( WrongKeywordConditionViolation, ) from wemake_python_styleguide.visitors.ast.keywords import ( ConstantKeywordVisitor, ) while_template = """ while {0}: ... """ assert_template =...
[WrongKeywordConditionViolation])
65
4
wemake-services/wemake-python-styleguide
train
361
16d2f789dd0e4471f085405fa11b6089292a210a
train
tests/test_visitors/test_ast/test_keywords/test_keyword_condition.py
test
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_keywords/test_keyword_condition.py
87
4
assert_*
test_false_assert_condition_keywords
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( WrongKeywordConditionViolation, ) from wemake_python_styleguide.visitors.ast.keywords import ( ConstantKeywordVisitor, ) while_template = """ while {0}: ... """ assert_template = 'assert {0}' assert_wi...
[WrongKeywordConditionViolation])
modified
811e930b14a830b98443fb6b85f84385e2cef4b1573a9a0cf4f4c09bac110905
assert_*|test_false_assert_condition_keywords|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( WrongKeywordConditionViolation, ) from wemake_python_styleguide.visitors.ast.keywords import ( ConstantKeywordVisitor, ) while_template = """ while {0}: ... """ assert_tem...
[WrongKeywordConditionViolation])
88
4
wemake-services/wemake-python-styleguide
train
362
224c13bceccc719ee7220ba7669a8791d9e6a6e6
train
tests/test_checker/test_hypothesis.py
train
wemake-services/wemake-python-styleguide:tests/test_checker/test_hypothesis.py
71
8
assert
test_no_exceptions
# -*- coding: utf-8 -*- """ Integration test that our linter does not brake on different random programs. We generate thousands of them with the help of ``hypothesis`` and test that they are parsed and processed correctly. We cannot tell whether or not violations are correctly shown by a random input, but we can tel...
isinstance(violation[0], int)
added
264eaa941538c6b44814eace4e32ccfe6da8ae968963dc75e8fcdb6099e0ee95
assert|test_no_exceptions|# -*- coding: utf-8 -*- """ Integration test that our linter does not brake on different random programs. We generate thousands of them with the help of ``hypothesis`` and test that they are parsed and processed correctly. We cannot tell whether or not violations are correctly shown by a rando...
null
null
null
wemake-services/wemake-python-styleguide
train
362
224c13bceccc719ee7220ba7669a8791d9e6a6e6
train
tests/test_checker/test_hypothesis.py
train
wemake-services/wemake-python-styleguide:tests/test_checker/test_hypothesis.py
72
8
assert
test_no_exceptions
# -*- coding: utf-8 -*- """ Integration test that our linter does not brake on different random programs. We generate thousands of them with the help of ``hypothesis`` and test that they are parsed and processed correctly. We cannot tell whether or not violations are correctly shown by a random input, but we can tel...
isinstance(violation[1], int)
added
f08e5a98aefc295987e60b790c692f68a3a12f0b9bba6f517ceeb9805a745024
assert|test_no_exceptions|# -*- coding: utf-8 -*- """ Integration test that our linter does not brake on different random programs. We generate thousands of them with the help of ``hypothesis`` and test that they are parsed and processed correctly. We cannot tell whether or not violations are correctly shown by a rando...
null
null
null
wemake-services/wemake-python-styleguide
train
362
224c13bceccc719ee7220ba7669a8791d9e6a6e6
train
tests/test_checker/test_hypothesis.py
train
wemake-services/wemake-python-styleguide:tests/test_checker/test_hypothesis.py
73
8
assert
test_no_exceptions
# -*- coding: utf-8 -*- """ Integration test that our linter does not brake on different random programs. We generate thousands of them with the help of ``hypothesis`` and test that they are parsed and processed correctly. We cannot tell whether or not violations are correctly shown by a random input, but we can tel...
violation[2]
added
e108d01c41dd4a5f890b9efa602089a33a56a19d7077839d20ef572adbc22936
assert|test_no_exceptions|# -*- coding: utf-8 -*- """ Integration test that our linter does not brake on different random programs. We generate thousands of them with the help of ``hypothesis`` and test that they are parsed and processed correctly. We cannot tell whether or not violations are correctly shown by a rando...
null
null
null
wemake-services/wemake-python-styleguide
train
362
224c13bceccc719ee7220ba7669a8791d9e6a6e6
train
tests/test_checker/test_hypothesis.py
train
wemake-services/wemake-python-styleguide:tests/test_checker/test_hypothesis.py
74
8
assert
test_no_exceptions
# -*- coding: utf-8 -*- """ Integration test that our linter does not brake on different random programs. We generate thousands of them with the help of ``hypothesis`` and test that they are parsed and processed correctly. We cannot tell whether or not violations are correctly shown by a random input, but we can tel...
Checker
added
28427aa861460cc0ffd88a37a89e56f4ff4e6df1e302d0f3e2d3ebccae4fb9d3
assert|test_no_exceptions|# -*- coding: utf-8 -*- """ Integration test that our linter does not brake on different random programs. We generate thousands of them with the help of ``hypothesis`` and test that they are parsed and processed correctly. We cannot tell whether or not violations are correctly shown by a rando...
null
null
null
wemake-services/wemake-python-styleguide
train
363
3cc379d26c8bce09babdb9dd46ffa7412ccc9a72
train
tests/test_checker/test_hypothesis.py
train
wemake-services/wemake-python-styleguide:tests/test_checker/test_hypothesis.py
67
8
assert
test_no_exceptions
# -*- coding: utf-8 -*- """ Integration test that our linter does not brake on different random programs. We generate thousands of them with the help of ``hypothesis`` and test that they are parsed and processed correctly. We cannot tell whether or not violations are correctly shown by a random input, but we can tel...
isinstance(violation[0], int)
added
8dec4e79ea0df12481d185a040c8cd419f9330ba299408d553977e4cba7f35e6
assert|test_no_exceptions|# -*- coding: utf-8 -*- """ Integration test that our linter does not brake on different random programs. We generate thousands of them with the help of ``hypothesis`` and test that they are parsed and processed correctly. We cannot tell whether or not violations are correctly shown by a rando...
null
null
null
wemake-services/wemake-python-styleguide
train
363
3cc379d26c8bce09babdb9dd46ffa7412ccc9a72
train
tests/test_checker/test_hypothesis.py
train
wemake-services/wemake-python-styleguide:tests/test_checker/test_hypothesis.py
68
8
assert
test_no_exceptions
# -*- coding: utf-8 -*- """ Integration test that our linter does not brake on different random programs. We generate thousands of them with the help of ``hypothesis`` and test that they are parsed and processed correctly. We cannot tell whether or not violations are correctly shown by a random input, but we can tel...
isinstance(violation[1], int)
modified
0c21a670d37086d8afa4284432e82bb93563da25bdc9ab61ef940795d33ec5cf
assert|test_no_exceptions|# -*- coding: utf-8 -*- """ Integration test that our linter does not brake on different random programs. We generate thousands of them with the help of ``hypothesis`` and test that they are parsed and processed correctly. We cannot tell whether or not violations are correctly shown by a rando...
isinstance(violation[0], int)
71
8
wemake-services/wemake-python-styleguide
train
363
3cc379d26c8bce09babdb9dd46ffa7412ccc9a72
train
tests/test_checker/test_hypothesis.py
train
wemake-services/wemake-python-styleguide:tests/test_checker/test_hypothesis.py
70
8
assert
test_no_exceptions
# -*- coding: utf-8 -*- """ Integration test that our linter does not brake on different random programs. We generate thousands of them with the help of ``hypothesis`` and test that they are parsed and processed correctly. We cannot tell whether or not violations are correctly shown by a random input, but we can tel...
violation[2]
modified
8fdbb6c30030f42cc45efd37dd788d94cd33818b94ae38cfd0e9fee933583ee9
assert|test_no_exceptions|# -*- coding: utf-8 -*- """ Integration test that our linter does not brake on different random programs. We generate thousands of them with the help of ``hypothesis`` and test that they are parsed and processed correctly. We cannot tell whether or not violations are correctly shown by a rando...
violation[2]
73
8
wemake-services/wemake-python-styleguide
train
363
3cc379d26c8bce09babdb9dd46ffa7412ccc9a72
train
tests/test_checker/test_hypothesis.py
train
wemake-services/wemake-python-styleguide:tests/test_checker/test_hypothesis.py
71
8
assert
test_no_exceptions
# -*- coding: utf-8 -*- """ Integration test that our linter does not brake on different random programs. We generate thousands of them with the help of ``hypothesis`` and test that they are parsed and processed correctly. We cannot tell whether or not violations are correctly shown by a random input, but we can tel...
Checker
modified
fc41647289c6eddf8c47627ed8952fc37ba4bd7d6385cb1ebb3dc66bcf1f67be
assert|test_no_exceptions|# -*- coding: utf-8 -*- """ Integration test that our linter does not brake on different random programs. We generate thousands of them with the help of ``hypothesis`` and test that they are parsed and processed correctly. We cannot tell whether or not violations are correctly shown by a rando...
Checker
74
8
wemake-services/wemake-python-styleguide
train
364
4028ea90aea651c36cee6377c8694389aba84a96
train
tests/test_checker/test_hypothesis.py
train
wemake-services/wemake-python-styleguide:tests/test_checker/test_hypothesis.py
67
8
assert
test_no_exceptions
# -*- coding: utf-8 -*- """ Integration test that our linter does not break on different random programs. We generate thousands of them with the help of ``hypothesis`` and ensure that they are parsed and processed correctly. We cannot tell whether or not violations are correctly shown by a random input, but we can t...
isinstance(violation[0], int)
modified
7d14fb97401566951f29730e6230262eb34a517c8cf9d06540638b58d6b9ba0e
assert|test_no_exceptions|# -*- coding: utf-8 -*- """ Integration test that our linter does not break on different random programs. We generate thousands of them with the help of ``hypothesis`` and ensure that they are parsed and processed correctly. We cannot tell whether or not violations are correctly shown by a ran...
isinstance(violation[0], int)
67
8
wemake-services/wemake-python-styleguide
train
364
4028ea90aea651c36cee6377c8694389aba84a96
train
tests/test_checker/test_hypothesis.py
train
wemake-services/wemake-python-styleguide:tests/test_checker/test_hypothesis.py
68
8
assert
test_no_exceptions
# -*- coding: utf-8 -*- """ Integration test that our linter does not break on different random programs. We generate thousands of them with the help of ``hypothesis`` and ensure that they are parsed and processed correctly. We cannot tell whether or not violations are correctly shown by a random input, but we can t...
isinstance(violation[1], int)
modified
68e67b7a25ddb7cd3d0e1d31381c69f6b851e3ea676f5dfa52170b18efde1cf2
assert|test_no_exceptions|# -*- coding: utf-8 -*- """ Integration test that our linter does not break on different random programs. We generate thousands of them with the help of ``hypothesis`` and ensure that they are parsed and processed correctly. We cannot tell whether or not violations are correctly shown by a ran...
isinstance(violation[1], int)
68
8
wemake-services/wemake-python-styleguide
train
364
4028ea90aea651c36cee6377c8694389aba84a96
train
tests/test_checker/test_hypothesis.py
train
wemake-services/wemake-python-styleguide:tests/test_checker/test_hypothesis.py
69
8
assert
test_no_exceptions
# -*- coding: utf-8 -*- """ Integration test that our linter does not break on different random programs. We generate thousands of them with the help of ``hypothesis`` and ensure that they are parsed and processed correctly. We cannot tell whether or not violations are correctly shown by a random input, but we can t...
violation[2].startswith('WPS')
modified
3cc2a26697598378dd83efb687db93a5ed18fc173bb1a4ccd0d551ab2f8e4b33
assert|test_no_exceptions|# -*- coding: utf-8 -*- """ Integration test that our linter does not break on different random programs. We generate thousands of them with the help of ``hypothesis`` and ensure that they are parsed and processed correctly. We cannot tell whether or not violations are correctly shown by a ran...
violation[2].startswith('WPS')
69
8
wemake-services/wemake-python-styleguide
train
364
4028ea90aea651c36cee6377c8694389aba84a96
train
tests/test_checker/test_hypothesis.py
train
wemake-services/wemake-python-styleguide:tests/test_checker/test_hypothesis.py
70
8
assert
test_no_exceptions
# -*- coding: utf-8 -*- """ Integration test that our linter does not break on different random programs. We generate thousands of them with the help of ``hypothesis`` and ensure that they are parsed and processed correctly. We cannot tell whether or not violations are correctly shown by a random input, but we can t...
violation[2]
modified
fdfde2412ac6d9f42dfe6f06016b0cb1dc1fd830147410fb396860bd7a36b0df
assert|test_no_exceptions|# -*- coding: utf-8 -*- """ Integration test that our linter does not break on different random programs. We generate thousands of them with the help of ``hypothesis`` and ensure that they are parsed and processed correctly. We cannot tell whether or not violations are correctly shown by a ran...
violation[2]
70
8
wemake-services/wemake-python-styleguide
train
365
876779d0bbbac99f36b9a21bb7e10521190540e6
train
tests/test_checker/test_hypothesis.py
train
wemake-services/wemake-python-styleguide:tests/test_checker/test_hypothesis.py
70
8
assert
test_no_exceptions
# -*- coding: utf-8 -*- """ Integration test that our linter does not break on different random programs. We generate thousands of them with the help of ``hypothesis`` and ensure that they are parsed and processed correctly. We cannot tell whether or not violations are correctly shown by a random input, but we can t...
violation[2]
modified
48c714066f76bfa7f9c17e40f64878d5c8dd17265704b5770e8638e62635ba12
assert|test_no_exceptions|# -*- coding: utf-8 -*- """ Integration test that our linter does not break on different random programs. We generate thousands of them with the help of ``hypothesis`` and ensure that they are parsed and processed correctly. We cannot tell whether or not violations are correctly shown by a ran...
violation[2]
70
8
wemake-services/wemake-python-styleguide
train
365
876779d0bbbac99f36b9a21bb7e10521190540e6
train
tests/test_checker/test_hypothesis.py
train
wemake-services/wemake-python-styleguide:tests/test_checker/test_hypothesis.py
71
8
assert
test_no_exceptions
# -*- coding: utf-8 -*- """ Integration test that our linter does not break on different random programs. We generate thousands of them with the help of ``hypothesis`` and ensure that they are parsed and processed correctly. We cannot tell whether or not violations are correctly shown by a random input, but we can t...
Checker
modified
0d32155a866d38d610860e0c5c0d4d29c93b7927940c676575bfce82a1113924
assert|test_no_exceptions|# -*- coding: utf-8 -*- """ Integration test that our linter does not break on different random programs. We generate thousands of them with the help of ``hypothesis`` and ensure that they are parsed and processed correctly. We cannot tell whether or not violations are correctly shown by a ran...
Checker
71
8
wemake-services/wemake-python-styleguide
train
366
f39e87897de89bea1c49d410beb5b1cbaf930807
train
tests/test_visitors/test_ast/test_loops/test_loops/test_implicit_yield_from.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_loops/test_loops/test_implicit_yield_from.py
42
4
assert_*
test_implicit_yield_from
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.refactoring import ( ImplicitYieldFromViolation, ) from wemake_python_styleguide.visitors.ast.loops import ( WrongLoopDefinitionVisitor, ) for_loop_template = """ def function(): for index in some: {0} """ @pytest.ma...
[ImplicitYieldFromViolation])
modified
c40e7dbfab422e3c243d61d2202bf8a6b10909e20071eb551a5e8229b5a75610
assert_*|test_implicit_yield_from|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.refactoring import ( ImplicitYieldFromViolation, ) from wemake_python_styleguide.visitors.ast.loops import ( WrongLoopDefinitionVisitor, ) for_loop_template = """ def function(): for index in some: {0} """ @...
[ImplicitYieldFromViolation])
42
4
wemake-services/wemake-python-styleguide
train
367
70d4a516f45b2e7d941b48955de8f37158a1a238
train
tests/test_visitors/test_ast/test_functions/test_boolean_args.py
test
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_functions/test_boolean_args.py
83
4
assert_*
test_wrong_boolean_argument
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( BooleanPositionalArgumentViolation, ) from wemake_python_styleguide.visitors.ast.functions import ( WrongFunctionCallVisitor, ) correct_argument = 'some(0, 1, keyword={0}, other={0})' wrong_argument = 'some...
[ BooleanPositionalArgumentViolation, BooleanPositionalArgumentViolation, ])
modified
77393395383816a3c99c742deaa5326f32bcccab264ee851950f7e79da7f6e34
assert_*|test_wrong_boolean_argument|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( BooleanPositionalArgumentViolation, ) from wemake_python_styleguide.visitors.ast.functions import ( WrongFunctionCallVisitor, ) correct_argument = 'some(0, 1, keyword={0}, other={0...
[ BooleanPositionalArgumentViolation, BooleanPositionalArgumentViolation, ])
82
4
wemake-services/wemake-python-styleguide
train
368
a7408cac55508a677c6e7dc925e2d36fd0d4236f
train
tests/fixtures/noqa.py
train
wemake-services/wemake-python-styleguide:tests/fixtures/noqa.py
155
4
assert
# -*- coding: utf-8 -*- """ This file contains all possible violations. It is used for e2e tests. """ from __future__ import print_function # noqa: WPS422 import os.path # noqa: WPS301 import sys as sys # noqa: WPS113 from _some import protected # noqa: WPS436 from some import _protected # noqa: WPS450 from ...
test_function(2)
modified
ef7f548aa92ceeab35c5c11ca38895095aba7a86f316166dcc10d8420607f69c
assert||# -*- coding: utf-8 -*- """ This file contains all possible violations. It is used for e2e tests. """ from __future__ import print_function # noqa: WPS422 import os.path # noqa: WPS301 import sys as sys # noqa: WPS113 from _some import protected # noqa: WPS436 from some import _protected # noqa: WPS450 from .ve...
test_function(2)
154
4
wemake-services/wemake-python-styleguide
train
368
a7408cac55508a677c6e7dc925e2d36fd0d4236f
train
tests/fixtures/noqa.py
train
wemake-services/wemake-python-styleguide:tests/fixtures/noqa.py
156
4
assert
# -*- coding: utf-8 -*- """ This file contains all possible violations. It is used for e2e tests. """ from __future__ import print_function # noqa: WPS422 import os.path # noqa: WPS301 import sys as sys # noqa: WPS113 from _some import protected # noqa: WPS436 from some import _protected # noqa: WPS450 from ...
test_function(3)
modified
5d073383638106369b63b987495b38d71bd699bffb73a7b055ad839e6b3e7816
assert||# -*- coding: utf-8 -*- """ This file contains all possible violations. It is used for e2e tests. """ from __future__ import print_function # noqa: WPS422 import os.path # noqa: WPS301 import sys as sys # noqa: WPS113 from _some import protected # noqa: WPS436 from some import _protected # noqa: WPS450 from .ve...
test_function(3)
155
4
wemake-services/wemake-python-styleguide
train
368
a7408cac55508a677c6e7dc925e2d36fd0d4236f
train
tests/fixtures/noqa.py
train
wemake-services/wemake-python-styleguide:tests/fixtures/noqa.py
243
0
assert
# -*- coding: utf-8 -*- """ This file contains all possible violations. It is used for e2e tests. """ from __future__ import print_function # noqa: WPS422 import os.path # noqa: WPS301 import sys as sys # noqa: WPS113 from _some import protected # noqa: WPS436 from some import _protected # noqa: WPS450 from ...
hex_number
modified
8a7961754176e4d1110b0973117abe53c0782f337e411ed325b3bd94367d8f77
assert||# -*- coding: utf-8 -*- """ This file contains all possible violations. It is used for e2e tests. """ from __future__ import print_function # noqa: WPS422 import os.path # noqa: WPS301 import sys as sys # noqa: WPS113 from _some import protected # noqa: WPS436 from some import _protected # noqa: WPS450 from .ve...
hex_number
242
0
wemake-services/wemake-python-styleguide
train
368
a7408cac55508a677c6e7dc925e2d36fd0d4236f
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
254
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
a1f300e9a4ce05b657ae4a146a036d41fa85ce19a564b920dfc21956d2b5fc6a
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
253
8
wemake-services/wemake-python-styleguide
train
368
a7408cac55508a677c6e7dc925e2d36fd0d4236f
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
258
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
eba63ad0637d68db53dd5451240345d7a2d238ea3bcd31e6a2eeeff80033dd44
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)
257
8
wemake-services/wemake-python-styleguide
train
368
a7408cac55508a677c6e7dc925e2d36fd0d4236f
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
316
4
assert
test_noqa_fixture_disabled_no_control
# -*- 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_controlled_violations)
modified
3af6d6f0b10d38c3cd62b4c1a580c22516e4512419daeb3a02bb0d10f5b783dc
assert|test_noqa_fixture_disabled_no_control|# -*- 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: ...
len(all_controlled_violations)
315
4
wemake-services/wemake-python-styleguide
train
368
a7408cac55508a677c6e7dc925e2d36fd0d4236f
train
tests/test_visitors/test_ast/test_imports/test_protected_import.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_imports/test_protected_import.py
58
4
assert_*
test_incorrect_modules_import
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( ProtectedModuleMemberViolation, ProtectedModuleViolation, ) from wemake_python_styleguide.visitors.ast.imports import WrongImportVisitor import_public = 'import public' import_protected = 'import _protected...
[ProtectedModuleViolation])
added
4a8ee6fe6a2bc97f2ad6d268314afa3745aa7de0b73fc2f301f7ddcbc53f9c52
assert_*|test_incorrect_modules_import|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( ProtectedModuleMemberViolation, ProtectedModuleViolation, ) from wemake_python_styleguide.visitors.ast.imports import WrongImportVisitor import_public = 'import public' import_pr...
null
null
null
wemake-services/wemake-python-styleguide
train
368
a7408cac55508a677c6e7dc925e2d36fd0d4236f
train
tests/test_visitors/test_ast/test_imports/test_protected_import.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_imports/test_protected_import.py
77
4
assert_*
test_incorrect_module_members_import
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( ProtectedModuleMemberViolation, ProtectedModuleViolation, ) from wemake_python_styleguide.visitors.ast.imports import WrongImportVisitor import_public = 'import public' import_protected = 'import _protected...
[ProtectedModuleMemberViolation])
added
0204336c901a632bb26a205ac6fd804e12ad5f3751b499b691e67a1672814004
assert_*|test_incorrect_module_members_import|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.best_practices import ( ProtectedModuleMemberViolation, ProtectedModuleViolation, ) from wemake_python_styleguide.visitors.ast.imports import WrongImportVisitor import_public = 'import public' im...
null
null
null
wemake-services/wemake-python-styleguide
train
369
7152d004ac394eeb8190e1f5f7109dc004b5fac4
train
tests/test_checker/test_invalid_options.py
train
wemake-services/wemake-python-styleguide:tests/test_checker/test_invalid_options.py
53
4
assert
test_invalid_domain_names_options
# -*- coding: utf-8 -*- import subprocess def test_invalid_options(absolute_path): """End-to-End test to check option validation works.""" process = subprocess.Popen( [ 'flake8', '--isolated', '--select', 'WPS', '--max-imports', ...
stderr
added
243f4f60e79896ac972284aaa434a1d81c7b1d2ad7d42da5d530d01ac854a244
assert|test_invalid_domain_names_options|# -*- coding: utf-8 -*- import subprocess def test_invalid_options(absolute_path): """End-to-End test to check option validation works.""" process = subprocess.Popen( [ 'flake8', '--isolated', '--select', 'WPS', '--max-imports', '-5', # should be positive absolute_path('fixtures...
null
null
null
wemake-services/wemake-python-styleguide
train
369
7152d004ac394eeb8190e1f5f7109dc004b5fac4
train
tests/test_checker/test_invalid_options.py
train
wemake-services/wemake-python-styleguide:tests/test_checker/test_invalid_options.py
54
4
assert
test_invalid_domain_names_options
# -*- coding: utf-8 -*- import subprocess def test_invalid_options(absolute_path): """End-to-End test to check option validation works.""" process = subprocess.Popen( [ 'flake8', '--isolated', '--select', 'WPS', '--max-imports', ...
stderr
added
373d1750ad7b927aa2203b64dc5a91063e5566cda4960fb27f274742a413b4ea
assert|test_invalid_domain_names_options|# -*- coding: utf-8 -*- import subprocess def test_invalid_options(absolute_path): """End-to-End test to check option validation works.""" process = subprocess.Popen( [ 'flake8', '--isolated', '--select', 'WPS', '--max-imports', '-5', # should be positive absolute_path('fixtures...
null
null
null
wemake-services/wemake-python-styleguide
train
369
7152d004ac394eeb8190e1f5f7109dc004b5fac4
train
tests/test_checker/test_invalid_options.py
train
wemake-services/wemake-python-styleguide:tests/test_checker/test_invalid_options.py
55
4
assert
test_invalid_domain_names_options
# -*- coding: utf-8 -*- import subprocess def test_invalid_options(absolute_path): """End-to-End test to check option validation works.""" process = subprocess.Popen( [ 'flake8', '--isolated', '--select', 'WPS', '--max-imports', ...
stderr
added
a923becee4cfa5c01239189e086f29d0a849bf9b93d5ff83815911e66629a455
assert|test_invalid_domain_names_options|# -*- coding: utf-8 -*- import subprocess def test_invalid_options(absolute_path): """End-to-End test to check option validation works.""" process = subprocess.Popen( [ 'flake8', '--isolated', '--select', 'WPS', '--max-imports', '-5', # should be positive absolute_path('fixtures...
null
null
null
wemake-services/wemake-python-styleguide
train
369
7152d004ac394eeb8190e1f5f7109dc004b5fac4
train
tests/test_options/test_validate_domain_names_options.py
val
wemake-services/wemake-python-styleguide:tests/test_options/test_validate_domain_names_options.py
27
9
pytest.raises
test_raises_valueerror_when_names_intersect
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.options.validation import ( validate_domain_names_options, ) @pytest.mark.parametrize(('allowed_names', 'forbidden_names'), [ (['items'], []), ([], ['items']), (['item'], ['handle']), ]) def test_passes_when_any_option_not_passed(al...
ValueError)
added
53fec3e0fc9d767613ccedac5b456a6a4c99cd386a5bb6d48a7d57744a8c741c
pytest.raises|test_raises_valueerror_when_names_intersect|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.options.validation import ( validate_domain_names_options, ) @pytest.mark.parametrize(('allowed_names', 'forbidden_names'), [ (['items'], []), ([], ['items']), (['item'], ['handle']), ]) def tes...
null
null
null
wemake-services/wemake-python-styleguide
train
369
7152d004ac394eeb8190e1f5f7109dc004b5fac4
train
tests/test_visitors/test_ast/test_naming/test_naming_rules/test_wrong_names.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_naming/test_naming_rules/test_wrong_names.py
57
4
assert_*
test_name_in_forbidden_domain_names_option
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.naming import ( WrongVariableNameViolation, ) from wemake_python_styleguide.visitors.ast.naming import WrongNameVisitor @pytest.mark.parametrize('wrong_name', [ 'value', 'no', 'data', ]) def test_wrong_variable_name( ...
[WrongVariableNameViolation])
added
ed5bae2415d1a42091cbe0617ffc79a41e9768526d5d13aa088a192a10565c57
assert_*|test_name_in_forbidden_domain_names_option|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.naming import ( WrongVariableNameViolation, ) from wemake_python_styleguide.visitors.ast.naming import WrongNameVisitor @pytest.mark.parametrize('wrong_name', [ 'value', 'no', 'data', ]) de...
null
null
null
wemake-services/wemake-python-styleguide
train
369
7152d004ac394eeb8190e1f5f7109dc004b5fac4
train
tests/test_visitors/test_ast/test_naming/test_naming_rules/test_wrong_names.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_naming/test_naming_rules/test_wrong_names.py
58
4
assert_*
test_name_in_forbidden_domain_names_option
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.naming import ( WrongVariableNameViolation, ) from wemake_python_styleguide.visitors.ast.naming import WrongNameVisitor @pytest.mark.parametrize('wrong_name', [ 'value', 'no', 'data', ]) def test_wrong_variable_name( ...
forbidden_name)
added
913577da890b2a449a009782d571c79731f5c7b0470fe74a14b7d57aaa2da3c3
assert_*|test_name_in_forbidden_domain_names_option|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.naming import ( WrongVariableNameViolation, ) from wemake_python_styleguide.visitors.ast.naming import WrongNameVisitor @pytest.mark.parametrize('wrong_name', [ 'value', 'no', 'data', ]) de...
null
null
null
wemake-services/wemake-python-styleguide
train
370
06e94265bc27263b87d58a640a08435bae96d47c
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
255
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
a697778e6b42ae9f31fb0b7296399bb527dac161562eab17f74144ee3fb076c8
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
254
8
wemake-services/wemake-python-styleguide
train
370
06e94265bc27263b87d58a640a08435bae96d47c
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
259
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
442270e36f65b6f956d0faf9c208af536e06baae5f4d53984fa385a764c6c27f
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)
258
8
wemake-services/wemake-python-styleguide
train
370
06e94265bc27263b87d58a640a08435bae96d47c
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
287
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
e975435ec0b08d26ebb13a79cad4d5e614a217237feb4a233b2dd20fad5db9ca
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)
286
4
wemake-services/wemake-python-styleguide
train
370
06e94265bc27263b87d58a640a08435bae96d47c
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
317
4
assert
test_noqa_fixture_disabled_no_control
# -*- 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_controlled_violations)
modified
697bdf205105c8b8a84a373c490fa3a66b5766e42b3b5c054a45b92c82376ab5
assert|test_noqa_fixture_disabled_no_control|# -*- 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: ...
len(all_controlled_violations)
316
4
wemake-services/wemake-python-styleguide
train
370
06e94265bc27263b87d58a640a08435bae96d47c
train
tests/test_visitors/test_ast/test_iterables/test_unpacking.py
test
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_iterables/test_unpacking.py
64
4
assert_*
test_unneccessary_iterable_unpacking_usage
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.consistency import ( IterableUnpackingViolation, ) from wemake_python_styleguide.visitors.ast.iterables import ( IterableUnpackingVisitor, ) args_unpacking_in_call = 'f(*args)' spread_list_definition = '[1, 2, *numbers, 74]' sprea...
[IterableUnpackingViolation])
added
9b81b426483db7f65be46c333c71a1208957b3e3e5be32b825ab79b0a66007b7
assert_*|test_unneccessary_iterable_unpacking_usage|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.consistency import ( IterableUnpackingViolation, ) from wemake_python_styleguide.visitors.ast.iterables import ( IterableUnpackingVisitor, ) args_unpacking_in_call = 'f(*args)' spread_list_...
null
null
null
wemake-services/wemake-python-styleguide
train
370
06e94265bc27263b87d58a640a08435bae96d47c
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
66
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
cd5192cca0670b1b0b3ce70c9411c7ab47a910a4b0eb56b2e37582261fd8557e
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
370
06e94265bc27263b87d58a640a08435bae96d47c
train
tests/test_visitors/test_ast/test_statements/test_not_tuple_argument.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_statements/test_not_tuple_argument.py
64
4
assert_*
test_no_passed
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.constants import TUPLE_ARGUMENTS_METHODS from wemake_python_styleguide.violations.refactoring import ( NotATupleArgumentViolation, ) from wemake_python_styleguide.visitors.ast.statements import ( WrongMethodArgumentsVisitor, ) @pytest.mark....
[NotATupleArgumentViolation])
added
9dbe8a1a91c7a7f67bb92344c72925f98c6b45a3e8266fa0465f6ef9bb067d4c
assert_*|test_no_passed|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.constants import TUPLE_ARGUMENTS_METHODS from wemake_python_styleguide.violations.refactoring import ( NotATupleArgumentViolation, ) from wemake_python_styleguide.visitors.ast.statements import ( WrongMethodArgumentsVisitor, ) @...
null
null
null
wemake-services/wemake-python-styleguide
train
371
606db708f6c069f358cfafd4e892124bf59224ab
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
257
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
575e069082bc79770ee841a7f511c784c7583983973c1b8f25dd6be9357e0ab8
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
258
8
wemake-services/wemake-python-styleguide
train
371
606db708f6c069f358cfafd4e892124bf59224ab
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
258
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
a2c0c2b3a31e27efab1c8eca5cdd20db15673c2f90b559ac81cebddd262c5569
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)
259
8
wemake-services/wemake-python-styleguide
train
371
606db708f6c069f358cfafd4e892124bf59224ab
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
286
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
3d7f4e8dbb97e91bfead8123559fab98389a7fc4f92a41e57716f2b45355b497
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)
287
4
wemake-services/wemake-python-styleguide
train
371
606db708f6c069f358cfafd4e892124bf59224ab
train
tests/test_checker/test_noqa.py
test
wemake-services/wemake-python-styleguide:tests/test_checker/test_noqa.py
316
4
assert
test_noqa_fixture_disabled_no_control
# -*- 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_controlled_violations)
modified
9a8dd07e2657dba34ad7ce71a66b126ea7a46e383390437ad389aebcaf912dc0
assert|test_noqa_fixture_disabled_no_control|# -*- 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: ...
len(all_controlled_violations)
317
4
wemake-services/wemake-python-styleguide
train
371
606db708f6c069f358cfafd4e892124bf59224ab
train
tests/test_violations/test_codes.py
train
wemake-services/wemake-python-styleguide:tests/test_violations/test_codes.py
46
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
e035a88f564a78e356a0c07af4d114dd01924bd91c2f961bbe03998fdb5b5021
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
372
62d16d6161695a2777dea637fe5046b2dbf16fe7
train
tests/test_visitors/test_ast/test_classes/test_method_order.py
train
wemake-services/wemake-python-styleguide:tests/test_visitors/test_ast/test_classes/test_method_order.py
122
4
assert_*
test_incorrect_method_order
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.consistency import ( WrongMethodOrderViolation, ) from wemake_python_styleguide.visitors.ast.classes import ( ClassMethodOrderVisitor, ) correct_method_order = """ class Test(object): def __new__(self): ... def __...
[WrongMethodOrderViolation])
added
4f57205e3c440efc5c982ee775ef4d05198ae851b84a432daaa64eb14273fc8c
assert_*|test_incorrect_method_order|# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.consistency import ( WrongMethodOrderViolation, ) from wemake_python_styleguide.visitors.ast.classes import ( ClassMethodOrderVisitor, ) correct_method_order = """ class Test(object): def __new__(self): ....
null
null
null