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:
Charlie Marsh 2024-03-02 16:20:36 -08:00 committed by GitHub
parent c7431828a7
commit 7515196245
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 62 additions and 2 deletions

View file

@ -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(),
)