Format Python code with psf/black push - #97
Closed
github-actions[bot] wants to merge 16 commits into
Closed
Conversation
github-actions
Bot
requested review from
drik-493 and
mrayanasim09
as code owners
August 13, 2026 00:55
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Reviewer's GuideThis PR runs the psf/black formatter over several Python modules to fix style and formatting issues without changing behavior, primarily reflowing long lines, adjusting quote styles, adding trailing commas, and normalizing whitespace. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
github-actions
Bot
force-pushed
the
actions/black
branch
2 times, most recently
from
August 13, 2026 00:55
3f872cb to
8fe58d7
Compare
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- The long random food coordinate expressions in
Game/snake_game.pyare now wrapped in a way that’s a bit harder to read; consider extracting them into a small helper function (e.g.,spawn_food()) to keep the game loop and reset logic clearer. - In
api/index.py, collapsing theadd_middlewarecall onto a single line hurts readability when scanning allowed CORS configuration; consider keeping one-argument-per-line formatting or using# fmt: offaround that call if you want Black to preserve the multi-line layout.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- The long random food coordinate expressions in `Game/snake_game.py` are now wrapped in a way that’s a bit harder to read; consider extracting them into a small helper function (e.g., `spawn_food()`) to keep the game loop and reset logic clearer.
- In `api/index.py`, collapsing the `add_middleware` call onto a single line hurts readability when scanning allowed CORS configuration; consider keeping one-argument-per-line formatting or using `# fmt: off` around that call if you want Black to preserve the multi-line layout.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 0 |
| Duplication | 2 |
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
github-actions
Bot
force-pushed
the
actions/black
branch
from
August 13, 2026 01:03
8fe58d7 to
0c1cee1
Compare
github-actions
Bot
force-pushed
the
actions/black
branch
from
August 13, 2026 01:19
0c1cee1 to
bb67c2a
Compare
github-actions
Bot
force-pushed
the
actions/black
branch
from
August 13, 2026 01:25
bb67c2a to
28b72d6
Compare
github-actions
Bot
force-pushed
the
actions/black
branch
from
August 13, 2026 01:26
28b72d6 to
1e6cf21
Compare
github-actions
Bot
force-pushed
the
actions/black
branch
from
August 13, 2026 01:30
5b9175a to
b5682f2
Compare
Signed-off-by: Muhammad Rayyan Asim <mrayanasim09@gmail.com>
Signed-off-by: Muhammad Rayyan Asim <mrayanasim09@gmail.com>
github-actions
Bot
force-pushed
the
actions/black
branch
from
August 13, 2026 10:30
b5682f2 to
4bd9d6d
Compare
github-actions
Bot
force-pushed
the
actions/black
branch
from
August 13, 2026 10:30
4bd9d6d to
b6c6d44
Compare
Signed-off-by: Muhammad Rayyan Asim <mrayanasim09@gmail.com>
github-actions
Bot
force-pushed
the
actions/black
branch
from
August 13, 2026 10:31
b6c6d44 to
430ad4a
Compare
Signed-off-by: Muhammad Rayyan Asim <mrayanasim09@gmail.com>
github-actions
Bot
force-pushed
the
actions/black
branch
from
August 13, 2026 10:34
430ad4a to
fdbe34b
Compare
Signed-off-by: Muhammad Rayyan Asim <mrayanasim09@gmail.com>
github-actions
Bot
force-pushed
the
actions/black
branch
from
August 13, 2026 10:34
fdbe34b to
6031729
Compare
…n workflows Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…inimal check\n\nRemove lines, greetings, indent_check, datree-validation, stale, puppet-lint, codacy workflows as Vercel handles deployments; preserve bandit, black, dependency-review, and check workflows. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
github-actions
Bot
force-pushed
the
actions/black
branch
from
August 13, 2026 12:14
6031729 to
1240e25
Compare
…lnerabilities\n\nPin yfinance>=0.2.29 and pyautogui>=0.9.55 as safer versions; will monitor security advisories for further updates. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
github-actions
Bot
force-pushed
the
actions/black
branch
from
August 13, 2026 12:16
1240e25 to
fcc156c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
There appear to be some python formatting errors in 770f366. This pull request
uses the psf/black formatter to fix these issues.
Summary by Sourcery
Enhancements:
This change is