
* Made hex lower case * Refactored numeric formatting section * Redid some refactoring and removed bloat * Removed additions from test_requirements.txt * Primer now expects expected changes * Undid some refactoring * added to changelog * Update src/black/__init__.py Co-authored-by: Zsolt Dollenstein <zsol.zsol@gmail.com> Co-authored-by: Zsolt Dollenstein <zsol.zsol@gmail.com> Co-authored-by: Cooper Lees <me@cooperlees.com>
45 lines
597 B
Python
45 lines
597 B
Python
#!/usr/bin/env python3.6
|
|
|
|
x = 123456789
|
|
x = 123456
|
|
x = .1
|
|
x = 1.
|
|
x = 1E+1
|
|
x = 1E-1
|
|
x = 1.000_000_01
|
|
x = 123456789.123456789
|
|
x = 123456789.123456789E123456789
|
|
x = 123456789E123456789
|
|
x = 123456789J
|
|
x = 123456789.123456789J
|
|
x = 0Xb1aCc
|
|
x = 0B1011
|
|
x = 0O777
|
|
x = 0.000000006
|
|
x = 10000
|
|
x = 133333
|
|
|
|
# output
|
|
|
|
|
|
#!/usr/bin/env python3.6
|
|
|
|
x = 123456789
|
|
x = 123456
|
|
x = 0.1
|
|
x = 1.0
|
|
x = 1e1
|
|
x = 1e-1
|
|
x = 1.000_000_01
|
|
x = 123456789.123456789
|
|
x = 123456789.123456789e123456789
|
|
x = 123456789e123456789
|
|
x = 123456789j
|
|
x = 123456789.123456789j
|
|
x = 0xb1acc
|
|
x = 0b1011
|
|
x = 0o777
|
|
x = 0.000000006
|
|
x = 10000
|
|
x = 133333
|