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

Ruff ignore list is too long

Aperta
#634 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python
Ambito
tooling

Direzione di ricerca

Start with the Ruff ignore list in pyproject.toml and check which ignored rules currently flag the project. The goal is to reduce the list; confirm the changes against the project's linting setup and ensure the existing code still passes.

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

Descrizione

From pyproject.toml ...

ignore = [
    "E501",    # Line too long (formatter handles this)
    "E402",    # Module level import not at top of file (common with conditional imports)
    "E721",    # Type comparisons (isinstance is not always better)
    "E722",    # Bare except (TODO: fix these gradually)
    "E731",    # Lambda assignments (sometimes clearer than def)
    "B007",    # Unused loop variable (often intentional)
    "B011",    # assert False (used as unreachable markers)
    "B018",    # Useless expression (often intentional in tests)
    "B026",    # Star-arg after keyword (legacy pattern)
    "B028",    # stacklevel in warnings (not critical)
    "B904",    # raise from (TODO: fix gradually)
    "F401",    # Unused imports (many are for re-export or conditional)
    "F403",    # Star imports (legacy, TODO: fix gradually)
    "F821",    # Undefined names (often in TYPE_CHECKING blocks or docstrings)
    "F841",    # Unused variables (often intentional, e.g. unpacking)
    "UP007",   # Optional[X] vs X | None (used in try/except for backwards compat)
    "UP008",   # super() style (existing code uses explicit form)
    "UP031",   # %-format (existing code uses it extensively)
    "UP036",   # Outdated version blocks (will clean up when dropping old Python)
    "UP045",   # X | None vs Optional (both are fine)
]

We should try to reduce this. A shame I forgot about it before the v3.0-release.

Lingua principale
Python
Stelle
412
Fork
113
Merge medio
22h 15m
PR unite (30g)
44

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 python-caldav/caldav

Tutte le issue di python-caldav/caldav

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.