|
|
|
|
@ -31,6 +31,7 @@ classifiers = [
|
|
|
|
|
]
|
|
|
|
|
dependencies = [
|
|
|
|
|
"jupyter_server>=2.0.0rc3,<3",
|
|
|
|
|
"importlib-resources>=5.0;python_version<\"3.9\"",
|
|
|
|
|
"jupyterlab>=4.0.0a31,<5",
|
|
|
|
|
"jupyterlab_server>=2.16.3,<3",
|
|
|
|
|
"notebook_shim>=0.2,<0.3",
|
|
|
|
|
@ -51,7 +52,7 @@ Tracker = "https://github.com/jupyter/notebook/issues"
|
|
|
|
|
test = [
|
|
|
|
|
"coverage",
|
|
|
|
|
"nbval",
|
|
|
|
|
"pytest>=6.0",
|
|
|
|
|
"pytest>=7.0",
|
|
|
|
|
"pytest-cov",
|
|
|
|
|
"requests",
|
|
|
|
|
"pytest-tornasync",
|
|
|
|
|
@ -61,6 +62,13 @@ test = [
|
|
|
|
|
"jupyter_server[test]>=2.0.0rc3,<3",
|
|
|
|
|
"jupyterlab_server[test]>=2.16.3,<3",
|
|
|
|
|
]
|
|
|
|
|
docs = [
|
|
|
|
|
"myst_parser",
|
|
|
|
|
"nbsphinx",
|
|
|
|
|
"pydata-sphinx-theme",
|
|
|
|
|
"sphinx>=1.3.6",
|
|
|
|
|
"sphinxcontrib_github_alt",
|
|
|
|
|
]
|
|
|
|
|
dev = [
|
|
|
|
|
"pre-commit",
|
|
|
|
|
"hatch"
|
|
|
|
|
@ -99,6 +107,27 @@ artifacts = [
|
|
|
|
|
]
|
|
|
|
|
include = ["/notebook"]
|
|
|
|
|
|
|
|
|
|
[tool.hatch.envs.docs]
|
|
|
|
|
features = ["docs"]
|
|
|
|
|
[tool.hatch.envs.docs.scripts]
|
|
|
|
|
build = "make -C docs html SPHINXOPTS='-W'"
|
|
|
|
|
|
|
|
|
|
[tool.hatch.envs.default.scripts]
|
|
|
|
|
npm_pack = "jlpm lerna exec -- npm pack"
|
|
|
|
|
js_test = "jlpm run build:test && jlpm run test"
|
|
|
|
|
|
|
|
|
|
[tool.hatch.envs.test]
|
|
|
|
|
features = ["test"]
|
|
|
|
|
[tool.hatch.envs.test.scripts]
|
|
|
|
|
test = "python -m pytest -vv {args}"
|
|
|
|
|
nowarn = "test -W default {args}"
|
|
|
|
|
|
|
|
|
|
[tool.hatch.envs.cov]
|
|
|
|
|
features = ["test"]
|
|
|
|
|
dependencies = ["coverage", "pytest-cov"]
|
|
|
|
|
[tool.hatch.envs.cov.scripts]
|
|
|
|
|
test = "python -m pytest -vv --cov notebook --cov-branch --cov-report term-missing:skip-covered {args}"
|
|
|
|
|
nowarn = "test -W default {args}"
|
|
|
|
|
|
|
|
|
|
[tool.hatch.build.hooks.jupyter-builder]
|
|
|
|
|
dependencies = ["hatch-jupyter-builder>=0.2"]
|
|
|
|
|
@ -129,6 +158,20 @@ filterwarnings = [
|
|
|
|
|
"ignore:clear_current is deprecated"
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
[tool.coverage.report]
|
|
|
|
|
exclude_lines = [
|
|
|
|
|
"pragma: no cover",
|
|
|
|
|
"def __repr__",
|
|
|
|
|
"if self.debug:",
|
|
|
|
|
"if settings.DEBUG",
|
|
|
|
|
"raise AssertionError",
|
|
|
|
|
"raise NotImplementedError",
|
|
|
|
|
"if 0:",
|
|
|
|
|
"if __name__ == .__main__.:",
|
|
|
|
|
"class .*\bProtocol\\):",
|
|
|
|
|
"@(abc\\.)?abstractmethod",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
[tool.flake8]
|
|
|
|
|
ignore = "E501, W503, E402"
|
|
|
|
|
builtins = "c, get_config"
|
|
|
|
|
|