Closed Omaraldarwish closed 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
Expected behavior: pre-commit checks should allow multiple imports from the same module using the same line!
Proposed solution: change line 92 of pyproject.toml to force-single-line = false
Thanks for noticing this; I actually updated this setting yesterday before seeing this issue. Sorry about that weird setting.
failes to pass check: I001 [*] Import block is un-sorted or un-formatted
when applying automatic fix, the import block looks like:
Expected behavior: pre-commit checks should allow multiple imports from the same module using the same line!
Proposed solution: change line 92 of pyproject.toml to force-single-line = false