diff --git a/app/local-ai-commit-reviewer/pyproject.toml b/app/local-ai-commit-reviewer/pyproject.toml new file mode 100644 index 0000000..8a9753b --- /dev/null +++ b/app/local-ai-commit-reviewer/pyproject.toml @@ -0,0 +1,81 @@ +[build-system] +requires = ["setuptools>=61.0", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "local-ai-commit-reviewer" +version = "0.1.0" +description = "A CLI tool that reviews Git commits locally using lightweight LLMs" +readme = "README.md" +license = {text = "MIT"} +requires-python = ">=3.10" +authors = [ + {name = "Local AI Commit Reviewer Contributors"} +] +keywords = ["git", "cli", "llm", "code-review", "ollama"] +classifiers = [ + "Development Status :: 4 - Beta", + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", +] +dependencies = [ + "click>=8.1.7", + "gitpython>=3.1.43", + "ollama>=0.3.3", + "rich>=13.7.1", + "pydantic>=2.6.1", + "pyyaml>=6.0.1", +] + +[project.optional-dependencies] +dev = [ + "pytest>=7.4.0", + "pytest-cov>=4.1.0", + "pytest-mock>=3.12.0", + "black>=23.0.0", + "ruff>=0.1.0", + "mypy>=1.7.0", +] + +[project.scripts] +aicr = "src.cli:main" + +[tool.setuptools.packages.find] +where = ["."] +include = ["src*"] + +[tool.pytest.ini_options] +testpaths = ["tests"] +python_files = ["test_*.py"] +python_functions = ["test_*"] +addopts = "-v --tb=short" + +[tool.coverage.run] +source = ["src"] +omit = ["tests/*"] + +[tool.coverage.report] +exclude_lines = ["pragma: no cover", "def __repr__", "raise NotImplementedError"] + +[tool.black] +line-length = 100 +target-version = ["py310"] +include = "\\.pyi?$" + +[tool.ruff] +line-length = 100 +target-version = "py310" + +[tool.ruff.lint] +select = ["E", "W", "F", "I", "UP", "B", "C4", "A", "SIM", "ARG", "PL", "RUF"] +ignore = ["E501", "B008", "C901"] + +[tool.mypy] +python_version = "3.10" +warn_return_any = true +warn_unused_configs = true +ignore_missing_imports = true