use Codex 5.3 to review template to spec
This commit is contained in:
12
test.sh
12
test.sh
@@ -121,7 +121,7 @@ main() {
|
||||
cd "$TEMP_DIR"
|
||||
cruft create "$TEMPLATE_DIR" \
|
||||
--no-input \
|
||||
--extra-context '{"project_name": "Test Project", "project_slug": "test-project", "package_name": "test_project", "description": "A test project", "author_name": "Test Author", "author_email": "test@example.com", "version": "0.1.0", "python_version": "3.12"}' \
|
||||
--extra-context '{"project_name": "Test Project", "project_slug": "test-project", "package_name": "test_project", "description": "A test project", "author_name": "Test Author", "author_email": "test@example.com", "version": "0.1.0"}' \
|
||||
|| { print_error "Failed to generate project with cruft"; exit 1; }
|
||||
else
|
||||
cd "$TEMP_DIR"
|
||||
@@ -134,7 +134,6 @@ main() {
|
||||
author_name="Test Author" \
|
||||
author_email="test@example.com" \
|
||||
version="0.1.0" \
|
||||
python_version="3.12" \
|
||||
|| { print_error "Failed to generate project with cookiecutter"; exit 1; }
|
||||
fi
|
||||
|
||||
@@ -146,9 +145,12 @@ main() {
|
||||
print_status "Generated files:"
|
||||
ls -la
|
||||
|
||||
# Install dependencies
|
||||
print_status "Installing dependencies with uv..."
|
||||
uv sync --group dev || { print_error "Failed to install dependencies"; exit 1; }
|
||||
# Ensure lockfile exists and install dependencies
|
||||
print_status "Checking for generated uv.lock..."
|
||||
[ -f "uv.lock" ] || { print_error "uv.lock was not generated"; exit 1; }
|
||||
|
||||
print_status "Installing dependencies with uv (frozen)..."
|
||||
uv sync --frozen --group dev || { print_error "Failed to install dependencies"; exit 1; }
|
||||
|
||||
# Run ruff check
|
||||
print_status "Running ruff check..."
|
||||
|
||||
Reference in New Issue
Block a user