Skip to content

chore: add .python-version to templates missing it - #156

Closed
AshSgDe29071999 wants to merge 1 commit into
Create-Python-App:mainfrom
AshSgDe29071999:chore/python-version-templates
Closed

chore: add .python-version to templates missing it#156
AshSgDe29071999 wants to merge 1 commit into
Create-Python-App:mainfrom
AshSgDe29071999:chore/python-version-templates

Conversation

@AshSgDe29071999

@AshSgDe29071999AshSgDe29071999 commented Aug 6, 2026

Copy link
Copy Markdown

Summary

Most templates lacked .python-version, so pyenv/uv would not pin Python when entering a scaffolded project.

Changes

  • Add .python-version aligned with each template's requires-python (default 3.12)

Closes#153

Summary by CodeRabbit

  • Chores
    • Standardized the Python version to 3.12 across the Celery worker, CLI, Django API, FastAPI, and MLOps starter templates.
    • New projects created from these templates now use a consistent Python runtime by default.

Closes#153
Pin the template minimum Python version so pyenv/uv resolve
consistently when entering a scaffolded project.
@coderabbitai

coderabbitaiBot commented Aug 6, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: df8f0047-9844-47cf-ba47-9cb01dd9e87c

📥 Commits

Reviewing files that changed from the base of the PR and between 6986f9b and ab27ce4.

📒 Files selected for processing (5)
  • templates/celery-worker/.python-version
  • templates/cli-starter/.python-version
  • templates/django-api/.python-version
  • templates/fastapi-starter/.python-version
  • templates/mlops-sklearn-starter/.python-version

📝 Walkthrough

Walkthrough

Added .python-version files containing Python 3.12 to five templates: Celery, CLI, Django, FastAPI, and MLOps scikit-learn.

Changes

Python version pins

Layer / File(s)Summary
Add template Python version files
templates/*/.python-version
Added .python-version files containing 3.12 to five templates.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check nameStatusExplanation
Description Check✅ PassedCheck skipped - CodeRabbit’s high-level summary is enabled.
Title check✅ PassedThe title clearly identifies the addition of .python-version files to templates missing them.
Linked Issues check✅ PassedThe PR adds 3.12 .python-version files to all five templates required by issue #153.
Out of Scope Changes check✅ PassedAll changes directly support issue #153, with no unrelated modifications identified.
Docstring Coverage✅ PassedNo functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@ulises-jeremias

ulises-jeremias commented Aug 9, 2026

Copy link
Copy Markdown
Member

Thanks @AshSgDe29071999 — closing as duplicate of #159 (same scope #152.python-version). #159 already combines #152+#153 canonically. Thanks for the contribution!

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.

chore: add .python-version to templates missing it

2 participants

@AshSgDe29071999@ulises-jeremias