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"]