--suggest-targets: read multi-line flow mappings and multi-line quoted values

Aperta
#271 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
70/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python, yaml
Ambito
cli, testing

Direzione di ricerca

Start with the grammar in src/wheelgap/suggest_targets.py and the generators and PyYAML oracle in tests/test_suggest_targets_fuzz.py. Extend coverage for multi-line flow mappings and quoted values, keeping the specified restrictions on which values may be read. Verify the oracle agrees, then report how many of the 164 listed workflow files remain refused; the issue reports 2 today.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

help wanted

The whitelist reader (#250) refuses two shapes that real workflows use, so it reads nothing from those files:

  • a multi-line flow mapping in a list, e.g. uv's test-system.yml:
    - {
        os: windows-latest,
        python: "3.13",
      }
    
  • a single- or double-quoted value spanning several lines, e.g. Pillow's CIBW_TEST_COMMAND.

What to do

  • Extend the grammar in src/wheelgap/suggest_targets.py for exactly these two shapes, strictly: the multi-line flow mapping holds only key: ITEM pairs where ITEM is a plain or whole-quoted scalar; a multi-line quoted value is accepted only where it isn't read (it stays refused as runs-on, python-version, architecture and so on).
  • Extend tests/test_suggest_targets_fuzz.py so its generators produce both shapes, and keep the PyYAML oracle agreeing.
  • Report in the PR how many of the 164 real workflow files listed there are still refused (2 today).
Lingua principale
Python
Stelle
0
Fork
1
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di patrickballard/wheelgap

Tutte le issue di patrickballard/wheelgap

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.