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

Omit code frames for fixes with empty ranges #12304

Merged
merged 4 commits into from
Jul 12, 2024
Merged

Conversation

charliermarsh
Copy link
Member

Summary

Closes #12291.

Test Plan

❯ cargo run check ../uv/foo --select INP
/Users/crmarsh/workspace/uv/foo/bar/baz.py:1:1: INP001 File `/Users/crmarsh/workspace/uv/foo/bar/baz.py` is part of an implicit namespace package. Add an `__init__.py`.
Found 1 error.

@charliermarsh charliermarsh added the cli Related to the command-line interface label Jul 12, 2024
crates/ruff_linter/src/message/text.rs Outdated Show resolved Hide resolved
Co-authored-by: Dhruv Manilawala <dhruvmanila@gmail.com>
@charliermarsh charliermarsh enabled auto-merge (squash) July 12, 2024 14:34
Copy link
Member

@zanieb zanieb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@charliermarsh charliermarsh merged commit 940df67 into main Jul 12, 2024
16 checks passed
@charliermarsh charliermarsh deleted the charlie/frame branch July 12, 2024 15:21
@adamtheturtle
Copy link

The responsiveness of Astral is incredible. Thanks all!

Copy link
Contributor

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli Related to the command-line interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

INP001 outputs the code of the file which is part of an implicit namespace package
4 participants