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
Format python code with Black 19.10b0 #22
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grahamc
approved these changes
Feb 15, 2020
This reformats the code using black, making no manual changes. We use this in formatting NixOS module python code, and it keeps the code looking reasonable good with little/no effort required from maintainers or code reviewers. This diff can be reproduced from scratch by checking out master and re-running black.
Rebased onto origin/master and re-ran:
As before, there are no manual changes in this PR and the diff can be 100% reproduced from master by re-running black. |
adisbladis
approved these changes
Mar 15, 2020
bhipple
added a commit
to bhipple/nixops-aws
that referenced
this pull request
Mar 15, 2020
Having merged the format updates in NixOS#22, let's add it to pull request validation to ensure we don't backslide. Note that we could go one step further and add it to the `checkPhase` of the python package build, like [nixpkgs-review](https://github.com/Mic92/nixpkgs-review/blob/master/default.nix) does; however, doing so would break the build if someone tried to use the `nixops-aws` build on 19.09 vs. 20.03 vs. unstable, and since it's a CI/PR only concept this takes the more gentle approach of just adding it to Travis.
bhipple
added a commit
to bhipple/nixops-aws
that referenced
this pull request
Mar 15, 2020
Having merged the format updates in NixOS#22, let's add it to pull request validation to ensure we don't backslide. Note that we could go one step further and add it to the `checkPhase` of the python package build, like [nixpkgs-review](https://github.com/Mic92/nixpkgs-review/blob/master/default.nix) does; however, doing so would break the build if someone tried to use the `nixops-aws` build on 19.09 vs. 20.03 vs. unstable, and since it's a CI/PR only concept this takes the more gentle approach of just adding it to Travis.
bhipple
added a commit
to bhipple/nixops-aws
that referenced
this pull request
Mar 15, 2020
Having merged the format updates in NixOS#22, let's add it to pull request validation to ensure we don't backslide. Note that we could go one step further and add it to the `checkPhase` of the python package build, like [nixpkgs-review](https://github.com/Mic92/nixpkgs-review/blob/master/default.nix) does; however, doing so would break the build if someone tried to use the `nixops-aws` build on 19.09 vs. 20.03 vs. unstable, and since it's a CI/PR only concept this takes the more gentle approach of just adding it to Travis.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This reformats the code using black, making no manual changes. We use this in
formatting NixOS module python code, and it keeps the code looking reasonably
good with little/no effort required from maintainers or code reviewers.
This diff can be reproduced from scratch by checking out master and re-running black.