summaryrefslogtreecommitdiffstats
path: root/mise.toml
diff options
context:
space:
mode:
Diffstat (limited to 'mise.toml')
-rw-r--r--mise.toml24
1 files changed, 24 insertions, 0 deletions
diff --git a/mise.toml b/mise.toml
new file mode 100644
index 0000000..4756681
--- /dev/null
+++ b/mise.toml
@@ -0,0 +1,24 @@
+[env]
+_.python.venv = { path = ".venv", create = true, python = "3.13.5" }
+
+[tasks.install]
+description = "Install dependencies"
+alias = "i"
+run = "pip install -r requirements.txt"
+
+[tasks.run]
+description = "Run g2h with the test repo"
+alias = "r"
+run = "rm -rf ./test_out && python3 -m g2h.cli test_repo test_out --name 'Test repo'"
+
+[tasks.test]
+alias = "t"
+run = "pytest"
+
+[tasks.commit]
+run = [
+ 'tar czf test_repo/git.tgz -C test_repo .git',
+ 'rm -rf test_repo/.git',
+ './.mise-tasks/co.sh {{arg(name="commit args", var=true)}}',
+ 'tar xzf test_repo/git.tgz -C test_repo'
+]