Skip to content

Make trailing comma logic more consise - #4202

Merged
hauntsaninja merged 9 commits into
psf:mainfrom
cobaltt7:refactor-trailing-comma-logic
Feb 28, 2024
Merged

Make trailing comma logic more consise#4202
hauntsaninja merged 9 commits into
psf:mainfrom
cobaltt7:refactor-trailing-comma-logic

Conversation

@cobaltt7

@cobaltt7 cobaltt7 commented Feb 1, 2024

Copy link
Copy Markdown
Collaborator

Description

Simplified the logic for adding trailing commas. Turned out it was actually a bit simpler than I thought.
See #4164 (comment)

Checklist - did you ...

  • [-] Add an entry in CHANGES.md if necessary?
  • [-] Add / update tests if necessary?
  • [-] Add new / update outdated documentation?

cobaltt7 and others added 3 commits February 1, 2024 10:26
Signed-off-by: RedGuy12 <61329810+RedGuy12@users.noreply.github.com>
Signed-off-by: RedGuy12 <61329810+RedGuy12@users.noreply.github.com>
@cobaltt7
cobaltt7 marked this pull request as draft February 1, 2024 16:39
@cobaltt7
cobaltt7 marked this pull request as ready for review February 1, 2024 16:56
Signed-off-by: RedGuy12 <61329810+RedGuy12@users.noreply.github.com>
@github-actions

github-actions Bot commented Feb 1, 2024

Copy link
Copy Markdown
Contributor

diff-shades reports zero changes comparing this PR (8e160a6) to main (8990023).


What is this? | Workflow run | diff-shades documentation

@JelleZijlstra JelleZijlstra left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks, two nits

Comment thread src/black/linegen.py Outdated
Comment thread src/black/nodes.py Outdated

@hauntsaninja hauntsaninja left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thank you again! :-)

@hauntsaninja hauntsaninja added the ci: skip news Pull requests that don't need a changelog entry. label Feb 28, 2024
@hauntsaninja
hauntsaninja merged commit d0287e1 into psf:main Feb 28, 2024
@cobaltt7
cobaltt7 deleted the refactor-trailing-comma-logic branch February 28, 2024 23:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci: skip news Pull requests that don't need a changelog entry.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants