Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Follow-ups from #2160: qualifying-age docstring, UC work-related groups property-file speed, changelog fragment example

Aperta Adatta ai principianti
#2,162 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

@juaristi22 ci sta già lavorando.

Dal 17/10/2026.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
88/100
Tipo di issue
Documentazione
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python

Direzione di ricerca

Tre follow-up indipendenti, ognuno con il proprio obiettivo indicato. (1) Trova la docstring di has_attained_state_pension_credit_qualifying_age (grep sotto policyengine_uk/) e applica la formulazione suggerita riguardo la data di nascimento del 6 novembre 1953; la formula resta intatta. (2) Aggiungi pytestmark = pytest.mark.usefixtures("cloned_uk_tax_benefit_system") in cima a policyengine_uk/tests/test_uc_work_related_groups_properties.py, copiando il pattern di test_ni_class_4_properties.py, poi esegui il file per confermare che tutti e 14 i test passano. (3) In docs/engineering/skills/github-prs.md righe 43-48, rimuovi il - iniziale dall'esempio di fragment del changelog affinché il template predefinito di towncrier non renderizzi - - . Completato quando i test passano e l'esempio non inizia più con un punto elenco.

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

Descrizione

Three small follow-ups found while reviewing #2160. Each is outside that PR's scope.

  1. Qualifying-age documentation. The documentation of has_attained_state_pension_credit_qualifying_age (from #1907) says men born before 6 December 1953 "reach it before their own State Pension age of 65". For a man born on 6 November 1953, the qualifying age (Pensions Act 1995 Sch 4 para 1 table 1: "6th November 1953 to 5th December 1953", 6 November 2018) falls on his 65th birthday. A check of every birth date from 1880 to 5 December 1953 found that is the only date where the two coincide. Suggested wording: "reach it before their own State Pension age of 65 (on it, for a birth on 6 November 1953)". The formula is unaffected.
  2. Property-file speed. policyengine_uk/tests/test_uc_work_related_groups_properties.py lacks the pytestmark = pytest.mark.usefixtures("cloned_uk_tax_benefit_system") used by the repo's other property files (test_ni_class_4_properties.py, test_ni_class_4_profits_properties.py, test_trading_allowance_properties.py, test_bus_fare_reforms.py, test_ni_class_4_maximum.py). So it loads the model again for every Simulation. On a loaded host, an unmodified local run reached 3 tests in 90 minutes. With the fixture applied to every test, all 14 passed in 2,035 s.
  3. Changelog fragment example. docs/engineering/skills/github-prs.md (lines 43-48) shows a fragment that starts with - . [tool.towncrier] sets no template, so towncrier's default template adds the bullet itself, and such fragments render as - - in CHANGELOG.md. There are 94 such lines on main, including in 2.122.2 and 2.121.0. Drop the - from the example. Optionally, normalise the existing - - lines.
Lingua principale
Python
Stelle
52
Fork
34
Merge medio
3g 7h
PR unite (30g)
278

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 PolicyEngine/policyengine-uk

Tutte le issue di PolicyEngine/policyengine-uk

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.