Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

Enable ruff argument, idiom and pytest-style rules (ARG, B, C4, FBT, PERF, PLW, PT, PTH, RUF, SIM and others)

Geschlossen
#801 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Ein zugehöriger Pull Request wurde bereits gemerged.

  • #802 von @anth-volk — gemerged

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
22/100
Issue-Typ
Refactoring
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
python
Bereich
tooling

Rechercherichtung

This is a maintainer-led lint rollout across the whole repository, so it is not a good first pick. Start with the ruff rule selection in the project's lint configuration, then run ruff on one rule group at a time to see the violations. Done means each enabled group is clean, with deliberate exceptions noted, and the published schemas and HTTP API are unchanged.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Phase 1 step 1.8, group 8a of the rules workstream: enable ruff's argument, idiom and pytest-style rules (ARG, ASYNC, B, C4, FBT, PD, PERF, PGH, PLW, PT, PTH, RUF, SIM). Group 8b follows with the complexity refactors (C901, PLR) and the switch to select = ["ALL"].

  • Unused arguments (ARG): remove, underscore or explain each. Request side-effect fixtures with usefixtures. Never rename a parameter that callers pass by keyword.
  • Boolean arguments (FBT): make them keyword-only where every caller is in the repository.
  • Idioms (C4, SIM, PERF, RUF, PTH, PLW, B): apply equivalent rewrites; keep deliberate exceptions with a reason.
  • Tests (PT): pytest idioms, with pytest.raises(match=...) on the expected message. The shared rules tool's tests use unittest on purpose and are exempt from PT.

Published schemas, OpenAPI documents and the HTTP API must not change.

Vorherrschende Sprache
Python
Sterne
1
Forks
1
Ø Merge
1 T. 19 Std.
Gemergte PRs (30 T.)
77

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus PolicyEngine/policyengine-sim-api

Alle Issues in PolicyEngine/policyengine-sim-api

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.