Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions backend/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ lint = [
]
load = [
"matplotlib==3.10.8",
"Pillow>=12.1.1",
Copy link

Copilot AI Mar 3, 2026

Choose a reason for hiding this comment

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

In [dependency-groups].load, the dependency name is capitalized as "Pillow>=12.1.1", while the rest of this file (and the generated uv.lock) uses normalized/lowercase names (e.g., matplotlib, pillow). Even though pip is case-insensitive, keeping the canonical lowercase name avoids churn in lockfiles and tooling that normalizes names. Suggest changing this to pillow>=12.1.1 for consistency.

Suggested change
"Pillow>=12.1.1",
"pillow>=12.1.1",

Copilot uses AI. Check for mistakes.
]
Comment on lines 149 to 151
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Verify whether Pillow is imported in runtime packages (app/workers) vs. load-only scripts.
rg -nP --type=py -C2 '\b(from\s+PIL\s+import|import\s+PIL\b)' app workers 2>/dev/null || echo "No matches found in app/workers"

Repository: HardMax71/Integr8sCode

Length of output: 97


🏁 Script executed:

cat backend/pyproject.toml

Repository: HardMax71/Integr8sCode

Length of output: 6270


Pin Pillow to exact version for consistency with project's strict dependency pinning strategy.

The >=12.1.1 constraint breaks the project's pattern—all other dependencies use exact pins (==), including matplotlib in the same load group. Pillow is correctly scoped to load-only tooling, but should match the pinning convention.

Pinning adjustment
 load = [
     "matplotlib==3.10.8",
-    "Pillow>=12.1.1",
+    "Pillow==12.1.1",
 ]
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"matplotlib==3.10.8",
"Pillow>=12.1.1",
]
"matplotlib==3.10.8",
"Pillow==12.1.1",
]
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@backend/pyproject.toml` around lines 149 - 151, The Pillow dependency uses a
>= constraint which violates the project's strict exact-pinning convention; in
pyproject.toml change the "Pillow>=12.1.1" entry to an exact pin (e.g.
"Pillow==12.1.1") so it matches other exact pins like "matplotlib==3.10.8" and
keeps load-only tooling consistent.

dev = [
{ include-group = "test" },
Expand Down
Loading
Loading