Modernized build tooling

This commit is contained in:
2025-08-01 05:00:24 +00:00
committed by Your Name
parent 8a93f794d6
commit f7a5d26c41
71 changed files with 6685 additions and 813 deletions
+74
View File
@@ -0,0 +1,74 @@
# Python 3.13 Boilerplate Development Environment
# Activate virtual environment automatically
if [ -f "/workspaces/boilerplate/.venv/bin/activate" ]; then
source /workspaces/boilerplate/.venv/bin/activate
fi
# Useful aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
alias ..='cd ..'
alias ...='cd ../..'
# Development shortcuts
alias dev-test='nox -s behave'
alias dev-lint='nox -s lint'
alias dev-format='nox -s format'
alias dev-type='nox -s typecheck'
alias dev-docs='nox -s serve_docs'
alias dev-all='nox'
# Docker shortcuts
alias d='docker'
alias dc='docker-compose'
alias k='kubectl'
# Git shortcuts
alias gs='git status'
alias ga='git add'
alias gc='git commit'
alias gp='git push'
alias gl='git pull'
alias gco='git checkout'
alias gb='git branch'
# Python shortcuts
alias py='python'
alias pip='uv pip'
alias venv='uv venv'
# Project-specific commands
alias run-cli='python -m boilerplate'
alias test-quick='behave -q'
alias build-docker='docker build -t boilerplate:dev .'
# Claude Code and MCP shortcuts
alias claude='claude-code'
alias mcp-status='claude-code --list-servers'
alias mcp-logs='tail -f ~/.local/share/mcp-logs/*.log'
# Set up completion for kubectl if available
if command -v kubectl &> /dev/null; then
source <(kubectl completion bash)
fi
# Set up completion for helm if available
if command -v helm &> /dev/null; then
source <(helm completion bash)
fi
# Colorful prompt
export PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
# Environment info
echo "🐍 Python $(python --version)"
echo "📦 uv $(uv --version)"
echo "🦀 ruff $(ruff --version)"
echo "🔍 pyright $(pyright --version)"
echo "🧪 behave $(behave --version)"
echo ""
echo "📁 Working directory: $(pwd)"
echo "🌿 Git branch: $(git branch --show-current 2>/dev/null || echo 'not initialized')"
echo ""