[build-system] requires = ["setuptools>=61.0", "wheel"] build-backend = "setuptools.build_meta" [project] name = "llm-codegen" version = "0.1.0" description = "基于大语言模型的自动化代码生成工具,根据README.md描述自动生成完整的Python包代码,具备代码检查、测试和自动修复能力。" authors = [ {name = "Your Name", email = "your.email@example.com"} ] readme = "README.md" license = {text = "MIT"} requires-python = ">=3.9" dependencies = [ "typer>=0.9.0", "rich>=13.0.0", "loguru>=0.7.0", "openai>=1.0.0", ] [project.optional-dependencies] dev = [ "pytest>=7.0.0", "pytest-cov>=4.0.0", "pylint>=3.0.0", "mypy>=1.0.0", "black>=23.0.0", "pre-commit>=3.0.0", ] [project.urls] Homepage = "https://github.com/yourusername/llm-codegen" [project.scripts] llm-codegen = "llm_codegen.cli:app" [tool.llm-codegen] check_tools = ["pytest", "pylint", "mypy", "black"] max_retries = 3 dangerous_commands = ["rm", "sudo", "chmod", "dd"] [tool.black] line-length = 88 target-version = ['py39'] [tool.pytest.ini_options] testpaths = ["tests"] addopts = "--cov=src/llm_codegen --cov-report=term-missing"