Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .copier-answers.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Changes here will be overwritten by Copier
_commit: b3bc450
_commit: 08a244d
_src_path: https://github.com/python-project-templates/base.git
add_docs: true
add_extension: js
Expand Down
8 changes: 5 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -141,14 +141,12 @@ js/node_modules
js/test-results
js/playwright-report
js/*.tgz
python_template_js/extension

# Jupyter
.ipynb_checkpoints
.autoversion
Untitled*.ipynb
!python_template_js/extension/python_template_js.json
!python_template_js/extension/install.json
python_template_js/extension
python_template_js/nbextension
python_template_js/labextension

Expand All @@ -157,3 +155,7 @@ python_template_js/labextension

# Rust
target

# Hydra
outputs/
multirun/
11 changes: 7 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,15 @@ format: fix
################
# Other Checks #
################
.PHONY: check-manifest checks check
.PHONY: check-dist check-types checks check

check-manifest: ## check python sdist manifest with check-manifest
check-manifest -v
check-dist: ## check python sdist and wheel with check-dist
check-dist -v

checks: check-manifest
check-types: ## check python types with ty
ty check --python $$(which python)

checks: check-dist

# alias
check: checks
Expand Down
25 changes: 7 additions & 18 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ dependencies = []
develop = [
"build",
"bump-my-version",
"check-manifest",
"codespell>=2.4,<2.5",
"check-dist",
"codespell",
"hatch-js",
"hatchling",
"mdformat>=0.7.22,<1.1",
"mdformat",
"mdformat-tables>=1",
"pytest",
"pytest-cov",
"ruff>=0.9,<0.15",
"ruff",
"twine",
"ty",
"uv",
Expand Down Expand Up @@ -78,17 +78,6 @@ filename = "js/package.json"
search = '"version": "{current_version}"'
replace = '"version": "{new_version}"'

[tool.check-manifest]
ignore = [
".copier-answers.yaml",
"js/pnpm-lock.yaml",
"Makefile",
".vscode/*",
"python_template_js/extension/**/*",
"docs/**/*",
"js/dist/**/*",
]

[tool.coverage.run]
branch = true
omit = [
Expand Down Expand Up @@ -117,16 +106,16 @@ packages = [
"js",
]
exclude = [
"/js/dist",
"/js/node_modules",
"js/dist",
"js/node_modules",
]

[tool.hatch.build.targets.wheel]
packages = [
"python_template_js",
]
exclude = [
"/js",
"js",
]

[tool.hatch.build.hooks.hatch-js]
Expand Down