@@ -68,7 +68,7 @@ lint = [
68
68
69
69
test = [
70
70
" pytest-console-scripts >=1.4.0" ,
71
- " pytest-cov" ,
71
+ " pytest-cov <7 " ,
72
72
" pytest-html" ,
73
73
" pytest" ,
74
74
]
@@ -97,11 +97,11 @@ exclude = [
97
97
" /jupyterlite_pyodide_kernel/tests/fixtures/.pyodide"
98
98
]
99
99
include = [
100
+ " /*.md" ,
101
+ " /install.json" ,
100
102
" /jupyterlite_pyodide_kernel" ,
101
103
" /package.json" ,
102
- " /install.json" ,
103
104
" /ts*.json" ,
104
- " /*.md"
105
105
]
106
106
107
107
[tool .hatch .build .targets .wheel ]
@@ -113,25 +113,6 @@ include = [
113
113
"jupyterlite_pyodide_kernel/labextension" = " share/jupyter/labextensions/@jupyterlite/pyodide-kernel-extension"
114
114
"install.json" = " share/jupyter/labextensions/@jupyterlite/pyodide-kernel-extension/install.json"
115
115
116
- [tool .pytest .ini_options ]
117
- addopts = [
118
- " --pyargs" ,
119
- " jupyterlite_pyodide_kernel" ,
120
- " -vv" ,
121
- # asyncio
122
- " --script-launch-mode=subprocess" ,
123
- # cov
124
- " --cov=jupyterlite_pyodide_kernel" ,
125
- " --cov-report=term-missing:skip-covered" ,
126
- " --cov-report=html:build/reports/htmlcov" ,
127
- " --cov-branch" ,
128
- " --cov-fail-under=95" ,
129
- " --no-cov-on-fail" ,
130
- # html
131
- " --html=build/reports/pytest.html" ,
132
- " --self-contained-html" ,
133
- ]
134
-
135
116
[tool .jupyter-releaser .options ]
136
117
version_cmd = " python scripts/bump-version.py"
137
118
@@ -151,9 +132,37 @@ before-build-python = [
151
132
" jlpm build:prod" ,
152
133
]
153
134
135
+ # non-build tools, sorted by name
154
136
[tool .check-wheel-contents ]
155
137
ignore = [" W002" ]
156
138
139
+ [tool .coverage .paths ]
140
+ source = [
141
+ " jupyterlite_pyodide_kernel/" ,
142
+ " */site-packages/jupyterlite_pyodide_kernel/"
143
+ ]
144
+
145
+ [tool .pytest .ini_options ]
146
+ addopts = [
147
+ " --pyargs" ,
148
+ " jupyterlite_pyodide_kernel" ,
149
+ " -vv" ,
150
+ " --tb=long" ,
151
+ " --color=yes" ,
152
+ # pytest-console-scripts
153
+ " --script-launch-mode=subprocess" ,
154
+ # cov
155
+ " --cov=jupyterlite_pyodide_kernel" ,
156
+ " --cov-report=term-missing:skip-covered" ,
157
+ " --cov-report=html:build/reports/htmlcov" ,
158
+ " --cov-branch" ,
159
+ " --cov-fail-under=95" ,
160
+ " --no-cov-on-fail" ,
161
+ # html
162
+ " --html=build/reports/pytest.html" ,
163
+ " --self-contained-html" ,
164
+ ]
165
+
157
166
[tool .ruff ]
158
167
cache-dir = " build/.cache/ruff"
159
168
extend-include = [" *.ipynb" ]
0 commit comments