kor
/
pyproject.toml
89 строк · 2.2 Кб
1[tool.poetry]
2name = "kor"
3version = "1.0.1"
4description = "Extract information with LLMs from text"
5authors = ["Eugene Yurtsev <eyurtsev@gmail.com>"]
6license = "MIT"
7readme = "README.md"
8repository = "https://www.github.com/eyurtsev/kor"
9
10[tool.poetry.dependencies]
11python = "^3.8.1"
12pandas = "^1.5.3"
13markdownify = {version = "^0.11.6", optional = false}
14pydantic = "<3"
15langchain-core = "^0.1"
16langchain = "^0.1"
17
18[tool.poetry.group.dev.dependencies]
19jupyterlab = "^3"
20
21[tool.poetry.group.test.dependencies]
22pytest = "^7.2.1"
23black = { version="^23.1.0", extras=["jupyter"] }
24poethepoet = "^0.18.1"
25ruff = "^0.1.4"
26pytest-cov = "^4.0.0"
27langchain-openai = "^0.0.5"
28
29[tool.poetry.group.docs.dependencies]
30nbsphinx = "^0.8.9"
31sphinx = "^4.5.0"
32sphinx-autobuild = "^2021.3.14"
33sphinx_book_theme = "^0.3.3"
34sphinx_rtd_theme = "^1.0.0"
35sphinx-typlog-theme = "^0.8.0"
36sphinx-panels = "^0.6.0"
37myst-nb = "^0.17.1"
38linkchecker = "^10.2.1"
39toml = "^0.10.2"
40sphinx-copybutton = "^0.5.1"
41
42[tool.poetry.group.typing.dependencies]
43mypy = "^0.991"
44
45[tool.poetry.group.types.dependencies]
46types-toml = "^0.10.8.5"
47
48
49[tool.poetry.extras]
50html = ["markdownify"]
51
52[tool.poe.tasks]
53black = "black"
54ruff = "ruff"
55pytest.cmd = "py.test --capture=no --durations=5 -W error::RuntimeWarning --cov --cov-config=.coveragerc --cov-report xml --cov-report term-missing:skip-covered"
56mypy = "mypy . --pretty --show-error-codes"
57fix = { shell = "poe black . && poe ruff --fix ." }
58fix_docs = "black docs"
59# Using a --preview feature. Commit your code prior to use this fix.
60fix_strings = "black kor --preview"
61test = { shell = "poe black . --check --diff && poe ruff . && poe pytest && poe mypy" }
62# Use to auto-generate docs
63apidoc = "sphinx-apidoc -o docs/source/generated kor"
64pyintegration = { shell = "py.test --capture=no ./tests/integration/*.py" }
65integration = { shell = "poe black . --check --diff && poe ruff . && poe pyintegration && poe mypy" }
66
67[tool.ruff]
68select = [
69"E", # pycodestyle
70"F", # pyflakes
71"I", # isort
72]
73
74# Same as Black.
75line-length = 88
76
77[tool.mypy]
78disallow_untyped_defs = "True"
79ignore_missing_imports = "True"
80
81[tool.coverage.run]
82omit = [
83"tests/*",
84]
85
86
87[build-system]
88requires = ["poetry-core>=1.0.0"]
89build-backend = "poetry.core.masonry.api"
90