aboutsummaryrefslogtreecommitdiffstats
path: root/justfile
diff options
context:
space:
mode:
authorClaude <claude@anthropic.com>2026-03-04 19:14:55 +0100
committerClaude <claude@anthropic.com>2026-03-04 19:14:55 +0100
commit171c5b86ef05974426ba5c5d8547c8025977d1a2 (patch)
tree2a1193e2bb81a6341e55d0b883a3fc33f77f8be1 /justfile
parent9f14edf2b97286e02830d528038b32d5b31aaa0a (diff)
parent0278c87f062a9ae7d617b92be22b175558a05086 (diff)
downloadgemini-py-main.tar.gz
gemini-py-main.zip
Add initial versionHEADmain
Diffstat (limited to 'justfile')
-rw-r--r--justfile45
1 files changed, 45 insertions, 0 deletions
diff --git a/justfile b/justfile
new file mode 100644
index 0000000..b25fb1e
--- /dev/null
+++ b/justfile
@@ -0,0 +1,45 @@
+export VIRTUAL_ENV := ""
+
+docker := if `test -w /var/run/docker.sock && echo ok || echo no` == "ok" { "docker" } else { "sudo docker" }
+
+default: check
+
+install-dev:
+ uv sync
+
+check: format-check lint typecheck
+
+check-strict: check
+ uv run --inexact ruff check --select F401,F841,ARG,PLR0913,C901,RUF src/ test/
+
+fix:
+ uv run --inexact ruff format src/ test/
+ uv run --inexact ruff check --fix src/ test/
+
+format:
+ uv run --inexact ruff format src/ test/
+
+format-check:
+ uv run --inexact ruff format --check src/ test/
+
+lint:
+ uv run --inexact ruff check src/ test/
+
+typecheck:
+ uv run --inexact mypy src/
+
+test:
+ uv run --inexact pytest
+
+test-docker:
+ {{docker}} compose -f compose/scenarios/standalone.yml run --build --rm gemini-py
+
+test-docker-tools:
+ {{docker}} compose -f compose/scenarios/standalone.yml run --build --rm gemini-py /app/scripts/tool_test.py
+
+build:
+ uv build
+
+clean:
+ rm -rf dist/ .mypy_cache/ .ruff_cache/
+ find . -type d -name __pycache__ -exec rm -rf {} +