andrewyng / translation-agent

MIT License
4.83k stars 553 forks source link

ruff/isort configuration forces weird import block format #33

Closed Omaraldarwish closed 4 months ago

Omaraldarwish commented 4 months ago
[tool.ruff.lint.isort]
force-single-line = true
lines-after-imports = 2
known-first-party = ["translation-agent"]
from typing import ClassVar, Dict, Optional, Tuple

failes to pass check: I001 [*] Import block is un-sorted or un-formatted

when applying automatic fix, the import block looks like:

from typing import ClassVar
from typing import Dict
from typing import Optional
from typing import Tuple
j-dominguez9 commented 4 months ago

Thanks for noticing this; I actually updated this setting yesterday before seeing this issue. Sorry about that weird setting.