Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ruff server correctly treats .pyi files as stub files #11535

Merged
merged 1 commit into from
May 26, 2024

Conversation

snowsignal
Copy link
Contributor

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 snowsignal added bug Something isn't working server Related to the LSP server labels May 24, 2024
Copy link
Contributor

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

@charliermarsh charliermarsh self-assigned this May 26, 2024
@charliermarsh charliermarsh merged commit 9567fdd into main May 26, 2024
19 checks passed
@charliermarsh charliermarsh deleted the jane/server/pyi branch May 26, 2024 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working server Related to the LSP server
Projects
None yet
2 participants