Skip to content

Add pytest's best-practice config to pyproject.toml #315

Description

@jond01

The pyproject.toml file can be used to store pytest's config (otherwise declared in a separate pytest.ini file), see:
https://docs.pytest.org/en/6.2.x/customize.html#pyproject-toml

It could be valuable to add the recommended options for pytest:

# pyproject.toml

[tool.pytest.ini_options]
filterwarnings = ["error"]
addopts = ["--import-mode=importlib"]

Note that the importlib option probably unnecessitates placing the hypermodern_python package in the src folder (src/hypermodern_python):
src/hypermodern_python -> hypermodern_python

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions