Skip to content

Conversation

@zsol
Copy link
Contributor

@zsol zsol commented Jul 29, 2022

#187 broke the logic that keeps track of indentation for the purposes of line length tracking by not letting visit_IndentedBlock run in the transformer.

This affected (import) lines that are long enough to fit line_length without the indentation, but too long if we count indentation too.

This PR adds a test case for this situation.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 29, 2022
Copy link
Collaborator

@amyreese amyreese left a comment

Choose a reason for hiding this comment

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

Other than the changelog change, looks good to me.

CHANGELOG.md Outdated
$ git shortlog -sn v1.0.1...
7 dependabot[bot]
5 John Reese
5 John Reesemk
Copy link
Collaborator

Choose a reason for hiding this comment

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

lolwat?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

mk is definitely not my password anywhere 👀

@zsol zsol force-pushed the fix-indentation-tracking branch from f565769 to ce0aa88 Compare July 29, 2022 18:53
@zsol zsol force-pushed the fix-indentation-tracking branch from ce0aa88 to dd1bb07 Compare July 29, 2022 19:02
@amyreese amyreese merged commit d0d551f into facebook:main Jul 29, 2022
@zsol zsol deleted the fix-indentation-tracking branch July 29, 2022 20:24
zsol pushed a commit that referenced this pull request Aug 1, 2022
@thatch thatch mentioned this pull request Sep 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants