mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-02 21:19:12 +00:00
Add, configure and run pre-commit locally and in test workflow
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user