SYMBOL INDEX (257 symbols across 49 files) FILE: flake8_pytest_style/config.py function enum_choices (line 5) | def enum_choices(enum: Type[Enum]) -> List[Any]: class ParametrizeNamesType (line 9) | class ParametrizeNamesType(Enum): class ParametrizeValuesType (line 15) | class ParametrizeValuesType(Enum): class ParametrizeValuesRowType (line 20) | class ParametrizeValuesRowType(Enum): class Config (line 25) | class Config(NamedTuple): FILE: flake8_pytest_style/errors.py class IncorrectFixtureParenthesesStyle (line 4) | class IncorrectFixtureParenthesesStyle(Error): class FixturePositionalArgs (line 9) | class FixturePositionalArgs(Error): class ExtraneousScopeFunction (line 16) | class ExtraneousScopeFunction(Error): class MissingFixtureNameUnderscore (line 21) | class MissingFixtureNameUnderscore(Error): class IncorrectFixtureNameUnderscore (line 26) | class IncorrectFixtureNameUnderscore(Error): class ParametrizeNamesWrongType (line 31) | class ParametrizeNamesWrongType(Error): class ParametrizeValuesWrongType (line 36) | class ParametrizeValuesWrongType(Error): class PatchWithLambda (line 41) | class PatchWithLambda(Error): class UnittestAssertion (line 46) | class UnittestAssertion(Error): class RaisesWithoutException (line 51) | class RaisesWithoutException(Error): class RaisesTooBroad (line 56) | class RaisesTooBroad(Error): class RaisesWithMultipleStatements (line 64) | class RaisesWithMultipleStatements(Error): class IncorrectPytestImport (line 69) | class IncorrectPytestImport(Error): class DuplicateParametrizeTestCases (line 74) | class DuplicateParametrizeTestCases(Error): class AssertAlwaysFalse (line 79) | class AssertAlwaysFalse(Error): class FailWithoutMessage (line 84) | class FailWithoutMessage(Error): class AssertInExcept (line 89) | class AssertInExcept(Error): class CompositeAssertion (line 97) | class CompositeAssertion(Error): class FixtureParamWithoutValue (line 102) | class FixtureParamWithoutValue(Error): class DeprecatedYieldFixture (line 110) | class DeprecatedYieldFixture(Error): class FixtureFinalizerCallback (line 115) | class FixtureFinalizerCallback(Error): class UselessYieldFixture (line 120) | class UselessYieldFixture(Error): class IncorrectMarkParenthesesStyle (line 125) | class IncorrectMarkParenthesesStyle(Error): class UnnecessaryAsyncioMarkOnFixture (line 133) | class UnnecessaryAsyncioMarkOnFixture(Error): class ErroneousUseFixturesOnFixture (line 138) | class ErroneousUseFixturesOnFixture(Error): class UseFixturesWithoutParameters (line 143) | class UseFixturesWithoutParameters(Error): class UnittestRaisesAssertion (line 148) | class UnittestRaisesAssertion(Error): class TFunctionArgumentWithDefault (line 155) | class TFunctionArgumentWithDefault(Error): class WarnsWithoutException (line 160) | class WarnsWithoutException(Error): class WarnsTooBroad (line 165) | class WarnsTooBroad(Error): class WarnsWithMultipleStatements (line 173) | class WarnsWithMultipleStatements(Error): FILE: flake8_pytest_style/plugin.py class PytestStylePlugin (line 33) | class PytestStylePlugin(Plugin[Config]): method add_options (line 52) | def add_options(cls, option_manager: OptionManager) -> None: method parse_options_to_config (line 111) | def parse_options_to_config( # pylint: disable=unused-argument FILE: flake8_pytest_style/utils.py function get_qualname (line 9) | def get_qualname(node: ast.AST) -> Optional[str]: class SimpleCallArgs (line 26) | class SimpleCallArgs(NamedTuple): method get_argument (line 30) | def get_argument( function get_simple_call_args (line 42) | def get_simple_call_args(node: ast.Call) -> SimpleCallArgs: function is_parametrize_call (line 63) | def is_parametrize_call(node: ast.Call) -> bool: function is_raises_call (line 68) | def is_raises_call(node: ast.Call) -> bool: function is_warns_call (line 73) | def is_warns_call(node: ast.Call) -> bool: function is_fail_call (line 78) | def is_fail_call(node: ast.Call) -> bool: function is_raises_with (line 83) | def is_raises_with(node: ast.With) -> bool: function is_warns_with (line 93) | def is_warns_with(node: ast.With) -> bool: class ParametrizeArgs (line 101) | class ParametrizeArgs(NamedTuple): function extract_parametrize_call_args (line 107) | def extract_parametrize_call_args(node: ast.Call) -> Optional[Parametriz... function _is_pytest_fixture (line 120) | def _is_pytest_fixture(node: ast.AST) -> bool: function is_pytest_yield_fixture (line 125) | def is_pytest_yield_fixture(node: ast.AST) -> bool: function _is_any_pytest_fixture (line 130) | def _is_any_pytest_fixture(node: ast.AST) -> bool: function get_fixture_decorator (line 135) | def get_fixture_decorator(node: AnyFunctionDef) -> Union[ast.Call, ast.A... function _is_mark (line 157) | def _is_mark(node: ast.AST) -> bool: function get_mark_decorators (line 165) | def get_mark_decorators( function get_mark_name (line 188) | def get_mark_name(node: ast.AST) -> str: function is_none (line 204) | def is_none(node: ast.AST) -> bool: function is_empty_string (line 215) | def is_empty_string(node: ast.AST) -> bool: function _is_empty_iterable (line 231) | def _is_empty_iterable( # pylint:disable=too-many-return-statements function is_falsy_constant (line 268) | def is_falsy_constant(node: ast.AST) -> bool: function is_test_function (line 280) | def is_test_function(node: AnyFunctionDef) -> bool: function get_all_argument_names (line 285) | def get_all_argument_names(node: ast.arguments) -> List[str]: function walk_without_nested_functions (line 297) | def walk_without_nested_functions(root: ast.AST) -> Iterator[ast.AST]: function is_abstract_method (line 310) | def is_abstract_method(node: AnyFunctionDef) -> bool: function is_nontrivial_with_statement (line 322) | def is_nontrivial_with_statement(node: ast.AST) -> bool: FILE: flake8_pytest_style/visitors/assertion.py class UnittestAssertionVisitor (line 76) | class UnittestAssertionVisitor(Visitor[Config]): method visit_Call (line 77) | def visit_Call(self, node: ast.Call) -> None: class AssertionVisitor (line 87) | class AssertionVisitor(Visitor[Config]): method _is_composite_condition (line 88) | def _is_composite_condition(self, expr: ast.AST) -> bool: method visit_Assert (line 104) | def visit_Assert(self, node: ast.Assert) -> None: FILE: flake8_pytest_style/visitors/fail.py class FailVisitor (line 15) | class FailVisitor(Visitor[Config]): method _check_fail_call (line 16) | def _check_fail_call(self, node: ast.Call) -> None: method visit_Assert (line 28) | def visit_Assert(self, node: ast.Assert) -> None: method visit_Call (line 33) | def visit_Call(self, node: ast.Call) -> None: FILE: flake8_pytest_style/visitors/fixtures.py class FixturesVisitor (line 32) | class FixturesVisitor(Visitor[Config]): method _check_fixture_decorator_name (line 33) | def _check_fixture_decorator_name( method _check_fixture_decorator (line 44) | def _check_fixture_decorator( method _check_fixture_returns (line 87) | def _check_fixture_returns(self, node: AnyFunctionDef) -> None: method _check_fixture_addfinalizer (line 121) | def _check_fixture_addfinalizer(self, node: AnyFunctionDef) -> None: method _check_fixture_marks (line 134) | def _check_fixture_marks(self, node: AnyFunctionDef) -> None: method visit_FunctionDef (line 153) | def visit_FunctionDef(self, node: AnyFunctionDef) -> None: FILE: flake8_pytest_style/visitors/imports.py function _is_pytest_or_subpackage (line 9) | def _is_pytest_or_subpackage(imported_name: str) -> bool: class ImportsVisitor (line 13) | class ImportsVisitor(Visitor[Config]): method visit_Import (line 14) | def visit_Import(self, node: ast.Import) -> None: method visit_ImportFrom (line 23) | def visit_ImportFrom(self, node: ast.ImportFrom) -> None: FILE: flake8_pytest_style/visitors/marks.py class MarksVisitor (line 18) | class MarksVisitor(Visitor[Config]): method _check_mark_parentheses (line 19) | def _check_mark_parentheses( method _check_useless_usefixtures (line 48) | def _check_useless_usefixtures( method visit_FunctionDef (line 62) | def visit_FunctionDef(self, node: AnyDecoratorTarget) -> None: method visit_ClassDef (line 70) | def visit_ClassDef(self, node: ast.ClassDef) -> None: FILE: flake8_pytest_style/visitors/parametrize.py class ParametrizeVisitor (line 21) | class ParametrizeVisitor(Visitor[Config]): method _check_parametrize_names (line 22) | def _check_parametrize_names( method _get_expected_values_type_str (line 58) | def _get_expected_values_type_str(self, multiple_names: Optional[bool]... method _check_parametrize_values (line 66) | def _check_parametrize_values( method _check_parametrize_duplicates (line 103) | def _check_parametrize_duplicates( method _check_parametrize_call (line 118) | def _check_parametrize_call(self, node: ast.Call) -> None: method visit_Call (line 130) | def visit_Call(self, node: ast.Call) -> None: FILE: flake8_pytest_style/visitors/patch.py class PatchVisitor (line 28) | class PatchVisitor(Visitor[Config]): method _check_patch_call (line 29) | def _check_patch_call(self, node: ast.Call, new_arg_number: int) -> None: method visit_Call (line 52) | def visit_Call(self, node: ast.Call) -> None: FILE: flake8_pytest_style/visitors/raises.py class RaisesVisitor (line 22) | class RaisesVisitor(Visitor[Config]): method _check_raises_call (line 23) | def _check_raises_call(self, node: ast.Call) -> None: method _check_raises_with (line 40) | def _check_raises_with(self, node: ast.With) -> None: method visit_Call (line 64) | def visit_Call(self, node: ast.Call) -> None: method visit_With (line 68) | def visit_With(self, node: ast.With) -> None: FILE: flake8_pytest_style/visitors/t_functions.py class TFunctionsVisitor (line 13) | class TFunctionsVisitor(Visitor[Config]): method _check_test_function_args (line 14) | def _check_test_function_args(self, node: AnyFunctionDef) -> None: method visit_FunctionDef (line 38) | def visit_FunctionDef(self, node: AnyFunctionDef) -> None: FILE: flake8_pytest_style/visitors/try_except.py class TryExceptVisitor (line 10) | class TryExceptVisitor(Visitor[Config]): method __init__ (line 11) | def __init__(self, config: Optional[Config] = None) -> None: method visit_ExceptHandler (line 16) | def visit_ExceptHandler(self, node: ast.ExceptHandler) -> None: method visit_Assert (line 25) | def visit_Assert(self, node: ast.Assert) -> None: method visit_Name (line 35) | def visit_Name(self, node: ast.Name) -> None: FILE: flake8_pytest_style/visitors/warns.py class WarnsVisitor (line 22) | class WarnsVisitor(Visitor[Config]): method _check_warns_call (line 23) | def _check_warns_call(self, node: ast.Call) -> None: method _check_warns_with (line 40) | def _check_warns_with(self, node: ast.With) -> None: method visit_Call (line 64) | def visit_Call(self, node: ast.Call) -> None: method visit_With (line 68) | def visit_With(self, node: ast.With) -> None: FILE: scripts/pypi_readme.py function process_readme (line 10) | def process_readme(readme: str, project_metadata: Container) -> str: function make_output_filename (line 23) | def make_output_filename(input_filename: str) -> str: function main (line 28) | def main() -> None: FILE: tests/test_PT001_incorrect_fixture_parentheses_style.py function test_ok_no_parameters (line 12) | def test_ok_no_parameters(): function test_ok_with_parameters (line 23) | def test_ok_with_parameters(): function test_ok_without_parens (line 34) | def test_ok_without_parens(): function test_error_without_parens (line 45) | def test_error_without_parens(): function test_error_with_parens (line 63) | def test_error_with_parens(): FILE: tests/test_PT002_fixture_positional_args.py function test_ok_no_args (line 8) | def test_ok_no_args(): function test_ok_only_kwargs (line 19) | def test_ok_only_kwargs(): function test_error_only_args (line 30) | def test_error_only_args(): function test_error_mixed (line 47) | def test_error_mixed(): FILE: tests/test_PT003_extraneous_scope_function.py function test_ok_no_scope (line 8) | def test_ok_no_scope(): function test_ok_other_scope (line 19) | def test_ok_other_scope(): function test_error (line 30) | def test_error(): FILE: tests/test_PT004_missing_fixture_name_underscore.py function test_ok_simple (line 8) | def test_ok_simple(): function test_ok_with_return (line 19) | def test_ok_with_return(): function test_ok_with_yield (line 32) | def test_ok_with_yield(): function test_ok_abstract_with_import_abc (line 44) | def test_ok_abstract_with_import_abc(): function test_ok_abstract_with_from_import (line 59) | def test_ok_abstract_with_from_import(): function test_ok_ignoring_yield_from (line 74) | def test_ok_ignoring_yield_from(): function test_error_simple (line 85) | def test_error_simple(): function test_error_with_yield (line 102) | def test_error_with_yield(): FILE: tests/test_PT005_incorrect_fixture_name_underscore.py function test_ok_with_return (line 8) | def test_ok_with_return(): function test_ok_with_yield (line 19) | def test_ok_with_yield(): function test_ok_nested_function (line 31) | def test_ok_nested_function(): function test_ok_abstract_with_import_abc (line 43) | def test_ok_abstract_with_import_abc(): function test_ok_abstract_with_from_import (line 58) | def test_ok_abstract_with_from_import(): function test_error_with_return (line 73) | def test_error_with_return(): function test_error_with_yield (line 90) | def test_error_with_yield(): function test_error_with_conditional_yield_from (line 108) | def test_error_with_conditional_yield_from(): FILE: tests/test_PT006_parametrize_names_wrong_type.py function test_ok_single (line 13) | def test_ok_single(): function test_ok_multiple (line 33) | def test_ok_multiple(cfg_type, names): function test_error_single_tuple (line 49) | def test_error_single_tuple(): function test_error_multiple (line 78) | def test_error_multiple(cfg_type, names): FILE: tests/test_PT007_parametrize_values_wrong_type.py function _get_expected_type_str (line 22) | def _get_expected_type_str(values_cfg_type, rows_cfg_type): function test_ok_single (line 33) | def test_ok_single(values_cfg_type, values): function test_ok_multiple (line 71) | def test_ok_multiple(values_cfg_type, rows_cfg_type, values): function test_error_single (line 94) | def test_error_single(values_cfg_type, values): function test_error_single_tuple_as_decorator (line 113) | def test_error_single_tuple_as_decorator(): function test_error_multiple (line 198) | def test_error_multiple(values_cfg_type, rows_cfg_type, values): function test_error_multiple_mixed (line 223) | def test_error_multiple_mixed(values_cfg_type, rows_cfg_type, values): FILE: tests/test_PT008_patch_with_lambda.py function test_ok (line 47) | def test_ok(code_template, patch_with): function test_error (line 56) | def test_error(code_template, patch_with): FILE: tests/test_PT009_unittest_assertion.py function test_ok_no_parameters (line 7) | def test_ok_no_parameters(): function test_error (line 17) | def test_error(): FILE: tests/test_PT010_raises_without_exception.py function test_ok (line 8) | def test_ok(): function test_error (line 19) | def test_error(): FILE: tests/test_PT011_raises_too_broad.py function test_ok (line 9) | def test_ok(): function test_ok_different_error_from_config (line 20) | def test_ok_different_error_from_config(): function test_error_no_argument_given (line 32) | def test_error_no_argument_given(exception): function test_error_match_is_empty (line 50) | def test_error_match_is_empty(match): FILE: tests/test_PT012_raises_with_multiple_statements.py function test_ok (line 9) | def test_ok(): function test_ok_trivial_with (line 19) | def test_ok_trivial_with(maybe_async): function test_error_multiple_statements (line 29) | def test_error_multiple_statements(): function test_error_complex_statement (line 44) | def test_error_complex_statement(statement): function test_error_try (line 56) | def test_error_try(): FILE: tests/test_PT013_incorrect_pytest_import.py function test_ok (line 18) | def test_ok(code): function test_error (line 30) | def test_error(code): FILE: tests/test_PT014_duplicate_parametrize_test_cases.py function test_error (line 8) | def test_error(): FILE: tests/test_PT015_assert_always_false.py function test_ok (line 8) | def test_ok(): function test_error (line 38) | def test_error(falsy_constant): FILE: tests/test_PT016_fail_without_message.py function test_ok_arg (line 8) | def test_ok_arg(): function test_ok_kwarg (line 16) | def test_ok_kwarg(): function test_ok_kwarg_legacy (line 24) | def test_ok_kwarg_legacy(): function test_error (line 35) | def test_error(args): FILE: tests/test_PT017_assert_in_except.py function test_ok (line 8) | def test_ok(): function test_error (line 23) | def test_error(): FILE: tests/test_PT018_composite_assertion.py function test_ok (line 8) | def test_ok(): function test_error (line 31) | def test_error(condition): FILE: tests/test_PT019_fixture_param_without_value.py function test_ok_good_param_name (line 7) | def test_ok_good_param_name(): function test_ok_non_test_function (line 15) | def test_ok_non_test_function(): function test_error_arg (line 23) | def test_error_arg(): function test_error_kwonly (line 31) | def test_error_kwonly(): FILE: tests/test_PT020_deprecated_yield_fixture.py function test_ok_no_parameters (line 12) | def test_ok_no_parameters(): function test_ok_without_parens (line 23) | def test_ok_without_parens(): function test_error_without_parens (line 34) | def test_error_without_parens(): function test_error_with_parens (line 47) | def test_error_with_parens(): FILE: tests/test_PT021_fixture_finalizer_callback.py function test_ok_return (line 8) | def test_ok_return(): function test_ok_yield (line 19) | def test_ok_yield(): function test_ok_other_request (line 32) | def test_ok_other_request(): function test_ok_other_function (line 45) | def test_ok_other_function(): function test_ok_nested_function (line 64) | def test_ok_nested_function(): function test_error_return (line 80) | def test_error_return(): function test_error_yield (line 93) | def test_error_yield(): FILE: tests/test_PT022_useless_yield_fixture.py function test_ok_complex_logic (line 11) | def test_ok_complex_logic(): function test_error (line 27) | def test_error(): FILE: tests/test_PT023_incorrect_mark_parentheses_style.py function test_ok_with_parameters_regardless_of_config (line 132) | def test_ok_with_parameters_regardless_of_config(mark_parentheses: bool): function test_ok_without_parens (line 145) | def test_ok_without_parens(code: str): function test_ok_with_parens (line 150) | def test_ok_with_parens(code: str): function test_error_without_parens (line 155) | def test_error_without_parens(code: str): function test_error_with_parens (line 168) | def test_error_with_parens(code: str): FILE: tests/test_PT024_unncessary_asyncio_mark_on_fixture.py function test_ok_not_fixture (line 8) | def test_ok_not_fixture(): function test_ok_not_fixture_no_parens (line 19) | def test_ok_not_fixture_no_parens(): function test_error_before (line 30) | def test_error_before(): function test_error_before_no_parens (line 44) | def test_error_before_no_parens(): function test_error_after (line 58) | def test_error_after(): function test_error_after_no_parens (line 72) | def test_error_after_no_parens(): FILE: tests/test_PT025_erroneous_usefixtures_on_fixture.py function test_ok_not_fixture (line 8) | def test_ok_not_fixture(): function test_error_before (line 19) | def test_error_before(): function test_error_after (line 36) | def test_error_after(): FILE: tests/test_PT026_usefixtures_without_parameters.py function test_ok (line 8) | def test_ok(): function test_ok_another_mark_with_parens (line 19) | def test_ok_another_mark_with_parens(): function test_ok_another_mark_no_parens (line 31) | def test_ok_another_mark_no_parens(): function test_error_with_parens (line 43) | def test_error_with_parens(): function test_error_no_parens (line 55) | def test_error_no_parens(): FILE: tests/test_PT027_unittest_raises_assertion.py function test_ok_no_parameters (line 7) | def test_ok_no_parameters(): function test_error (line 18) | def test_error(): FILE: tests/test_PT028_test_function_argument_with_default.py function test_ok (line 10) | def test_ok(): function test_ok_non_test_function (line 18) | def test_ok_non_test_function(): function test_error_posonly (line 26) | def test_error_posonly(): function test_error_arg (line 40) | def test_error_arg(): function test_error_kwonly (line 54) | def test_error_kwonly(): function test_error_multiple (line 68) | def test_error_multiple(): FILE: tests/test_PT029_warns_without_warning.py function test_ok (line 8) | def test_ok(): function test_error (line 19) | def test_error(): FILE: tests/test_PT030_warns_too_broad.py function test_ok (line 9) | def test_ok(): function test_ok_different_error_from_config (line 21) | def test_ok_different_error_from_config(): function test_error_no_argument_given (line 34) | def test_error_no_argument_given(warning): function test_error_match_is_empty (line 53) | def test_error_match_is_empty(match): FILE: tests/test_PT031_warns_with_multiple_statements.py function test_ok (line 9) | def test_ok(): function test_ok_trivial_with (line 19) | def test_ok_trivial_with(maybe_async): function test_error_multiple_statements (line 29) | def test_error_multiple_statements(): function test_error_complex_statement (line 42) | def test_error_complex_statement(statement): function test_error_try (line 52) | def test_error_try(): FILE: tests/test_config.py function option_manager (line 18) | def option_manager() -> OptionManager: function parse_options (line 29) | def parse_options(manager: OptionManager, args: List[str]) -> Config: function test_parse_default (line 40) | def test_parse_default(option_manager): function test_parse_raises_require_match_for (line 44) | def test_parse_raises_require_match_for(option_manager): function test_parse_fixture_parentheses (line 51) | def test_parse_fixture_parentheses(option_manager): function test_parse_parametrize_names_type (line 57) | def test_parse_parametrize_names_type(option_manager, value): function test_parse_parametrize_values_type (line 65) | def test_parse_parametrize_values_type(option_manager, value): function test_parse_parametrize_values_row_type (line 73) | def test_parse_parametrize_values_row_type(option_manager, value): function test_parse_invalid_enum_values (line 88) | def test_parse_invalid_enum_values(option_manager, args): FILE: tests/test_plugin.py function _collect_subclasses (line 13) | def _collect_subclasses(modules: List[ModuleType], base_class: Type[T]) ... function test_plugin_has_all_visitors (line 26) | def test_plugin_has_all_visitors(): function test_all_error_codes_are_different (line 45) | def test_all_error_codes_are_different():