New DISABLE_SPLIT_LIST_WITH_COMMENT flag.
DISABLE_SPLIT_LIST_WITH_COMMENT is a new knob that changes the
behavior of splitting a list when a comment is present inside the list.
Before, we split a list containing a comment just like we split a list
containing a trailing comma: Each element goes on its own line (unless
DISABLE_ENDING_COMMA_HEURISTIC is true).
This new flag allows you to control the behavior of a list with a comment
separately from the behavior when the list contains a trailing comma.
This mirrors the behavior of clang-format, and is useful for e.g. forming
"logical groups" of elements in a list.
Without this flag:
[
a,
b, #
c
]
With this flag:
[
a, b, #
c
]
Before we had one flag that controlled two behaviors.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps yapf from 0.40.2 to 0.43.0.
Changelog
Sourced from yapf's changelog.
... (truncated)
Commits
5cb90cb
Bump version to v0.43.029db8b7
Actions(deps): Bump actions/checkout from 4.2.0 to 4.2.1 (#1249)89d1cd0
Actions(deps): Bump peter-evans/create-pull-request from 6.0.2 to 7.0.5 (#1239)7e21823
ylib2to3/pgen2/grammar: Fix Grammar.dump for parallel use with Grammar.load (...ed70540
pre-commit: Add hook for yapf-diff (#1246)0de7684
Actions(deps): Bump actions/checkout from 4.1.2 to 4.2.0 (#1241)b951457
Fix CI (#1242)1afbf71
Actions(deps): Bump actions/setup-python from 5.0.0 to 5.1.0 (#1218)fcd79bc
Actions(deps): Bump peter-evans/create-pull-request from 6.0.0 to 6.0.2 (#1213)507a900
Actions(deps): Bump actions/checkout from 4.1.1 to 4.1.2 (#1212)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show