diff --git a/README.md b/README.md index ccf8b21..124e66e 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,7 @@ +

+
+

+ # usethis [![PyPI Version]()]() @@ -51,7 +55,7 @@ Add a new tool to a Python project, including: Currently supported tools: -- ruff +- Ruff - pytest - deptry - pre-commit @@ -65,6 +69,15 @@ Supported arguments: - `--remove` to remove the tool instead of adding it - `--offline` to disable network access and rely on caches +### `usethis badge` + +Add badges to READEME.md. + +Currently supported badges: + +- Ruff +- pre-commit + ### `usethis ci` Add Continuous Integration pipelines to the project. diff --git a/src/usethis/_tool.py b/src/usethis/_tool.py index 4823131..c7f2d8d 100644 --- a/src/usethis/_tool.py +++ b/src/usethis/_tool.py @@ -262,6 +262,19 @@ def get_pyproject_configs(self) -> list[PyProjectConfig]: "omit": ["*/pytest-of-*/*"], }, ), + PyProjectConfig( + id_keys=["tool", "coverage", "report"], + main_contents={ + "exclude_also": [ + "if TYPE_CHECKING:", + "raise AssertionError", + "raise NotImplementedError", + "assert_never(.*)", + "class .*\\bProtocol\\):", + "@(abc\\.)?abstractmethod", + ] + }, + ), ] def get_associated_ruff_rules(self) -> list[str]: