mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-31 15:48:22 +00:00
Add trailing zero between dot and exponential (#7956)
Closes https://github.com/astral-sh/ruff/issues/7952.
This commit is contained in:
parent
3d03e75a9d
commit
aa6846c78c
3 changed files with 43 additions and 5 deletions
|
@ -0,0 +1,28 @@
|
|||
---
|
||||
source: crates/ruff_python_formatter/tests/fixtures.rs
|
||||
input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/number.py
|
||||
---
|
||||
## Input
|
||||
```py
|
||||
.1
|
||||
1.
|
||||
1E+1
|
||||
1E-1
|
||||
1.E+1
|
||||
1.0E+1
|
||||
1.1E+1
|
||||
```
|
||||
|
||||
## Output
|
||||
```py
|
||||
0.1
|
||||
1.0
|
||||
1e1
|
||||
1e-1
|
||||
1.0e1
|
||||
1.0e1
|
||||
1.1e1
|
||||
```
|
||||
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue