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 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