You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
buffer_platform/buffer_platform_v2/pyproject.toml

62 lines
1.3 KiB

[project]
name = "buffer-platform-v2"
version = "2.0.0"
description = "期货智析系统 - 重构版本"
requires-python = ">=3.11"
[tool.ruff]
target-version = "py311"
line-length = 120
src = ["app", "tests"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
"RUF", # ruff-specific rules
]
ignore = [
"E501", # line too long (handled by formatter)
"B008", # do not perform function calls in argument defaults
"RUF001", # ambiguous unicode characters in string (Chinese)
"RUF002", # ambiguous unicode characters in docstring (Chinese)
"RUF003", # ambiguous unicode characters in comment (Chinese)
]
[tool.ruff.lint.isort]
known-first-party = ["app"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
asyncio_mode = "auto"
addopts = [
"-v",
"--tb=short",
"--strict-markers",
]
markers = [
"unit: Unit tests",
"integration: Integration tests",
"slow: Slow running tests",
]
[tool.coverage.run]
source = ["app"]
omit = [
"app/main.py",
"*/tests/*",
]
[tool.coverage.report]
show_missing = true
fail_under = 60