diff --git a/scripts/setup.sh b/scripts/setup.sh new file mode 100644 index 0000000..f825086 --- /dev/null +++ b/scripts/setup.sh @@ -0,0 +1,29 @@ +#!/bin/bash +# Setup script for fastapi-route-loader development + +set -e + +echo "๐Ÿš€ Setting up fastapi-route-loader development environment..." + +# Check if virtual environment exists +if [ ! -d ".venv" ]; then + echo "๐Ÿ“ฆ Creating virtual environment..." + python3 -m venv .venv +fi + +# Activate virtual environment +echo "๐Ÿ”Œ Activating virtual environment..." +source .venv/bin/activate + +# Upgrade pip +echo "โฌ†๏ธ Upgrading pip..." +pip install --upgrade pip + +# Install package in editable mode with dev dependencies +echo "๐Ÿ“ฅ Installing package with dev dependencies..." +pip install -e ".[dev]" + +echo "โœ… Setup complete!" +echo "" +echo "To activate the virtual environment, run:" +echo " source .venv/bin/activate" diff --git a/scripts/verify.sh b/scripts/verify.sh new file mode 100644 index 0000000..e3ace9a --- /dev/null +++ b/scripts/verify.sh @@ -0,0 +1,33 @@ +#!/bin/bash +# Verification script for code quality checks + +set -e + +echo "๐Ÿ” Running code quality checks..." +echo "" + +# Run ruff linter +echo "๐Ÿ“‹ Running ruff linter..." +ruff check src/ tests/ examples/ +echo "โœ… Ruff linter passed!" +echo "" + +# Run ruff formatter check +echo "๐ŸŽจ Checking code formatting..." +ruff format --check src/ tests/ examples/ +echo "โœ… Code formatting is correct!" +echo "" + +# Run pyright type checker +echo "๐Ÿ”ฌ Running pyright type checker..." +pyright src/ +echo "โœ… Pyright type checking passed!" +echo "" + +# Run tests with coverage +echo "๐Ÿงช Running tests with coverage..." +pytest +echo "โœ… All tests passed!" +echo "" + +echo "๐ŸŽ‰ All checks passed successfully!"