-
Notifications
You must be signed in to change notification settings - Fork 3
usethis tool coverage breaks existing config in some cases #558
Copy link
Copy link
Closed
Description
Motivation
Reproducer:
uv init --lib
uv add --dev usethis
usethis tool codespell
usethis tool coverage
This will give the following config toward the bottom of the file:
[dependency-groups]
dev = ["codespell>=2.4.1", "usethis>=0.9.1"]
test = [
"coverage[toml]>=7.8.0",
]
coverage.run.source = ["src"]
coverage.report.exclude_also = ["if TYPE_CHECKING:", "raise AssertionError", "raise NotImplementedError", "assert_never(.*)", "class .*\\bProtocol\\):", "@(abc\\.)?abstractmethod"]
coverage.report.omit = ["*/pytest-of-*/*"]
[tool.codespell]
ignore-regex = ["[A-Za-z0-9+/]{100,}"]
[tool.uv]
default-groups = ["test", "dev"]
Summary of desired enhancement
Test and fix the bug
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working