-
-
Notifications
You must be signed in to change notification settings - Fork 340
/
pyproject.toml
62 lines (49 loc) · 1.47 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
[build-system]
requires = ["hatchling>=1.4.0", "jupyterlab~=4.0", "hatch-nodejs-version"]
build-backend = "hatchling.build"
[project]
name = "jupyter_ai_monorepo"
dynamic = ["version", "description", "authors", "urls", "keywords"]
requires-python = ">=3.9"
dependencies = [
"jupyter-ai-magics @ {root:uri}/packages/jupyter-ai-magics",
"jupyter-ai @ {root:uri}/packages/jupyter-ai"
]
[project.optional-dependencies]
build = []
[project.readme]
file = "README.md"
content-type = "text/markdown"
[project.license]
text = "BSD 3-Clause License"
[tool.hatch.version]
source = "nodejs"
path = "package.json"
[tool.hatch.build]
packages = [
"packages/jupyter-ai-magics",
"packages/jupyter-ai"
]
[tool.hatch.metadata]
allow-direct-references = true
[tool.check-manifest]
ignore = [".*"]
[tool.check-wheel-contents]
ignore = ["W002"]
[tool.importlinter]
root_packages = ["jupyter_ai", "jupyter_ai_magics"]
include_external_packages = true
[[tool.importlinter.contracts]]
key = "pydantic"
name = "Forbid `pydantic`. (note: Developers should import Pydantic from `langchain.pydantic_v1` instead for compatibility.)"
type = "forbidden"
source_modules = ["jupyter_ai", "jupyter_ai_magics"]
forbidden_modules = ["pydantic"]
# TODO: get `langchain` to export `ModelMetaclass` to avoid needing this statement
ignore_imports = ["jupyter_ai_magics.providers -> pydantic"]
[tool.pytest.ini_options]
addopts = "--ignore packages/jupyter-ai-module-cookiecutter"
[tool.mypy]
exclude = [
"tests"
]