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

Ouverte
#45 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
3/5
Temps estimé
1-2 jours
Accessibilité débutants
72/100
Type d'issue
Fonctionnalité
Clarté
Clairement spécifiée
Activité
Calme
Stack technique
github-actions, python
Domaine
ci-cd

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.

Langage dominant
Python
Étoiles
1
Forks
4
Merge moyen
12 j 21 h
PR mergées (30 j)
1

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de alphacrack/python-maithili-dsl

Toutes les issues de alphacrack/python-maithili-dsl

Issues similaires

Plus d'issues Python

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.