2023-01-03 22:23:17 +00:00
|
|
|
[tool.poetry]
|
|
|
|
name = "dr-doc-search"
|
2023-01-07 12:52:51 +00:00
|
|
|
version = "1.2.0"
|
2023-01-03 22:23:17 +00:00
|
|
|
description = "Search through a document using a chat interface"
|
|
|
|
authors = [
|
|
|
|
"namuan <github@deskriders.dev>",
|
|
|
|
]
|
|
|
|
license = "MIT"
|
|
|
|
readme = "README.md"
|
|
|
|
|
|
|
|
documentation = "https://namuan.github.io/dr-doc-search"
|
|
|
|
homepage = "https://namuan.github.io/dr-doc-search"
|
|
|
|
repository = "https://github.com/namuan/dr-doc-search"
|
|
|
|
|
|
|
|
classifiers = [
|
|
|
|
"Development Status :: 4 - Beta",
|
|
|
|
"Intended Audience :: Developers",
|
|
|
|
"Operating System :: OS Independent",
|
|
|
|
"Programming Language :: Python",
|
|
|
|
"Programming Language :: Python :: 3",
|
|
|
|
"Programming Language :: Python :: 3.8",
|
|
|
|
"Programming Language :: Python :: 3.9",
|
|
|
|
"Programming Language :: Python :: 3.10",
|
|
|
|
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
|
|
"Typing :: Typed",
|
|
|
|
]
|
|
|
|
|
|
|
|
packages = [
|
|
|
|
{ include = "doc_search", from = "src" }
|
|
|
|
]
|
|
|
|
|
|
|
|
[tool.poetry.dependencies]
|
|
|
|
python = ">=3.9.0, <4.0"
|
|
|
|
py-executable-checklist = "1.3.1"
|
|
|
|
rich = "^13.0.0"
|
2023-01-04 20:30:56 +00:00
|
|
|
pypdf = "^3.2.0"
|
2023-01-05 20:09:52 +00:00
|
|
|
pytest = "^7.2.0"
|
2023-01-06 21:35:39 +00:00
|
|
|
openai = "^0.25.0"
|
|
|
|
langchain = "^0.0.57"
|
|
|
|
faiss-cpu = "^1.7.3"
|
|
|
|
python-dotenv = "^0.21.0"
|
2023-01-07 10:32:16 +00:00
|
|
|
panel = "^0.14.2"
|
2023-01-07 11:20:20 +00:00
|
|
|
slug = "^2.0"
|
2023-01-03 22:23:17 +00:00
|
|
|
|
2023-01-04 19:48:23 +00:00
|
|
|
[tool.poetry.group.dev.dependencies]
|
2023-01-03 22:23:17 +00:00
|
|
|
autoflake = "*"
|
|
|
|
black = "*"
|
|
|
|
flake8 = "*"
|
|
|
|
flake8-bugbear = "*"
|
|
|
|
flake8-builtins = "*"
|
|
|
|
flake8-comprehensions = "*"
|
|
|
|
flake8-debugger = "*"
|
|
|
|
flake8-logging-format = "*"
|
|
|
|
isort = "*"
|
|
|
|
mkdocstrings = "*"
|
|
|
|
mkdocs-material = "9.0.1"
|
|
|
|
mypy = "*"
|
|
|
|
pep8-naming = "*"
|
|
|
|
pre-commit = "*"
|
|
|
|
pymdown-extensions = "*"
|
|
|
|
python-kacl = "*"
|
|
|
|
pyupgrade = "*"
|
|
|
|
tryceratops = "*"
|
|
|
|
commitizen = "^2.20.3"
|
2023-01-04 19:48:23 +00:00
|
|
|
pytest = "^7.2.0"
|
|
|
|
pytest-cov = "^4.0.0"
|
2023-01-05 20:09:52 +00:00
|
|
|
coverage = "^7.0.3"
|
2023-01-04 20:02:41 +00:00
|
|
|
|
2023-01-03 22:23:17 +00:00
|
|
|
[tool.commitizen]
|
|
|
|
name = "cz_conventional_commits"
|
2023-01-07 12:52:51 +00:00
|
|
|
version = "1.2.0"
|
2023-01-03 22:23:17 +00:00
|
|
|
tag_format = "$version"
|
|
|
|
version_files = [
|
|
|
|
"pyproject.toml:version",
|
|
|
|
]
|
|
|
|
update_changelog_on_bump = true
|
|
|
|
|
|
|
|
[tool.isort]
|
|
|
|
profile = "black"
|
|
|
|
src_paths = ["src", "tests"]
|
|
|
|
|
|
|
|
[tool.black]
|
|
|
|
line-length = 120
|
|
|
|
target-version = ["py37", "py38", "py39"]
|
|
|
|
include = '\.pyi?$'
|
|
|
|
|
2023-01-04 19:48:23 +00:00
|
|
|
[tool.pytest.ini_options]
|
|
|
|
addopts = """\
|
|
|
|
--cov doc_search \
|
|
|
|
--cov-report term-missing \
|
|
|
|
--no-cov-on-fail \
|
|
|
|
"""
|
|
|
|
|
|
|
|
[tool.coverage.report]
|
2023-01-07 10:32:16 +00:00
|
|
|
fail_under = 49
|
|
|
|
omit = ["src/doc_search/app.py", "src/doc_search/__init__.py", "src/doc_search/web.py"]
|
2023-01-04 19:48:23 +00:00
|
|
|
exclude_lines = [
|
|
|
|
'pragma: no cover'
|
|
|
|
]
|
|
|
|
|
2023-01-03 22:23:17 +00:00
|
|
|
[tool.mypy]
|
|
|
|
disallow_any_unimported = true
|
|
|
|
disallow_untyped_defs = true
|
|
|
|
no_implicit_optional = true
|
|
|
|
strict_equality = true
|
|
|
|
warn_unused_ignores = true
|
|
|
|
warn_redundant_casts = true
|
|
|
|
warn_return_any = true
|
|
|
|
check_untyped_defs = true
|
|
|
|
show_error_codes = true
|
|
|
|
|
2023-01-04 20:37:30 +00:00
|
|
|
[build-system]
|
2023-01-04 20:52:26 +00:00
|
|
|
requires = ["poetry-core>=1.0.0"]
|
|
|
|
build-backend = "poetry.core.masonry.api"
|
2023-01-04 20:37:30 +00:00
|
|
|
|
2023-01-03 22:23:17 +00:00
|
|
|
[tool.poetry.scripts]
|
|
|
|
dr-doc-search = 'doc_search.app:main'
|