fix: resolve import sorting conflicts between ruff and isort

- Add isort configuration to pyproject.toml with black profile
- Fix import formatting to be compatible with both ruff and isort
- All lint checks now pass (both ruff and isort)
- Tests continue to pass
This commit is contained in:
longhao 2025-05-27 11:52:33 +08:00 committed by Hal
parent ec677fb709
commit 09f5111eda
3 changed files with 8 additions and 12 deletions

View file

@ -3,12 +3,7 @@
import logging
from typing import Any
from ..core import (
InvalidPackageNameError,
NetworkError,
PyPIClient,
PyPIError,
)
from ..core import InvalidPackageNameError, NetworkError, PyPIClient, PyPIError
from ..core.version_utils import VersionCompatibility
logger = logging.getLogger(__name__)

View file

@ -3,12 +3,7 @@
import logging
from typing import Any
from ..core import (
InvalidPackageNameError,
NetworkError,
PyPIClient,
PyPIError,
)
from ..core import InvalidPackageNameError, NetworkError, PyPIClient, PyPIError
logger = logging.getLogger(__name__)