mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 02:38:25 +00:00
Remove spaces from import statements (#7859)
**Summary** Remove spaces from import statements such as ```python import tqdm . tqdm from tqdm . auto import tqdm ``` See also #7760 for a better solution. **Test Plan** New fixtures
This commit is contained in:
parent
644011fb14
commit
0f759af3cf
5 changed files with 29 additions and 4 deletions
|
@ -9,6 +9,8 @@ import foo\
|
|||
from foo\
|
||||
.bar import baz
|
||||
|
||||
import tqdm . tqdm
|
||||
|
||||
# At the top-level, force one empty line after an import, but allow up to two empty
|
||||
# lines.
|
||||
import os
|
||||
|
|
|
@ -35,3 +35,5 @@ from a import \
|
|||
( # comment
|
||||
bar,
|
||||
)
|
||||
|
||||
from tqdm . auto import tqdm
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue