ruff/crates/ruff_workspace
Simon Høxbro Hansen 7ad07c2c5d
Add allow-unused-imports setting for unused-import rule (F401) (#13601)
## Summary
Resolves https://github.com/astral-sh/ruff/issues/9962 by allowing a
configuration setting `allowed-unused-imports`

TODO:
- [x] Figure out the correct name and place for the setting; currently,
I have added it top level.
- [x] The comparison is pretty naive. I tried using `glob::Pattern` but
couldn't get it to work in the configuration.
- [x] Add tests
- [x] Update documentations

## Test Plan

`cargo test`
2024-10-03 19:44:44 +00:00
..
src Add allow-unused-imports setting for unused-import rule (F401) (#13601) 2024-10-03 19:44:44 +00:00
Cargo.toml Add a subcommand to generate dependency graphs (#13402) 2024-09-19 21:06:32 -04:00