Skip to content

Commit

Permalink
Merge pull request #184 from DigiKlausur/tbump_hooks
Browse files Browse the repository at this point in the history
Add build and twine hook to tbump
  • Loading branch information
tmetzl authored Nov 12, 2024
2 parents a9fca75 + be333f7 commit 5ea58e0
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ dev = [
"pre-commit",
"pytest-cov",
"hatchling",
"tbump"
"tbump",
"build",
"twine"
]

[project.scripts]
Expand Down Expand Up @@ -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"]
Expand Down

0 comments on commit 5ea58e0

Please sign in to comment.