Skip to content

Run pyupgrade with py36-plus flag - #3987

Closed
HarryPeach wants to merge 1 commit into
python-poetry:masterfrom
HarryPeach:master
Closed

HarryPeach wants to merge 1 commit into
python-poetry:masterfrom
HarryPeach:master

Conversation

@HarryPeach

Copy link
Copy Markdown
Contributor

I noticed that #3861 ran a pyupgrade sweep on the codebase to remove some old code but still had some remaining fluff like from __future__ import unicode_literals which shouldn't be needed >3.0.

I ran the same tool with the --py36-plus flag, which should make some more edits. Let me know if any further changes are needed!

Relates-to: #3860

Pull Request Check List

Resolves: N/A

  • [ N/A ] Added tests for changed code.
  • [ N/A ] Updated documentation for changed code.

@abn

abn commented Apr 23, 2021

Copy link
Copy Markdown
Member

Looks like this change is equivalent to #3988 (minus pre-commit).

@kamyar

kamyar commented Apr 23, 2021

Copy link
Copy Markdown
Contributor

Have completely missed this PR by 2 hours 🤦 , @abn how do you suggest we proceed?

@abn

abn commented May 1, 2021

Copy link
Copy Markdown
Member

@kamyar considering #3988 is more complete, I am inclined to use that. Maybe add @HarryPeach as a co-author of the formatting changes commit?

@kamyar

kamyar commented May 1, 2021 •

Copy link
Copy Markdown
Contributor

@abn great suggestion, just amended my commits in #3988 to also include @HarryPeach :)
Can you take a look if it look goods or something else is also needed?

neersighted added a commit that referenced this pull request Nov 15, 2021
Implements the reviews from #3987 and #3988. Special thanks to the
committers and reviewers there.

Co-authored-by: Harry Peach <harrypeach1999@gmail.com>
Co-authored-by: Kamyar Ghasemlou <kamyar@kamy.me>
Co-authored-by: Leonardo Freua <leonardo.batista.freua@gmail.com>
@neersighted

Copy link
Copy Markdown
Member

I'm closing this in favor of #4758 as it uses the current pre-commit structure, skips files that should not be altered by pyupgrade (get-poetry.py and install-poetry.py), and because there have been enough changes to master that a new run is needed.

Thank you for the work on these PRs! I've incorporated the changes from review into my version, and given credit where due. Please submit more PRs cleaning out old code/cruft when you can!

neersighted added a commit that referenced this pull request Nov 15, 2021
Implements the reviews from #3987 and #3988. Special thanks to the
committers and reviewers there.

Co-authored-by: Harry Peach <harrypeach1999@gmail.com>
Co-authored-by: Kamyar Ghasemlou <kamyar@kamy.me>
Co-authored-by: Leonardo Freua <leonardo.batista.freua@gmail.com>
neersighted added a commit that referenced this pull request Nov 15, 2021
Implements the reviews from #3987 and #3988. Special thanks to the
committers and reviewers there.

Co-authored-by: Harry Peach <harrypeach1999@gmail.com>
Co-authored-by: Kamyar Ghasemlou <kamyar@kamy.me>
Co-authored-by: Leonardo Freua <leonardo.batista.freua@gmail.com>
neersighted added a commit that referenced this pull request Nov 15, 2021
Implements the reviews from #3987 and #3988. Special thanks to the
committers and reviewers there.

Co-authored-by: Harry Peach <harrypeach1999@gmail.com>
Co-authored-by: Kamyar Ghasemlou <kamyar@kamy.me>
Co-authored-by: Leonardo Freua <leonardo.batista.freua@gmail.com>
neersighted added a commit that referenced this pull request Nov 15, 2021
Implements the reviews from #3987 and #3988. Special thanks to the
committers and reviewers there.

Co-authored-by: Harry Peach <harrypeach1999@gmail.com>
Co-authored-by: Kamyar Ghasemlou <kamyar@kamy.me>
Co-authored-by: Leonardo Freua <leonardo.batista.freua@gmail.com>
neersighted added a commit that referenced this pull request Nov 15, 2021
Implements the reviews from #3987 and #3988. Special thanks to the
committers and reviewers there.

Co-authored-by: Harry Peach <harrypeach1999@gmail.com>
Co-authored-by: Kamyar Ghasemlou <kamyar@kamy.me>
Co-authored-by: Leonardo Freua <leonardo.batista.freua@gmail.com>
neersighted added a commit that referenced this pull request Nov 15, 2021
Implements the reviews from #3987 and #3988. Special thanks to the
committers and reviewers there.

Co-authored-by: Harry Peach <harrypeach1999@gmail.com>
Co-authored-by: Kamyar Ghasemlou <kamyar@kamy.me>
Co-authored-by: Leonardo Freua <leonardo.batista.freua@gmail.com>
neersighted added a commit that referenced this pull request Nov 16, 2021
Implements the reviews from #3987 and #3988. Special thanks to the
committers and reviewers there.

Co-authored-by: Harry Peach <harrypeach1999@gmail.com>
Co-authored-by: Kamyar Ghasemlou <kamyar@kamy.me>
Co-authored-by: Leonardo Freua <leonardo.batista.freua@gmail.com>
neersighted added a commit that referenced this pull request Nov 16, 2021
Implements the reviews from #3987 and #3988. Special thanks to the
committers and reviewers there.

Co-authored-by: Harry Peach <harrypeach1999@gmail.com>
Co-authored-by: Kamyar Ghasemlou <kamyar@kamy.me>
Co-authored-by: Leonardo Freua <leonardo.batista.freua@gmail.com>
neersighted added a commit that referenced this pull request Nov 17, 2021
Implements the reviews from #3987 and #3988. Special thanks to the
committers and reviewers there.

Co-authored-by: Harry Peach <harrypeach1999@gmail.com>
Co-authored-by: Kamyar Ghasemlou <kamyar@kamy.me>
Co-authored-by: Leonardo Freua <leonardo.batista.freua@gmail.com>
neersighted added a commit that referenced this pull request Nov 17, 2021
Implements the reviews from #3987 and #3988. Special thanks to the
committers and reviewers there.

Co-authored-by: Harry Peach <harrypeach1999@gmail.com>
Co-authored-by: Kamyar Ghasemlou <kamyar@kamy.me>
Co-authored-by: Leonardo Freua <leonardo.batista.freua@gmail.com>
@github-actions

Copy link
Copy Markdown

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Feb 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants