Skip to content

STYLE pre-commit check to ensure that test functions name starts with test #50379

@MarcoGorelli

Description

@MarcoGorelli

In #50378, I found a test which isn't run in CI because its name doesn't start with test (as required by pytest)

I'm sure there's more

To find them, I think we need some AST which checks files in pandas/tests, which:

  • have names not starting with test
  • aren't decorated (else they might be fixtures)
  • aren't used anywhere else inside that file (else they might be helper functions)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Code StyleCode style, linting, code_checks

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions