add ruff. fix all linting

This commit is contained in:
Matteo Rosati
2026-04-22 17:03:01 +02:00
parent bd5f649663
commit 33b46c2c21
14 changed files with 294 additions and 63 deletions
+45
View File
@@ -26,6 +26,51 @@ packages = ["chromy", "chromy.handlers"]
[dependency-groups]
dev = [
"mypy>=1.18.2",
"nuitka[onefile]>=4.0.8",
"pytest>=9.0.2",
"ruff>=0.14.8",
]
[tool.ruff]
line-length = 88
target-version = "py312"
[tool.ruff.lint]
select = [
"B",
"E",
"F",
"I",
"SIM",
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "auto"
[tool.mypy]
python_version = "3.12"
files = [
"chromy",
"tests",
]
strict = true
warn_return_any = true
warn_unused_ignores = true
no_implicit_reexport = true
show_error_codes = true
[[tool.mypy.overrides]]
module = [
"chromadb.*",
"semchunk.*",
]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "chromy.chunk_functions"
disable_error_code = [
"attr-defined",
]