mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-28 04:45:01 +00:00
Match rule prefixes from external
codes setting in unused-noqa
(#8177)
Supersedes https://github.com/astral-sh/ruff/pull/8176 Closes https://github.com/astral-sh/ruff/pull/8174 ## Test plan Old snapshot contains the new / unmatched `V` code New snapshot contains no `V` prefixed codes
This commit is contained in:
parent
a6cc56fd98
commit
6f31e9c00e
9 changed files with 426 additions and 115 deletions
|
@ -226,7 +226,7 @@ impl Configuration {
|
|||
dummy_variable_rgx: lint
|
||||
.dummy_variable_rgx
|
||||
.unwrap_or_else(|| DUMMY_VARIABLE_RGX.clone()),
|
||||
external: FxHashSet::from_iter(lint.external.unwrap_or_default()),
|
||||
external: lint.external.unwrap_or_default(),
|
||||
ignore_init_module_imports: lint.ignore_init_module_imports.unwrap_or_default(),
|
||||
tab_size: self.indent_width.unwrap_or_default(),
|
||||
namespace_packages: self.namespace_packages.unwrap_or_default(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue