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

Upgrade docformatter to 1.7.0 to support Python 3.13 #21526

Conversation

krishnan-chandra
Copy link
Contributor

@krishnan-chandra krishnan-chandra commented Oct 14, 2024

The current version of docformatter in the Pants codebase does not support Python 3.13, due to the use of the lib2to3 module which was removed. The most recent release of docformatter was in July 2023, and it's the release that is used here.

Related Slack discussion: https://pantsbuild.slack.com/archives/C046T6T9U/p1728393944035549?thread_ts=1728386679.902609&cid=C046T6T9U

Process

This PR is specifically split out into 3 steps/commits:

  1. Upgrading the lockfile + setting the new version + release notes
  2. Formatting the whole codebase
  3. Updating .git-blame-ignore-revs with the new changes from step 2

Important

If merging, this PR should be merged via rebase-and-merge rather than squash-and-merge so that the changes to git-blame-ignore-revs remain intact.

@krishnan-chandra krishnan-chandra added category:internal CI, fixes for not-yet-released features, etc. backend: Python Python backend-related issues labels Oct 14, 2024
@krishnan-chandra krishnan-chandra marked this pull request as draft October 16, 2024 01:22
@krishnan-chandra krishnan-chandra force-pushed the upgrade-docformatter-latest branch 2 times, most recently from 50ffdd5 to 66667a1 Compare October 23, 2024 05:36
@krishnan-chandra krishnan-chandra changed the title Upgrade docformatter to the latest version Upgrade docformatter to 1.7.0 to support Python 3.13 Oct 23, 2024
@krishnan-chandra krishnan-chandra deleted the upgrade-docformatter-latest branch October 23, 2024 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend: Python Python backend-related issues category:internal CI, fixes for not-yet-released features, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant