forked from dask/dask-labextension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
122 lines (106 loc) · 2.94 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
[build-system]
requires = ["hatchling>=1.5.0", "jupyterlab>=4.0.0,<5", "hatch-nodejs-version"]
build-backend = "hatchling.build"
[project]
name = "dask_labextension"
readme = "README.md"
license = { file = "LICENSE" }
requires-python = ">=3.8"
classifiers = [
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Framework :: Jupyter",
]
dependencies = [
"bokeh >=1.0.0,!=2.0.0",
"distributed>=1.24.1",
"jupyter-server-proxy>=1.3.2",
"jupyterlab>=4.0.0,<5",
]
dynamic = ["version", "description", "authors", "urls", "keywords"]
[project.optional-dependencies]
test = [
"pytest",
"pytest-cov",
"pytest-html",
"black",
"flake8",
]
[tool.hatch.version]
source = "nodejs"
[tool.hatch.metadata.hooks.nodejs]
fields = ["description", "authors", "urls"]
[tool.hatch.build.targets.sdist]
artifacts = ["dask_labextension/labextension"]
exclude = [".github"]
[tool.hatch.build.targets.wheel.shared-data]
"jupyter-config" = "etc/jupyter"
"dask_labextension/labextension" = "share/jupyter/labextensions/dask-labextension"
"install.json" = "share/jupyter/labextensions/dask-labextension/install.json"
[tool.hatch.build.hooks.version]
path = "dask_labextension/_version.py"
[tool.hatch.build.hooks.jupyter-builder]
dependencies = ["hatch-jupyter-builder>=0.5"]
build-function = "hatch_jupyter_builder.npm_builder"
ensured-targets = [
"dask_labextension/labextension/static/style.js",
"dask_labextension/labextension/package.json",
]
skip-if-exists = ["dask_labextension/labextension/static/style.js"]
[tool.hatch.build.hooks.jupyter-builder.build-kwargs]
build_cmd = "build:prod"
npm = ["jlpm"]
[tool.hatch.build.hooks.jupyter-builder.editable-build-kwargs]
build_cmd = "build"
npm = ["jlpm"]
source_dir = "src"
build_dir = "dask_labextension/labextension"
[tool.check-wheel-contents]
ignore = ["W002"]
[tool.black]
# target-version should be all supported versions
target_version = [
"py38",
"py39",
"py310",
"py311",
]
[tool.pytest.ini_options]
cache_dir = "build/.cache/pytest"
addopts = [
"-vv",
"--cov=dask_labextension",
"--cov-branch",
"--cov-context=test",
"--cov-report=term-missing:skip-covered",
"--cov-report=html:build/coverage",
"--html=build/pytest/index.html",
"--color=yes",
]
[tool.coverage.run]
data_file = "build/.coverage"
concurrency = [
"multiprocessing",
"thread"
]
[tool.coverage.html]
show_contexts = true
[tool.coverage.report]
# Regexes for lines to exclude from consideration
exclude_lines = [
"if self.debug:",
"pragma: no cover",
"if __name__ == .__main__.:",
"raise NotImplementedError",
]
ignore_errors = true
omit = [
"dask_labextension/_version.py",
"tests/*",
"*/site-packages/*"
]