Skip to content
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

Fix the bug that the use of formatter in codemods has undetermined target Python version, resulting in hard-to-reason-with behavior #771

Merged
merged 3 commits into from
Sep 14, 2022

Conversation

MapleCCC
Copy link
Contributor

@MapleCCC MapleCCC commented Sep 6, 2022

This PR tries to fix the bug manifesting in #769. In summary, we specify that the black formatter should use the same target Python version which libcst itself uses.

@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 Sep 6, 2022
@MapleCCC MapleCCC mentioned this pull request Sep 6, 2022
@MapleCCC
Copy link
Contributor Author

MapleCCC commented Sep 6, 2022

The CI errors are because the CI images fail to download some Rust crates due to spurious network issue. Not our fault, I guess.

Copy link
Member

@zsol zsol left a comment

Choose a reason for hiding this comment

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

Thank you!

@zsol zsol merged commit 667c713 into Instagram:main Sep 14, 2022
@MapleCCC MapleCCC deleted the fix-codemod-formatter branch September 14, 2022 17:07
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