Skip to content

Enable warnings-as-errors across charmlibs #519

Description

@tonyandrewmeyer

Ideally, all the packages would have warnings promoted to errors when running unit tests. Something like this in pyproject.toml:

[tool.pytest.ini_options]
filterwarnings = [
    "error",
]

It would be useful to first see how much breakage this causes. If none/minimal, then my preference would be to do it across the whole repo. If not, then probably this becomes a package-by-package job.

I'd like to see this as the default for new packages, and, once it's adopted throughout the repo, maybe even enforced.

Activity

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

Metadata

Metadata

Labels

infraIssues with the repository infrastructure specifically.rainy daySmall items done in ~10% of each week's timeteam-charmlibs-maintainersMaintained by the canonical/charmlibs-maintainers team.testsRelated to tests or testing

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions