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:
parent
ec677fb709
commit
09f5111eda
@ -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__)
|
||||
|
@ -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__)
|
||||
|
||||
|
@ -72,6 +72,12 @@ ignore = [
|
||||
[tool.ruff.lint.per-file-ignores]
|
||||
"__init__.py" = ["F401"]
|
||||
|
||||
[tool.isort]
|
||||
profile = "black"
|
||||
multi_line_output = 3
|
||||
line_length = 88
|
||||
known_first_party = ["pypi_query_mcp"]
|
||||
|
||||
[tool.mypy]
|
||||
python_version = "3.10"
|
||||
check_untyped_defs = true
|
||||
|
Loading…
x
Reference in New Issue
Block a user