mirror of
https://github.com/milvus-io/milvus.git
synced 2026-07-21 10:15:43 +00:00
issue: #49516 ### What changed - Upgrade test runtime pins and Docker base images to Python 3.12. - Update tests ruff target and Python-version docs to 3.12. - Refresh Python client dependency pins that block Python 3.12 installation. - Scope TestPyPI lookup to pymilvus via find-links so uv does not require unsafe-best-match. - Suppress third-party invalid escape sequence SyntaxWarning noise seen during Python 3.12 pytest collection. ### Verification - git diff --check - uv pip install --python /tmp/milvus-tests-py312-uv-default/bin/python --dry-run -r tests/python_client/requirements.txt - python3.12 -m venv /tmp/milvus-tests-py312-pip-requirements && pip install -r tests/python_client/requirements.txt --timeout 30 --retries 6 - pip check - python -c 'import pymilvus, ujson; print(pymilvus.__version__, ujson.__version__)' - python -m pytest --collect-only -q milvus_client/test_milvus_client_collection.py Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
33 lines
653 B
TOML
33 lines
653 B
TOML
line-length = 120
|
|
target-version = "py312"
|
|
extend-exclude = [
|
|
".venv",
|
|
"__pycache__",
|
|
"assets",
|
|
"*.ipynb_checkpoints",
|
|
]
|
|
|
|
[lint]
|
|
select = [
|
|
"E", # pycodestyle errors
|
|
"F", # pyflakes
|
|
"W", # pycodestyle warnings
|
|
"I", # isort
|
|
"UP", # pyupgrade
|
|
]
|
|
ignore = [
|
|
"E501", # line-too-long handled by formatter
|
|
"E741", # ambiguous variable names (l, I, O) common in test code
|
|
]
|
|
|
|
[lint.per-file-ignores]
|
|
"__init__.py" = ["F401", "F403"]
|
|
"conftest.py" = ["F401", "F811"]
|
|
"**/testcases/**/*.py" = ["E402"]
|
|
"**/chaos/**/*.py" = ["E402"]
|
|
|
|
[format]
|
|
quote-style = "double"
|
|
indent-style = "space"
|
|
line-ending = "auto"
|