We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Version: 19.10b
Given the following code:
[ { "items": { "properties": {"type": {"const": "array"}}, "required": ["type"], }, } ]
Is shrunk to:
[{"items": {"properties": {"type": {"const": "array"}}, "required": ["type"],},}]
Which leaves a trailing commas in place that, according to flake8 (E231), ought to be removed.
flake8
The text was updated successfully, but these errors were encountered:
I think this is a dup of #1288
Worse yet, in those cases it leaves trailing commas behind when a collection ends up compressed into one line.
Sorry, something went wrong.
Prettier has a nice rule:
Easy, simple, consistent. I hope black considers adopting this.
In the meantime, you can "fix" this by downgrading:
pip install black==19.3b0
Interesting. What feature-add introduced this bug?
Yes, this is basically #1288. The behavior is an unfortunate consequence of #826.
No branches or pull requests
Version: 19.10b
Given the following code:
Is shrunk to:
Which leaves a trailing commas in place that, according to
flake8
(E231), ought to be removed.The text was updated successfully, but these errors were encountered: