[CI] Add ruff lint step to CI (+ optional pre-commit config)

Offen
#45 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
72/100
Issue-Typ
Feature
Klarheit
Klar beschrieben
Aktivitätsstatus
Ruhig
Tech-Stack
github-actions, python
Bereich
ci-cd

Rechercherichtung

The change touches requirements-dev.txt, pyproject.toml and .github/workflows/ci.yml. Start by reading the existing test job and the ci-ok gate in ci.yml, then run ruff locally against the source to see how many findings exist. Done means ruff is pinned, a [tool.ruff] section is in pyproject.toml, a lint job is added, ci-ok needs both test and lint, and CI is green.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

good first issue infra P2 quality

CI runs pytest but never lints the Python source itself (verified — no ruff/flake8/black anywhere in .github/workflows/ci.yml or pyproject.toml).

Steps:

  1. Add ruff to requirements-dev.txt (pinned)
  2. Add [tool.ruff] config to pyproject.toml — start permissive: default rules, line-length matching existing style; fix or noqa existing findings in the same PR
  3. Add a fast lint job to .github/workflows/ci.yml (single ubuntu leg) and wire it into the gate: ci-ok becomes needs: [test, lint]
  4. Optional follow-up PR: .pre-commit-config.yaml with ruff + trailing-whitespace hooks

Good first issue for someone who has set up ruff before. Keep the first PR small — config + green CI, not a style crusade.

Vorherrschende Sprache
Python
Sterne
1
Forks
4
Ø Merge
12 T. 21 Std.
Gemergte PRs (30 T.)
1

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 alphacrack/python-maithili-dsl

Alle Issues in alphacrack/python-maithili-dsl

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

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