Skip to content
Merged
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
1 change: 1 addition & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Super-opinionated Python stack for fast development. Python >= 3.12 required. Us

```bash
# Setup & Run
make init name=... description=... # Initialize project name and description
make setup # Create/update .venv and sync dependencies
make all # Run main.py with setup

Expand Down
16 changes: 15 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,24 @@ help: ## Show this help message
}' $(MAKEFILE_LIST)

########################################################
# Initialization: Delete later
# Initialization
########################################################

### Initialization
.PHONY: init banner logo
init: ## Initialize project (usage: make init name=my-project description="my description")
@if [ -z "$(name)" ] || [ -z "$(description)" ]; then \
echo "$(RED)Error: Both 'name' and 'description' parameters are required$(RESET)"; \
echo "Usage: make init name=<project_name> description=<project_description>"; \
exit 1; \
fi
@echo "$(YELLOW)🚀 Initializing project $(name)...$(RESET)"
@sed -i.bak "s/name = \"python-template\"/name = \"$(name)\"/" pyproject.toml && rm pyproject.toml.bak
@sed -i.bak "s/description = \"Add your description here\"/description = \"$(description)\"/" pyproject.toml && rm pyproject.toml.bak
@sed -i.bak "s/# Python-Template/# $(name)/" README.md && rm README.md.bak
@sed -i.bak "s/<b>Opinionated Python project stack. 🔋 Batteries included. <\/b>/<b>$(description)<\/b>/" README.md && rm README.md.bak
@echo "$(GREEN)✅ Updated project name and description.$(RESET)"

banner: check_uv ## Generate project banner image
@echo "$(YELLOW)🔍Generating banner...$(RESET)"
@uv run python -m init.generate_banner
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ Opinionated Python stack for fast development. The `saas` branch extends `main`

## Quick Start

- `make init name=my-project description="My project description"` - initialize project
- `make all` - runs `main.py`
- `make fmt` - runs `ruff format` + JSON formatting
- `make banner` - create a new banner that makes the README nice 😊
Expand Down
24 changes: 0 additions & 24 deletions init/Makefile

This file was deleted.

Loading