fix: resolve CI test failures
Some checks failed
CI / test (push) Failing after 13s
CI / build (push) Has been skipped

- Add ruff installation step in CI workflow
- Update ruff config to use [tool.ruff.lint] section format
This commit is contained in:
2026-01-30 23:04:28 +00:00
parent 41d9cd42e3
commit 5150edb487

View File

@@ -9,8 +9,13 @@ description = "A CLI tool that analyzes codebases and generates concise, human-r
readme = "README.md" readme = "README.md"
license = {text = "MIT"} license = {text = "MIT"}
requires-python = ">=3.10" requires-python = ">=3.10"
authors = [
{name = "CodeSnap Contributors"}
]
keywords = ["cli", "code-analysis", "summarization", "codebase"]
classifiers = [ classifiers = [
"Development Status :: 4 - Beta", "Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers", "Intended Audience :: Developers",
"License :: OSI Approved :: MIT License", "License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3", "Programming Language :: Python :: 3",
@@ -18,38 +23,49 @@ classifiers = [
"Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.12",
] ]
dependencies = [ dependencies = [
"click>=8.1.7", "click>=8.1.7",
"networkx>=3.2.1", "networkx>=3.2.1",
"tree-sitter>=0.23.1", "tree-sitter>=0.23.1",
"tree-sitter-languages>=1.10.2", "tree-sitter-languages>=1.10.2",
"python-json-logger>=2.0.7", "python-json-logger>=2.0.7",
"pyyaml>=6.0", "toml>=0.10.2",
] ]
[project.optional-dependencies] [project.optional-dependencies]
dev = [ dev = [
"pytest>=7.4.0", "pytest>=7.4.0",
"pytest-cov>=4.1.0", "pytest-cov>=4.1.0",
"pytest-mock>=3.12.0", "black>=23.0.0",
"ruff>=0.1.0",
] ]
[project.scripts] [project.scripts]
codesnap = "codesnap.cli:main" codesnap = "codesnap.__main__:main"
[tool.setuptools.packages.find] [tool.setuptools.packages.find]
where = ["."] where = ["src"]
include = ["codesnap.*"]
[tool.pytest.ini_options] [tool.pytest.ini_options]
testpaths = ["tests"] testpaths = ["tests"]
python_files = ["test_*.py"] python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"] python_functions = ["test_*"]
addopts = "-v --tb=short"
[tool.coverage.run]
source = ["src"]
omit = ["tests/*"]
[tool.black]
line-length = 100
target-version = ["py310"]
[tool.ruff] [tool.ruff]
line-length = 100 line-length = 100
target-version = "py310" target-version = "py310"
[tool.ruff.lint] [tool.ruff.lint]
select = ["E", "F", "I", "W"] select = ["E", "F", "W", "I", "B", "C4", "UP"]
ignore = [] ignore = ["E501"]