Kim van Wyk on Nostr: #pre-commit and #python: is there an example out there of a hook that will prevent ...
#pre-commit and #python: is there an example out there of a hook that will prevent pushing to a remote repo if the version value in pyproject.toml hasn't been altered in at least one of the commits to be pushed?
It seems like it should be fairly simple but my brain refuses to wrap itself around pre-commit tonight.
Published at
2024-03-11 20:30:52Event JSON
{
"id": "f1b991915027dca2118cac5f7dd9108df14f398aed8faf9789ef5f281f95b5ea",
"pubkey": "67a256625a1a26cc4b1b1ec2f588e39f39dea1ae25473d09a52fa4795a519e9a",
"created_at": 1710189052,
"kind": 1,
"tags": [
[
"t",
"pre"
],
[
"t",
"python"
],
[
"proxy",
"https://fosstodon.org/users/kimvanwyk/statuses/112078949734192941",
"activitypub"
]
],
"content": "#pre-commit and #python: is there an example out there of a hook that will prevent pushing to a remote repo if the version value in pyproject.toml hasn't been altered in at least one of the commits to be pushed?\n\nIt seems like it should be fairly simple but my brain refuses to wrap itself around pre-commit tonight.",
"sig": "b4897cacee5dfbbf2a5c3546ff2190a3e68582238947086b5e6ae4a761e5f149413e8d7e6afa865c3b085f6a60ab9e25e8f56339268b7996d021cddde39d7bc6"
}