ruff icon indicating copy to clipboard operation
ruff copied to clipboard

`ruff server` correctly treats `.pyi` files as stub files

Open snowsignal opened this issue 9 months ago • 1 comments

Summary

Fixes #11534.

DocumentQuery::source_type now returns PySourceType::Stub when the document is a .pyi file.

Test Plan

I confirmed that stub-specific rule violations appeared with a build from this PR (they were not visible from a main build).

Screenshot 2024-05-24 at 2 15 38 PM

snowsignal avatar May 24 '24 21:05 snowsignal