Add, configure and run pre-commit locally and in test workflow

This commit is contained in:
Debanjum Singh Solanky
2023-02-17 12:07:59 -06:00
parent 5e83baab21
commit 051f0e3fb5
22 changed files with 183 additions and 162 deletions

View File

@@ -64,10 +64,14 @@ khoj = "khoj.main:run"
[project.optional-dependencies]
test = [
"pytest >= 7.1.2",
"black >= 23.1.0",
"pytest >= 7.1.2",
]
dev = [
"khoj-assistant[test]",
"mypy >= 1.0.1",
"black >= 23.1.0",
"pre-commit >= 3.0.4",
]
dev = ["khoj-assistant[test]"]
[tool.hatch.build.targets.sdist]
include = ["src/khoj"]
@@ -79,8 +83,8 @@ packages = ["src/khoj"]
files = "src/khoj"
pretty = true
strict_optional = false
ignore_missing_imports = true
install_types = true
ignore_missing_imports = true
non_interactive = true
show_error_codes = true
warn_unused_ignores = true
@@ -91,4 +95,4 @@ exclude = [
]
[tool.black]
line-length = 120
line-length = 120