jinja/.devcontainer/on-create-command.sh
Adam Englander 51dbd8977e
use uv for dependency management
drop python 3.7 and 3.8
move tox config into pyproject
use new license metadata
2025-05-28 10:08:29 -07:00

18 lines
445 B
Bash
Executable File

#!/bin/bash
set -e
# Install uv if not already installed
if ! command -v uv &> /dev/null; then
echo "Installing uv..."
curl -LsSf https://astral.sh/uv/install.sh | sh
export PATH="$HOME/.cargo/bin:$PATH"
fi
# Create venv using uv and install dependencies
echo "Creating virtual environment and installing dependencies..."
uv sync
# Install pre-commit hooks
echo "Installing pre-commit hooks..."
pre-commit install --install-hooks