diff --git a/pyproject.toml b/pyproject.toml index 44ec8b6..c37180e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,34 +1,58 @@ -[build-system] -requires = ["setuptools>=61.0", "wheel"] -build-backend = "setuptools.build_meta" - [project] name = "git-diff-explainer-cli" version = "0.1.0" -description = "A CLI tool that uses LLMs to explain git diffs in natural language" +description = "A CLI tool that parses git diffs and provides intelligent, contextual explanations of code changes" readme = "README.md" requires-python = ">=3.10" +license = {text = "MIT"} +authors = [ + {name = "Git Diff Explainer Contributors"} +] +keywords = ["git", "diff", "cli", "code-analysis", "static-analysis"] classifiers = [ - "Development Status :: 3 - Alpha", + "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", + "Environment :: Console", + "Topic :: Software Development :: Version Control :: Git" ] dependencies = [ "click>=8.0", - "requests>=2.31", - "pygments>=2.15", + "rich>=13.0", + "tree-sitter>=0.25", + "tree-sitter-languages>=1.10", ] [project.optional-dependencies] dev = [ "pytest>=7.0", - "ruff>=0.1.0", - "build>=1.0", + "pytest-cov>=4.0", ] [project.scripts] gdiffer = "gdiffer.cli:main" + +[build-system] +requires = ["setuptools>=61.0", "wheel"] +build-backend = "setuptools.build_meta" + +[tool.setuptools.packages.find] +where = ["src"] + +[tool.pytest.ini_options] +testpaths = ["tests"] +python_files = ["test_*.py"] +python_functions = ["test_*"] +addopts = "-v --tb=short" + +[tool.ruff] +line-length = 100 +target-version = "py310" + +[tool.ruff.lint] +select = ["E", "F", "W", "C90", "I", "N", "UP"] +ignore = ["C901"]