forked from jpmorganchase/nbcelltests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
161 lines (142 loc) · 3.34 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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
[build-system]
requires = [
"hatchling>=1.3.1",
"hatch-jupyter-builder",
"jupyterlab>=4,<5",
]
build-backend = "hatchling.build"
[project]
name = "nbcelltests"
description = "Cell-by-cell tests for JupyterLab"
version = "0.3.2"
readme = "README.md"
license = { file = "LICENSE" }
requires-python = ">=3.8"
authors = [
{ name = "The nbcelltests authors", email = "t.paine154@gmail.com" },
]
keywords = [
"Jupyter",
"JupyterLab",
"Notebook",
"Notebooks",
"Testing",
"Tests",
"Celltests",
]
classifiers = [
"Development Status :: 4 - Beta",
"Framework :: Jupyter",
"Framework :: Jupyter :: JupyterLab",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: Apache Software License",
]
dependencies = [
"flake8",
"jupyter-server",
"jupyterlab",
"nbconvert",
"nbformat>=4.0.0",
"nbval>=0.9.1",
"notebook",
"parameterized",
"pytest>=4.4.0",
"pytest-cov",
"pytest-html>=4",
]
[project.optional-dependencies]
develop = [
"check-manifest",
"isort>=5,<6",
"jupyterlab>=4,<5",
"ruff>=0.3,<0.5",
# test
"pytest",
"pytest-cov",
]
test = [
"pytest",
"pytest-cov",
]
[project.scripts]
nbcelltests = "nbcelltests.__main__:main"
[project.urls]
Repository = "https://github.com/jpmorganchase/nbcelltests"
Homepage = "https://github.com/jpmorganchase/nbcelltests"
[tool.hatch.build]
artifacts = [
"nbcelltests/templates",
"nbcelltests/extension",
]
[tool.hatch.build.sources]
src = "/"
[tool.hatch.build.targets.sdist]
include = [
"/nbcelltests",
"/js",
"LICENSE",
"README.md",
]
exclude = [
"/.github",
"/.gitignore",
"/.mypy_cache",
"/.ruff_cache",
"/dist",
"/examples",
"/js/node_modules",
]
[tool.hatch.build.targets.wheel]
include = [
"/nbcelltests",
]
exclude = [
"/.github",
"/.gitignore",
"/.mypy_cache",
"/.ruff_cache",
"/pyproject.toml",
"/dist",
"/examples",
"/js/node_modules"
]
[tool.hatch.build.targets.wheel.shared-data]
"nbcelltests/labextension" = "share/jupyter/labextensions/nbcelltests"
"nbcelltests/extension/install.json" = "share/jupyter/labextensions/nbcelltests/install.json"
"nbcelltests/extension/nbcelltests.json" = "etc/jupyter/jupyter_server_config.d/nbcelltests.json"
"nbcelltests/extension/notebook_templates" = "share/jupyter/notebook"
[tool.hatch.build.hooks.jupyter-builder]
build-function = "hatch_jupyter_builder.npm_builder"
ensured-targets = [
"nbcelltests/labextension/package.json",
]
skip-if-exists = [
"nbcelltests/labextension/package.json",
]
dependencies = [
"hatch-jupyter-builder>=0.5.0",
]
[tool.hatch.build.hooks.jupyter-builder.build-kwargs]
path = "js"
build_cmd = "build"
npm = "jlpm"
[tool.isort]
combine_as_imports = true
include_trailing_comma = true
line_length = 120
profile = "black"
default_section = "THIRDPARTY"
sections = "FUTURE,THIRDPARTY,FIRSTPARTY,LOCALFOLDER"
known_first_party = "nbcelltests"
[tool.pytest.ini_options]
asyncio_mode = "strict"
testpaths = "nbcelltests/tests"
[tool.ruff]
line-length = 120
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401", "F403"]