Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

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

Abierto
#801 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@anth-volk ya está trabajando en esto.

Desde el 14/10/2026.

  • #802 de @anth-volk — abierto

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
22/100
Tipo de issue
Refactorización
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
python
Área
tooling

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Python
Estrellas
1
Forks
1
Merge medio
1 d 8 h
PR fusionados (30 d)
51

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de PolicyEngine/policyengine-sim-api

Todos los issues de PolicyEngine/policyengine-sim-api

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.