Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions env.sample
Original file line number Diff line number Diff line change
@@ -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
16 changes: 16 additions & 0 deletions scripts/format_and_lint.sh
Original file line number Diff line number Diff line change
@@ -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