Skip to content

Conversation

@ZeroSumQuant
Copy link
Owner

Summary

  • Adds write_pyproject() phase that creates a minimal pyproject.toml if one doesn't exist
  • Generates a PEP 621-compliant file with project name, version 0.0.0, and basic metadata
  • Project name is derived from the target directory name (spaces converted to hyphens)

Implementation Details

  • Only creates pyproject.toml if it doesn't already exist (idempotent)
  • Includes minimal fields: name, version, authors, description, requires-python
  • Updates summary with path to created file
  • Registered as a phase after organise_project

Test Coverage

  • Test creation of pyproject.toml with correct content
  • Test that existing files are not overwritten
  • Test summary update
  • Test handling of spaces in directory names
  • All 4 tests pass locally

🤖 Generated with Claude Code

@ZeroSumQuant ZeroSumQuant merged commit 04861fd into main Jun 5, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants