From dcbc2334a333e4ffc9c6a185e15478c2b17d19c6 Mon Sep 17 00:00:00 2001 From: Nathan McDougall Date: Sun, 27 Jul 2025 21:47:42 +1200 Subject: [PATCH 1/2] Add changelog for v0.15.2 --- CHANGELOG.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c4b1d510..c32271ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,27 @@ # Changelog +## 0.15.2 + +### 🦾 Robustness + +- Previously, empty `.pre-commit-config.yaml` files would cause errors, (since they are not considered valid by pre-commit). Now usethis will treat them as if they do not exist, and so will write new config to them if applicable, rather than raising a validation error for this case. + +### 🐞 Bug Fixes + +- When subprocessing `uv`, the `usethis init` command will no longer use the default for `--build-backend`, and instead will always explicitly use `hatch`. This may change in the future if the default supported build backend for `usethis` becomes `uv_build`, which is the new default for `uv` v0.8.0. This change avoids creating broken config which mixes `uv_build` with `hatch` config. + +- When adding Import Linter while using Ruff, the `INP` rules are selected, but ignored for the tests directory. However, not message would be displayed in cases where those rules were already selected but not already ignored. Now, a message will be displayed in this case. + +### 📚 Documentation + +- A documentation site is now available at . The CLI Reference section has been moved there from the README. Other minor wording and clarity improvements have been made. + +- The CLI reference now mentions that `usethis tool pre-commit` will install hooks to Git. + +### 🔧 Internal Changes + +- The `doc` dependency group is no longer a default group. This reduces the dependencies required on CI. + ## 0.15.1 ### 🐞 Bug Fixes From 77f61203a516e6fcaa3f3e28f87b3bd9a243bd3d Mon Sep 17 00:00:00 2001 From: Nathan McDougall Date: Sun, 27 Jul 2025 21:50:35 +1200 Subject: [PATCH 2/2] Update CHANGELOG.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c32271ed..a318f2c2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,7 +10,7 @@ - When subprocessing `uv`, the `usethis init` command will no longer use the default for `--build-backend`, and instead will always explicitly use `hatch`. This may change in the future if the default supported build backend for `usethis` becomes `uv_build`, which is the new default for `uv` v0.8.0. This change avoids creating broken config which mixes `uv_build` with `hatch` config. -- When adding Import Linter while using Ruff, the `INP` rules are selected, but ignored for the tests directory. However, not message would be displayed in cases where those rules were already selected but not already ignored. Now, a message will be displayed in this case. +- When adding Import Linter while using Ruff, the `INP` rules are selected, but ignored for the tests directory. However, no message would be displayed in cases where those rules were already selected but not already ignored. Now, a message will be displayed in this case. ### 📚 Documentation