diff --git a/.copier-answers.yaml b/.copier-answers.yaml index 866d5a2..a1c8fb1 100644 --- a/.copier-answers.yaml +++ b/.copier-answers.yaml @@ -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 diff --git a/.gitignore b/.gitignore index 62df4d8..0e1af38 100644 --- a/.gitignore +++ b/.gitignore @@ -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 @@ -157,3 +155,7 @@ python_template_js/labextension # Rust target + +# Hydra +outputs/ +multirun/ diff --git a/Makefile b/Makefile index e59f3c0..5b30984 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/pyproject.toml b/pyproject.toml index 962c70f..4277852 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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", @@ -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 = [ @@ -117,8 +106,8 @@ packages = [ "js", ] exclude = [ - "/js/dist", - "/js/node_modules", + "js/dist", + "js/node_modules", ] [tool.hatch.build.targets.wheel] @@ -126,7 +115,7 @@ packages = [ "python_template_js", ] exclude = [ - "/js", + "js", ] [tool.hatch.build.hooks.hatch-js]