-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Remove numeric underscore normalization #696
Conversation
0be016e
to
2a30be8
Compare
Pull Request Test Coverage Report for Build 889
💛 - Coveralls |
4 similar comments
Pull Request Test Coverage Report for Build 889
💛 - Coveralls |
Pull Request Test Coverage Report for Build 889
💛 - Coveralls |
Pull Request Test Coverage Report for Build 889
💛 - Coveralls |
Pull Request Test Coverage Report for Build 889
💛 - Coveralls |
Pull Request Test Coverage Report for Build 909
💛 - Coveralls |
README.md
Outdated
the `-N` or `--skip-numeric-underscore-normalization` command line option | ||
makes *Black* preserve underscores in numeric literals. | ||
styled as `2L` instead of `2l` to avoid confusion between `l` and `1`. | ||
In Python 3.6 and later, *Black* preserves underscores in numeric literals. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add "unchanged"? Otherwise, I'm not sure it's worth mentioning something Black doesn't change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, fair enough. I'll just remove this sentence.
tests/data/fmtonoff.py
Outdated
@@ -4,13 +4,13 @@ | |||
|
|||
from third_party import X, Y, Z | |||
|
|||
from library import some_connection, \ | |||
some_decorator | |||
from library import some_connection, some_decorator |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like you accidentally blackened the whole file.
tests/data/function.py
Outdated
from library import some_connection, \ | ||
some_decorator | ||
f'trigger 3.6 mode' | ||
from library import some_connection, some_decorator |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here.
Hi, when this will be released? |
The option used to preserve underscores in numeric literals has been removed from Black. Black no longer normalizes numeric literals to include _ separators. See: psf/black#549 psf/black#696 Signed-off-by: Enrico Usai <[email protected]>
The option used to preserve underscores in numeric literals has been removed from Black. Black no longer normalizes numeric literals to include _ separators. See: psf/black#549 psf/black#696 Signed-off-by: Enrico Usai <[email protected]>
Fixes #549.