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