Skip to content

Offer alternative config filename ".pytest.ini" #9987

@grintor

Description

@grintor

pytest is the only config file in my repo that is not, and cannot be hidden. (hidden with linux dot notation).

Other examples of config files include:
.coveragerc
.editorconfig
.eslintrc.json
.flake8
.gitattributes
.gitignore
.pre-commit-config.yaml
.prettierrc.yaml
.pylintrc
.stylelintrc.json

Meanwhile, pytest uses "pytest.ini"

I would like to propose that pytest load ".pytest.ini" in situations where "pytest.ini" does not exist.

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: configrelated to config handling, argument parsing and config filetype: proposalproposal for a new feature, often to gather opinions or design the API around the new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions