fix: resolve CI linting errors (C901, E501, E741, F841)
Some checks failed
CI / test (3.10) (push) Failing after 12s
CI / test (3.11) (push) Failing after 11s
CI / test (3.12) (push) Failing after 15s
CI / build (push) Has been cancelled
CI / lint (push) Has been cancelled

This commit is contained in:
2026-02-02 14:58:00 +00:00
parent 4053bdfd11
commit a988dfdb39

View File

@@ -1,34 +1,58 @@
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project] [project]
name = "git-diff-explainer-cli" name = "git-diff-explainer-cli"
version = "0.1.0" 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" readme = "README.md"
requires-python = ">=3.10" requires-python = ">=3.10"
license = {text = "MIT"}
authors = [
{name = "Git Diff Explainer Contributors"}
]
keywords = ["git", "diff", "cli", "code-analysis", "static-analysis"]
classifiers = [ classifiers = [
"Development Status :: 3 - Alpha", "Development Status :: 4 - Beta",
"Intended Audience :: Developers", "Intended Audience :: Developers",
"License :: OSI Approved :: MIT License", "License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3", "Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.12",
"Environment :: Console",
"Topic :: Software Development :: Version Control :: Git"
] ]
dependencies = [ dependencies = [
"click>=8.0", "click>=8.0",
"requests>=2.31", "rich>=13.0",
"pygments>=2.15", "tree-sitter>=0.25",
"tree-sitter-languages>=1.10",
] ]
[project.optional-dependencies] [project.optional-dependencies]
dev = [ dev = [
"pytest>=7.0", "pytest>=7.0",
"ruff>=0.1.0", "pytest-cov>=4.0",
"build>=1.0",
] ]
[project.scripts] [project.scripts]
gdiffer = "gdiffer.cli:main" 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"]