canonical / canonical/charmlibs

Enable warnings-as-errors across charmlibs

Open
#519 0 comments 0 reactions 1 assignee Claimed by @tonyandrewmeyer View on GitHub
infra rainy day team-charmlibs-maintainers tests
Dominant language
Python
Stars
5
Forks
28
Avg merge
1d 5h
Merged PRs (30d)
24

Description

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

```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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.