From be333f72e48071b18a4bbf773564647311fe7f6e Mon Sep 17 00:00:00 2001 From: Tim Daniel Metzler Date: Tue, 12 Nov 2024 17:25:45 +0100 Subject: [PATCH] Add build and twine hook to tbump --- pyproject.toml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index ce03d442..6274bc36 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,7 +37,9 @@ dev = [ "pre-commit", "pytest-cov", "hatchling", - "tbump" + "tbump", + "build", + "twine" ] [project.scripts] @@ -104,6 +106,14 @@ search = '"version": "{current_version}' src = "packages/*/package.json" search = '"@e2xgrader/[\w-]+": "{current_version}' +[[tool.tbump.before_commit]] +name = "Build" +cmd = "python -m build" + +[[tool.tbump.before_commit]] +name = "Check with twine" +cmd = "twine check dist/*" + [tool.ruff] line-length = 100 exclude = ["nbgrader_config.py"]