Skip to content

Start upgrading codebase to Py3 for every changed file#57936

Merged
dwoz merged 2 commits into
saltstack:masterfrom
s0undt3ch:features/pyupgrade
Jul 28, 2020
Merged

Start upgrading codebase to Py3 for every changed file#57936
dwoz merged 2 commits into
saltstack:masterfrom
s0undt3ch:features/pyupgrade

Conversation

@s0undt3ch

Copy link
Copy Markdown
Contributor

What does this PR do?

Starts upgrading the codebase to Py3 for every changed file by running pyupgrade against it.
We only do this for each changed file and not the whole code base to avoid MASSIVE code churn.

@s0undt3ch s0undt3ch added the Magnesium Mg release after Na prior to Al label Jul 14, 2020
@s0undt3ch
s0undt3ch force-pushed the features/pyupgrade branch from 45220bd to 77bcc3a Compare July 14, 2020 09:19
@s0undt3ch

Copy link
Copy Markdown
Contributor Author

The pipeline changes worked, see https://jenkinsci.saltstack.com/job/pr-pre-commit/job/PR-57936/1/console

@s0undt3ch

Copy link
Copy Markdown
Contributor Author

This PR only "works" as expected once https://github.com/saltstack/salt-jenkins-pipeline-libs/pull/33 is merged

@s0undt3ch
s0undt3ch force-pushed the features/pyupgrade branch 5 times, most recently from e4e2d65 to 288727b Compare July 16, 2020 12:59
@s0undt3ch
s0undt3ch marked this pull request as ready for review July 27, 2020 06:28
@s0undt3ch
s0undt3ch requested a review from a team as a code owner July 27, 2020 06:28
@ghost
ghost requested review from Akm0d and removed request for a team July 27, 2020 06:28
@s0undt3ch
s0undt3ch force-pushed the features/pyupgrade branch from 288727b to 7d912e2 Compare July 27, 2020 06:32
@dwoz dwoz added the needs-testcase PR needs test cases written, or the issue is about a bug/feature that needs test cases label Jul 27, 2020

@waynew waynew left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Does this mean that everyone who submits code will be running pyupgrade as part of their PR?

@s0undt3ch

Copy link
Copy Markdown
Contributor Author

If they have pre-commit configured, yes, for the files they change, only those.
It's either that or we do it ourselves in one go.

@s0undt3ch s0undt3ch removed the needs-testcase PR needs test cases written, or the issue is about a bug/feature that needs test cases label Jul 28, 2020
@s0undt3ch

Copy link
Copy Markdown
Contributor Author

To the whole codebase.

@dwoz
dwoz merged commit cf391a2 into saltstack:master Jul 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Magnesium Mg release after Na prior to Al

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants