-
Notifications
You must be signed in to change notification settings - Fork 47
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
Code formatting using black (infra) #1163
Merged
Merged
Commits on Apr 11, 2024
-
Set line length to 79 when calling black
black uses pyproject.toml to store its configuration. Update the different projects in the monorepo to match line length of 79 when calling black. See black documentation[1] for more information. [1] https://black.readthedocs.io/en/stable/usage_and_configuration/the_basics.html#configuration-via-a-file
Configuration menu - View commit details
-
Copy full SHA for 9ec3ca8 - Browse repository at this point
Copy the full SHA 9ec3ca8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 52746eb - Browse repository at this point
Copy the full SHA 52746ebView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0ca6c6d - Browse repository at this point
Copy the full SHA 0ca6c6dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1c38c49 - Browse repository at this point
Copy the full SHA 1c38c49View commit details -
Configuration menu - View commit details
-
Copy full SHA for a63920c - Browse repository at this point
Copy the full SHA a63920cView commit details -
Format checkbox-ng using black
Command used: black . --line-length 79 --extend-exclude "/vendor/"
Configuration menu - View commit details
-
Copy full SHA for 1af0efd - Browse repository at this point
Copy the full SHA 1af0efdView commit details -
Format checkbox-support using black
Command used: black . --line-length 79 --extend-exclude "/vendor/"
Configuration menu - View commit details
-
Copy full SHA for 6908d78 - Browse repository at this point
Copy the full SHA 6908d78View commit details -
Format providers in contrib area using black
Command used: black . --line-length 79 --extend-exclude "/vendor/"
Configuration menu - View commit details
-
Copy full SHA for 0728b42 - Browse repository at this point
Copy the full SHA 0728b42View commit details -
Format miscelanneous code using black
Command used: black . --line-length 79 --extend-exclude "/vendor/"
Configuration menu - View commit details
-
Copy full SHA for 2e45edc - Browse repository at this point
Copy the full SHA 2e45edcView commit details -
Command used: black . --line-length 79 --extend-exclude "/vendor/"
Configuration menu - View commit details
-
Copy full SHA for e2508ed - Browse repository at this point
Copy the full SHA e2508edView commit details -
Command used: black . --line-length 79 --extend-exclude "/vendor/"
Configuration menu - View commit details
-
Copy full SHA for b963cd7 - Browse repository at this point
Copy the full SHA b963cd7View commit details -
Ignore E203 (Whitespace before ':')
As explained in this issue[1], E203[2] is not PEP 8 compliant so it should be ignored when running flake8. Black is now being used in the codebase, and it takes care of the formatting. [1] psf/black#315 [2] https://www.flake8rules.com/rules/E203.html
Configuration menu - View commit details
-
Copy full SHA for 6736ce7 - Browse repository at this point
Copy the full SHA 6736ce7View commit details -
Ignore flake8 complaints for a few specific lines in the base provider
Although Black is configured at 79 chars line length, it keeps a few lines to 80, 81 or 82 chars. Flake8 will complain about this, but we can ignore these.
Configuration menu - View commit details
-
Copy full SHA for c3a18c9 - Browse repository at this point
Copy the full SHA c3a18c9View commit details -
Configuration menu - View commit details
-
Copy full SHA for e77ab97 - Browse repository at this point
Copy the full SHA e77ab97View commit details -
Waiting until the squashed commit gets merged, and will create one afterwards.
Configuration menu - View commit details
-
Copy full SHA for 7745ec3 - Browse repository at this point
Copy the full SHA 7745ec3View commit details
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.