-
Notifications
You must be signed in to change notification settings - Fork 2.6k
[3608] Fix using multiple fmt:skip
pragmas in a single block
#3978
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
Open
henriholopainen
wants to merge
31
commits into
psf:main
Choose a base branch
from
henriholopainen:issue_3608
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
24801a9
Remove redundant check
henriholopainen 4224336
Small refactor
henriholopainen b435b3a
Small refactor
henriholopainen c212649
Small refactor
henriholopainen c574b97
Refactor
henriholopainen c1c4d63
Refactor
henriholopainen e78b18f
Refactor + rewrite docstrings
henriholopainen 2e66960
Simplify
henriholopainen 4dfdc0f
Move if closer to where it can happen
henriholopainen fe9a810
Wording
henriholopainen 92bece5
Remove unnecessary check (is handled by checking empty ignored_nodes)
henriholopainen 20a18aa
Move logical block closer to relevant code
henriholopainen f096ae7
Split fmt_off and fmt_skip logic to separate functions
henriholopainen 31b68e1
Add new test case
henriholopainen 0d43b9e
Rename
henriholopainen 035704d
Fix falsy test
henriholopainen 9799ec8
Add test case
henriholopainen 813cef5
Add heuristic to use correct sibling/preceding leaf
henriholopainen 397aa1c
Changelog entry
henriholopainen 5ac05c0
Update PR number
henriholopainen be040e6
Update docs
henriholopainen 71ca016
Add more test cases
henriholopainen d232f7b
Fix another corner case (#3682)
henriholopainen beefa04
Remove check that can never happen
henriholopainen 422178d
Expand test case
henriholopainen a8e6373
Get rid of special cases and combine to one branch
henriholopainen 05f33ce
Merge branch 'main' into issue_3608
henriholopainen 84140e9
Merge branch 'main' into issue_3608
JelleZijlstra 58e011b
Update CHANGES.md
JelleZijlstra 13c23b7
Merge branch 'main' into issue_3608
henriholopainen 14d7021
Merge branch 'main' into issue_3608
henriholopainen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,3 +17,6 @@ | |
|
||
import tempfile | ||
import zoneinfo | ||
|
||
from foo import bar | ||
from foo import bar # fmt: skip |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.