Skip to content

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

Closed
emberb170d wants to merge 2 commits into
Create-Python-App:mainfrom
emberb170d:chore/add-python-version-to-templates
Closed

chore: add .python-version to templates missing it#158
emberb170d wants to merge 2 commits into
Create-Python-App:mainfrom
emberb170d:chore/add-python-version-to-templates

Conversation

@emberb170d

@emberb170demberb170d commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Adds .python-version file (containing 3.12) to the 5 templates that were missing it:

  • celery-worker
  • cli-starter
  • django-api
  • fastapi-starter
  • mlops-sklearn-starter

This aligns with the requires-python = ">=3.12" in each template's pyproject.toml and enables pyenv local / uv python pin auto-resolution for scaffolded projects.

Closes#153

Summary by CodeRabbit

  • Chores
    • Standardized formatting conventions across project templates, including encoding, line endings, indentation, final newlines, and whitespace handling.
    • Added language-specific formatting rules for configuration, documentation, data files, and Makefiles.
    • Set Python 3.12 as the default version for the Celery, CLI, Django, FastAPI, and MLOps starter templates.

FixesCreate-Python-App#152 - Add .editorconfig to all templates for consistent editor settings across projects.
All templates now have consistent indentation (space, 4), line endings (lf),
charset (utf-8), and trailing whitespace trimming.
@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: 96a45683-aadb-44c5-b50d-203dc737b83a

📥 Commits

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

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

📝 Walkthrough

Walkthrough

The pull request adds .editorconfig files to six templates and .python-version files containing Python 3.12 to five templates.

Changes

Template defaults

Layer / File(s)Summary
Python version pinning
templates/*/.python-version
The Celery, CLI, Django, FastAPI, and MLOps templates specify Python 3.12.
Editor formatting defaults
templates/*/.editorconfig
All six templates define encoding, line endings, whitespace handling, and format-specific indentation rules.

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

Possibly related issues

Possibly related PRs

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check nameStatusExplanationResolution
Out of Scope Changes check⚠️ WarningThe PR also adds .editorconfig files to six templates, including uv-workspace-starter, which is outside issue #153.Remove the unrelated .editorconfig additions, or update the linked issue and PR scope to include them.
✅ Passed checks (4 passed)
Check nameStatusExplanation
Description Check✅ PassedCheck skipped - CodeRabbit’s high-level summary is enabled.
Title check✅ PassedThe title accurately and concisely describes the primary change: adding .python-version files to templates that lack them.
Linked Issues check✅ PassedThe PR adds .python-version files containing 3.12 to all five templates listed in issue #153.
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.

Warning

⚠️ This pull request shows signs of AI-generated slop (description_diff_mismatch). It has been flagged by CodeRabbit slop detection and should be reviewed carefully.

@ulises-jeremias

ulises-jeremias commented Aug 9, 2026

Copy link
Copy Markdown
Member

Thanks @emberb170d — this PR (#158.python-version) is consolidated into your #159 which already covers #152+#153 combined. Closing #158 to keep #159 as canonical. #162 and #163 remain separate (docs).

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

@emberb170d@ulises-jeremias