ITADN

deps-in-desc should honor .Rbuildignore

#607ClosedMLopez-Ibanez 创建于 2025-01-01
M
MLopez-Ibanezcommented
**Before filing a bug** - [X] I have installed the latest dev version of {precommit} with `remotes::install_github('lorenzwalthert/precommit')` - [X] I have installed the latest hook revisions (update with `precommit::autoupdate()`) - [X] I have installed the latest release of the upstream Python framework pre-comit as described under the [update instructions](https://lorenzwalthert.github.io/precommit/dev/articles/precommit.html#update). **Describe the bug** `deps-in-desc` complains about packages under a folder `scripts/` that is not part of the package. It is listed within `.Rbuildignore`. **To Reproduce** Steps to reproduce the behavior: 1. `[usethis::create_package()](https://usethis.r-lib.org/reference/create_package.html)` 2. Create a directory `scripts`. 3. Create `scripts/test.R` with content `badpackage::test()` 4. Add `^scripts` to `.Rbuildignore`. 5. Run pre-commit hook `deps-in-desc` 6. It will complain about `badpackage` missing from `DESCRIPTION`. **Expected behavior** Ignore everything listed in `.Rbuildignore`. **Additional context** - My operating system is: Linux - [ ] My project uses {renv}. - [ ] the output of `packageVersion('renv')`
关闭于 2025-01-01 2 条评论