51 lines
953 B
TOML
51 lines
953 B
TOML
[project]
|
|
name = "autocommit"
|
|
version = "0.1.0"
|
|
description = "Auto commit tool with LLM integration"
|
|
readme = "README.md"
|
|
requires-python = ">=3.11"
|
|
dependencies = [
|
|
"openai>=1.0.0",
|
|
"rich>=13.0.0",
|
|
"pydantic>=2.0.0",
|
|
"pyyaml>=6.0", # 用于配置文件
|
|
"requests>=2.31.0", # 用于网络请求
|
|
"setuptools>=65.0",
|
|
"typer>=0.21.1",
|
|
]
|
|
|
|
[project.scripts]
|
|
autocommit = "autocommit.cli:main"
|
|
|
|
|
|
[build-system]
|
|
requires = ["setuptools>=65.0", "wheel"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[tool.setuptools]
|
|
packages = ["autocommit"]
|
|
include-package-data = true
|
|
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["autocommit"]
|
|
|
|
# 开发依赖
|
|
[project.optional-dependencies]
|
|
dev = [
|
|
"pytest>=8.0.0",
|
|
"pytest-cov>=4.0.0",
|
|
"pytest-mock>=3.0.0",
|
|
"black>=24.0.0",
|
|
"isort>=5.13.0",
|
|
"flake8>=7.0.0",
|
|
"mypy>=1.8.0",
|
|
]
|
|
|
|
[tool.black]
|
|
line-length = 88
|
|
target-version = ['py311']
|
|
|
|
[tool.isort]
|
|
profile = "black"
|