Skip to content

Comments

Upgrade annotation snippet#11618

Closed
MichaReiser wants to merge 2 commits intomainfrom
upgrade-annotation-snippet
Closed

Upgrade annotation snippet#11618
MichaReiser wants to merge 2 commits intomainfrom
upgrade-annotation-snippet

Conversation

@MichaReiser
Copy link
Member

@MichaReiser MichaReiser commented May 30, 2024

Summary

I tried in this PR to upgrade annotation snippet but I hit a blocker because annotation snippet has now become more opinionated. It now prefixes every message with a level and requires a title.
That means, it is no longer possible to have our custom message headers of the form path:row:column [CODE] message and instead it must be error[code]: <title> and it is unclear what message format we want.

TODO:

  • Updated grouped emitter
  • Decide on new message format

Test Plan

See updated snapshots

Fixes #10832

test.py:1:5: Q000 [*] Double quotes found but single quotes preferred
test.py:1:5: B005 Using `.strip()` with multi-character strings is misleading
test.py:1:19: Q000 [*] Double quotes found but single quotes preferred
error[Q000]: test.py:1:5: [*] Double quotes found but single quotes preferred
Copy link
Member Author

Choose a reason for hiding this comment

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

It's not clear to me where and how we want to show the file name, location, and fixability

@MichaReiser MichaReiser requested a review from charliermarsh May 30, 2024 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update annotate-snippets to 0.11.0

1 participant