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.
One of the last remains tasks of #4776
Closes #5079
Remove --diff option which currently prevents black from re-formatting modified Python files.
I only made changes to
.pre-commit-config.yaml
. Pre-commit CI automatically made the changes to all other files.After Slacking with @mekarpeles, we will move the following question to a separate PR.
Question: If we are going to modify 40 Python files, given #2981 (comment) should we modify even more by:
--skip-string-normalization
and allowing black to favor double-quoted strings in Python code. -- OR --Adding double-quote-string-fixer to prefer single-quotes in Python files instead of black-standard double-quotes. See: pre-commit: Should we favor single quoted strings in Python? #6602Technical
Once this is landed we should establish a flake8 baseline against:
flake8 **/*.py --exclude="./.*,./vendor/*" --ignore=E203,W503 --max-complexity=41 --max-line-length=1195
Testing
Screenshot
Stakeholders