Skip to content

Python/procfiles#423

Merged
davideme merged 2 commits intomainfrom
python/procfiles
Feb 24, 2026
Merged

Python/procfiles#423
davideme merged 2 commits intomainfrom
python/procfiles

Conversation

@davideme
Copy link
Owner

No description provided.

Copilot AI review requested due to automatic review settings February 24, 2026 20:15
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates runtime/process configuration for the Python service and adjusts Claude Code local permission allowlisting.

Changes:

  • Simplifies the Python Procfile uvicorn command by removing the fixed --workers 4 setting.
  • Extends/reorders the .claude/settings.local.json allowlist entries for additional Bash commands.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/python/Procfile Changes how the Python API is launched via Procfile (notably worker configuration).
.claude/settings.local.json Updates the Claude Code local permissions allowlist.

@@ -1 +1 @@
web: uvicorn main:app --host 0.0.0.0 --port 8080 --workers 4 No newline at end of file
web: uvicorn main:app --host 0.0.0.0 --port 8080 No newline at end of file
Copy link

Copilot AI Feb 24, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Procfile now runs uvicorn directly with a hard-coded port and without any way to configure worker count. Since this repo already has launcher.py to honor PORT and WORKERS (for Cloud Run / buildpacks), consider switching the Procfile command to invoke the launcher (or otherwise pass through env-based PORT/worker configuration) to avoid silently running single-worker in production.

Suggested change
web: uvicorn main:app --host 0.0.0.0 --port 8080
web: python launcher.py

Copilot uses AI. Check for mistakes.
Comment on lines +33 to +37
"Bash(git check-ignore:*)",
"Bash(git checkout:*)",
"Bash(git cherry-pick:*)",
"Bash(git commit:*)",
"Bash(git merge:*)",
Copy link

Copilot AI Feb 24, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file appears to be intended as a developer-local Claude configuration, but the repository .gitignore ignores .claude/ and only whitelists settings.json and hooks/ (so settings.local.json is not meant to be version-controlled). If these permissions need to be shared, move them into .claude/settings.json; otherwise, consider removing settings.local.json from git tracking to avoid committing local preferences/permissions.

Copilot uses AI. Check for mistakes.
@davideme davideme merged commit 45db1af into main Feb 24, 2026
7 checks passed
@davideme davideme deleted the python/procfiles branch February 24, 2026 20:20
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