Feat: a comment length budget in AGENTS.md and a PR bot that lists long comment blocks
I maintainer di solito rispondono entro 3 giorni
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Describe the feature
A follow-up to #1458. AGENTS.md already asks for comments of one or two lines. Nothing checks it, and long blocks keep landing. In the last 40 merged PRs, 10 added a comment block over 3 lines (46 blocks in total). 4 of them added blocks of 5 lines or more (21 blocks). Docstrings were not counted.
I'd like to propose two things.
1. Write the budget down where agents and contributors look
AGENTS.md: most comments are one line, two at most. Three or four are fine for a section separator (a rule, a title, a rule) or the rare reason that needs the room. Anything longer gets trimmed to the reason.- The same rule in
.cursor/rules/pictopy.mdc,.github/copilot-instructions.md,.claude/agents/pictopy-reviewer.mdand.coderabbit.yaml, plus a short section inCONTRIBUTING.md.
2. A bot comment on PRs that add long comment blocks
A pull_request_target workflow, built the same way as the duplicate-issue check in issue-triage.yml:
- One job reads the PR through the API with read-only access. It never checks out or runs the PR's code.
- It looks at comment blocks the PR adds or edits in Python, TS/TSX and Rust. Separator rules, blank comment lines, lint directives and docstrings don't count.
- A second job posts one comment listing each block with a link to its lines. Blocks of 5 or more lines go under "Please trim" and 4-line blocks under "Worth a second look".
- The comment updates on every push and is removed once everything is trimmed. The check never fails, so it can't block a merge.
One question
AGENTS.md says never to write TODO or FIXME comments, but the # TODO markers on the placeholder SigLIP2 entries in backend/app/models/model_registry.py are meant to stay. The ESLint rule behind it only covers the frontend. Should the docs say backend TODOs are fine where they mark a known gap?
@rohan-pandeyy could you assign this to me? A working version is ready on a branch, and I can open the PR once it's assigned.
Add ScreenShots
What the bot comment looks like (example paths):
Long comments in this PR
PictoPy keeps most comments to one or two lines that say why. Three or four are fine for a section separator or the rare reason that needs the room. Longer blocks should be trimmed. See Comments explain why in
AGENTS.md.Please trim (5 or more lines)
File Lines Comment lines backend/app/utils/example.py568-572 5 Worth a second look (4 lines)
File Lines Comment lines frontend/src/hooks/useExample.ts6-11 4 Separator rules like
# ====and blank comment lines are not counted. This check updates on every push and never blocks the merge.
In the real comment each file name links to the exact lines in the PR.
Record
- I agree to follow this project's Code of Conduct
- I want to work on this issue
- Lingua principale
- Python
- Stelle
- 322
- Fork
- 793
- Merge medio
- 6g 10h
- PR unite (30g)
- 20
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di AOSSIE-Org/PictoPy
-
bug enhancement
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
AOSSIE-Org/PictoPy#1802 · 2 commenti ·
I maintainer di solito rispondono entro 3 giorni
-
BUG: XMP metadata export permanently overwrites file modification timestamp (mtime), destroying photo datesForse già presa @swastiksharma45 l’ha presa 2 giorni fa. Apertabug enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
AOSSIE-Org/PictoPy#1788 · 6 commenti ·
I maintainer di solito rispondono entro 3 giorni
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
AOSSIE-Org/PictoPy#1786 · 1 commento ·
I maintainer di solito rispondono entro 3 giorni
-
BUG: Semantic search sees portrait phone photos sideways (SigLIP ignores EXIF orientation)Forse già presa @omkar-suryavanshi l’ha presa 3 giorni fa. Apertabug enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
AOSSIE-Org/PictoPy#1780 · 5 commenti ·
I maintainer di solito rispondono entro 3 giorni
-
BUG: Share password loses leading/trailing spaces so the password you set doesn't workForse già presa @ManyaJain111 l’ha presa 2 giorni fa. Apertabug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
AOSSIE-Org/PictoPy#1779 · 2 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 3 giorni
Tutte le issue di AOSSIE-Org/PictoPy
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
hermes hooks doctor smoke test never checks the hook exit code — a crashing hook (exit=1) renders ✓ "ran clean" and "All shell hooks look healthy"Forse già presa @cestercian l’ha presa oggi. Apertacomp/cli P2 type/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
NousResearch/hermes-agent#162259 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
[request] gRpc/1.86.0Apertaupstream update
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
conan-io/conan-center-index#31597 ·
I maintainer di solito rispondono entro 1 giorno
-
community-request
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
NVIDIA-NeMo/Run#727 ·
I maintainer di solito rispondono entro 1 giorno
-
bot-triaged module: higher order operators module: pickle module: pt2-dispatcher oncall: pt2 triaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
pytorch/pytorch#207247 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno