From a297c6aceefa3a88cc8e093f8ee3e7bb2606f9cd Mon Sep 17 00:00:00 2001 From: Roy Jones Date: Mon, 15 Dec 2025 21:00:58 +0100 Subject: [PATCH 1/2] docs: add env.sample for kalshi starter Added env.sample file with an example set of environment variables for the starter code. --- env.sample | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 env.sample diff --git a/env.sample b/env.sample new file mode 100644 index 0000000..bfe0669 --- /dev/null +++ b/env.sample @@ -0,0 +1,8 @@ +# Example environment variables for kalshi-starter-code-python + +# API credentials for Kalshi +KALSHI_API_KEY=your_api_key_here +KALSHI_API_SECRET=your_api_secret_here + +# Environment: "demo" or "prod" +KALSHI_ENV=demo From f507305ddc36e2b698689a6be9f9b07f1fedb5f2 Mon Sep 17 00:00:00 2001 From: Roy Jones Date: Thu, 18 Dec 2025 20:53:06 +0100 Subject: [PATCH 2/2] chore: add format and lint helper script Added a script that (if black and ruff are installed) formats the code and runs lint. --- scripts/format_and_lint.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 scripts/format_and_lint.sh diff --git a/scripts/format_and_lint.sh b/scripts/format_and_lint.sh new file mode 100644 index 0000000..10501fa --- /dev/null +++ b/scripts/format_and_lint.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env bash +set -euo pipefail + +if command -v black >/dev/null 2>&1; then + echo "Running black..." + black . +else + echo "black is not installed, skipping formatting." +fi + +if command -v ruff >/dev/null 2>&1; then + echo "Running ruff..." + ruff check . +else + echo "ruff is not installed, skipping linting." +fi