Skip to content

Commit c98dae8

Browse files
Update from copier (2026-02-22T04:26:47)
Signed-off-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
1 parent a7a348b commit c98dae8

File tree

7 files changed

+22
-30
lines changed

7 files changed

+22
-30
lines changed

.copier-answers.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Changes here will be overwritten by Copier
2-
_commit: b3bc450
2+
_commit: 08a244d
33
_src_path: https://github.com/python-project-templates/base.git
44
add_docs: true
55
add_extension: jupyter

.gitignore

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,14 +141,12 @@ js/node_modules
141141
js/test-results
142142
js/playwright-report
143143
js/*.tgz
144-
python_template_jupyter/extension
145144

146145
# Jupyter
147146
.ipynb_checkpoints
148147
.autoversion
149148
Untitled*.ipynb
150-
!python_template_jupyter/extension/python_template_jupyter.json
151-
!python_template_jupyter/extension/install.json
149+
python_template_jupyter/extension
152150
python_template_jupyter/nbextension
153151
python_template_jupyter/labextension
154152

@@ -157,3 +155,7 @@ python_template_jupyter/labextension
157155

158156
# Rust
159157
target
158+
159+
# Hydra
160+
outputs/
161+
multirun/

Makefile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,15 @@ format: fix
7373
################
7474
# Other Checks #
7575
################
76-
.PHONY: check-manifest checks check
76+
.PHONY: check-dist check-types checks check
7777

78-
check-manifest: ## check python sdist manifest with check-manifest
79-
check-manifest -v
78+
check-dist: ## check python sdist and wheel with check-dist
79+
check-dist -v
8080

81-
checks: check-manifest
81+
check-types: ## check python types with ty
82+
ty check --python $$(which python)
83+
84+
checks: check-dist
8285

8386
# alias
8487
check: checks

js/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@
3131
},
3232
"scripts": {
3333
"build:babel": "babel src/ --source-maps --out-dir lib/",
34+
"build:extension": "mkdirp ../python_template_jupyter/extension/ && cpy --flat 'src/extension/*' '../python_template_jupyter/extension/'",
3435
"build:nbextension": "mkdirp ../python_template_jupyter/nbextension/static/ && cpy --flat 'src/notebook.js' '../python_template_jupyter/nbextension/static/'",
3536
"build:labextension": "rimraf ../python_template_jupyter/labextension && jupyter labextension build .",
36-
"build": "pnpm clean && pnpm build:babel && pnpm build:labextension && pnpm build:nbextension",
37+
"build": "pnpm clean && pnpm build:babel && pnpm build:extension && pnpm build:labextension && pnpm build:nbextension",
3738
"clean": "rimraf lib",
3839
"fix": "pnpm lint --fix",
3940
"lint": "eslint -c .eslintrc.js --ext .js src/ tests/",
File renamed without changes.

python_template_jupyter/extension/python_template_jupyter.json renamed to js/src/extension/python_template_jupyter.json

File renamed without changes.

pyproject.toml

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,16 @@ dependencies = []
3939
develop = [
4040
"build",
4141
"bump-my-version",
42-
"check-manifest",
43-
"codespell>=2.4,<2.5",
42+
"check-dist",
43+
"codespell",
4444
"hatch-js",
4545
"hatchling",
46-
"mdformat>=0.7.22,<1.1",
46+
"mdformat",
4747
"mdformat-tables>=1",
4848
"jupyterlab>=4,<5",
4949
"pytest",
5050
"pytest-cov",
51-
"ruff>=0.9,<0.15",
51+
"ruff",
5252
"twine",
5353
"ty",
5454
"uv",
@@ -82,20 +82,6 @@ filename = "js/package.json"
8282
search = '"version": "{current_version}"'
8383
replace = '"version": "{new_version}"'
8484

85-
[tool.check-manifest]
86-
ignore = [
87-
".copier-answers.yaml",
88-
"js/pnpm-lock.yaml",
89-
"Makefile",
90-
".vscode/*",
91-
"python_template_jupyter/extension/**",
92-
"python_template_jupyter/labextension/**",
93-
"python_template_jupyter/nbextension/**",
94-
"docs/**/*",
95-
"js/dist/**/*",
96-
"js/lib/*",
97-
]
98-
9985
[tool.coverage.run]
10086
branch = true
10187
omit = [
@@ -125,16 +111,16 @@ packages = [
125111
"js",
126112
]
127113
exclude = [
128-
"/js/dist",
129-
"/js/node_modules",
114+
"js/dist",
115+
"js/node_modules",
130116
]
131117

132118
[tool.hatch.build.targets.wheel]
133119
packages = [
134120
"python_template_jupyter",
135121
]
136122
exclude = [
137-
"/js"
123+
"js"
138124
]
139125

140126
[tool.hatch.build.targets.wheel.shared-data]

0 commit comments

Comments
 (0)