[project] name = "mini-agent" version = "0.1.0" description = "Add your description here" readme = "README.md" authors = [ { name = "shell", email = "asypost@yeah.net" } ] requires-python = ">=3.15" dependencies = [ "fastapi>=0.162.0", "openai>=3.42.0", "pydantic>=2.14.2", "pyodbc>=5.3.0", "python-dotenv>=1.2.4", "sqlalchemy>=2.1.6", "tavily-python>=0.8.5", "uvicorn[standard]>=0.54.0", ] [project.scripts] mini-agent = "mini_agent:main" [build-system] requires = ["uv_build>=0.13.6,<0.14.0"] build-backend = "uv_build" [tool.ruff] line-length = 100 indent-width = 4 target-version = "py315" [tool.ruff.format] quote-style = "double" indent-style = "space" line-ending = "lf" # 多行参数尽量保留尾随逗号 skip-magic-trailing-comma = false # 自动格式化 docstring docstring-code-format = true docstring-code-line-length = 88 [tool.ruff.lint] select = [ "E", # pycodestyle "F", # Pyflakes "I", # isort "UP", # pyupgrade "B", # flake8-bugbear "SIM", # flake8-simplify ] ignore = [ "E501", # 行长度交给 formatter ] [tool.ruff.lint.isort] combine-as-imports = true force-sort-within-sections = true