Skip to content

fix(cli): fail early on non-empty target dir (0.2.10) - #244

Merged
ulises-jeremias merged 2 commits into
mainfrom
fix/cli-nonempty-dir-early-check
Jul 22, 2026
Merged

fix(cli): fail early on non-empty target dir (0.2.10)#244
ulises-jeremias merged 2 commits into
mainfrom
fix/cli-nonempty-dir-early-check

Conversation

@ulises-jeremias

Copy link
Copy Markdown
Member

Summary

  • Interactive scaffolding used to run the full wizard and then crash with a traceback when the default my-project/ (or any target) was already non-empty
  • Validate emptiness before prompts; exit cleanly with a --force / rename hint
  • Bump create-awesome-python-app + create-python-app-core to 0.2.10

Test plan

  • uv run pytest packages/create-awesome-python-app/tests/test_cli.py packages/create-python-app-core/tests/test_config.py
  • CI fully green
  • After merge: tag create-awesome-python-app@0.2.10 and confirm PyPI / dist smoke

Manual repro (pre-fix)

mkdir -p my-project &&echo x > my-project/leftover
uvx create-awesome-python-app # wizard then NonEmptyTargetDirectoryError traceback

Post-fix: same command should fail immediately with a clear message.

Made with Cursor

Check emptiness before the interactive wizard and exit cleanly with a
--force / rename hint instead of a post-prompt traceback.
Co-authored-by: Cursor <cursoragent@cursor.com>
@ulises-jeremias
ulises-jeremias marked this pull request as ready for review July 22, 2026 14:45
Co-authored-by: Cursor <cursoragent@cursor.com>
@ulises-jeremias
ulises-jeremias merged commit 0d20488 into mainJul 22, 2026
15 checks passed
@ulises-jeremias
ulises-jeremias deleted the fix/cli-nonempty-dir-early-check branch July 22, 2026 14:48
Sign up for freeto 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.

1 participant

@ulises-jeremias