mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-30 22:01:47 +00:00
Respect external codes in file-level exemptions (#10203)
We shouldn't warn when an "external" code is used in a file-level exemption. Closes https://github.com/astral-sh/ruff/issues/10202.
This commit is contained in:
parent
c7431828a7
commit
7515196245
4 changed files with 62 additions and 2 deletions
|
@ -407,6 +407,7 @@ pub fn add_noqa_to_path(
|
|||
&diagnostics.0,
|
||||
&locator,
|
||||
indexer.comment_ranges(),
|
||||
&settings.external,
|
||||
&directives.noqa_line_for,
|
||||
stylist.line_ending(),
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue