forked from jupyterlab/jupyter-ai
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
50 lines (39 loc) · 1.21 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
[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.8"
dependencies = []
[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.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"
]