diff --git a/.copier-answers.yaml b/.copier-answers.yaml index aa795e4..272899e 100644 --- a/.copier-answers.yaml +++ b/.copier-answers.yaml @@ -1,5 +1,5 @@ # Changes here will be overwritten by Copier -_commit: b74d698 +_commit: 37f89c1 _src_path: https://github.com/python-project-templates/base.git add_docs: true add_extension: js diff --git a/pyproject.toml b/pyproject.toml index 7236a9c..87cc335 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,10 +1,15 @@ [build-system] -requires = ["hatchling", "hatch-js"] +requires = [ + "hatchling", + "hatch-js", +] build-backend="hatchling.build" [project] name = "python-template-js" -authors = [{name = "Python Project Template Authors", email = "3105306+timkpaine@users.noreply.github.com"}] +authors = [ + {name = "Python Project Template Authors", email = "3105306+timkpaine@users.noreply.github.com"}, +] description = "A JavaScript-Python project template" readme = "README.md" license = { text = "Apache-2.0" } @@ -41,6 +46,8 @@ develop = [ "pytest-cov", "ruff>=0.9,<0.15", "twine", + "ty", + "uv", "wheel", ] @@ -105,37 +112,69 @@ artifacts = [ src = "/" [tool.hatch.build.targets.sdist] -packages = ["python_template_js", "js"] +packages = [ + "python_template_js", + "js", +] exclude = [ "/js/dist", "/js/node_modules", ] [tool.hatch.build.targets.wheel] -packages = ["python_template_js"] -exclude = ["/js"] +packages = [ + "python_template_js", +] +exclude = [ + "/js", +] [tool.hatch.build.hooks.hatch-js] path = "js" build_cmd = "build" tool = "pnpm" -targets = ["python_template_js/extension/cdn/index.js"] +targets = [ + "python_template_js/extension/cdn/index.js", +] [tool.pytest.ini_options] -addopts = ["-vvv", "--junitxml=junit.xml"] +addopts = [ + "-vvv", + "--junitxml=junit.xml", +] testpaths = "python_template_js/tests" [tool.ruff] line-length = 150 [tool.ruff.lint] -extend-select = ["I"] +extend-select = [ + "I", +] [tool.ruff.lint.isort] combine-as-imports = true default-section = "third-party" -known-first-party = ["python_template_js"] -section-order = ["future", "standard-library", "third-party", "first-party", "local-folder"] +known-first-party = [ + "python_template_js", +] +section-order = [ + "future", + "standard-library", + "third-party", + "first-party", + "local-folder", +] [tool.ruff.lint.per-file-ignores] -"__init__.py" = ["F401", "F403"] +"__init__.py" = [ + "F401", + "F403", +] + +[tool.yardang] +title = "python template js" +root = "README.md" +pages = [] +use-autoapi = true +