[CI] Add ruff lint step to CI (+ optional pre-commit config)
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 72/100
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
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:
- Add
rufftorequirements-dev.txt(pinned) - Add
[tool.ruff]config topyproject.toml— start permissive: default rules, line-length matching existing style; fix ornoqaexisting findings in the same PR - Add a fast lint job to
.github/workflows/ci.yml(single ubuntu leg) and wire it into the gate:ci-okbecomesneeds: [test, lint] - Optional follow-up PR:
.pre-commit-config.yamlwith 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
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de alphacrack/python-maithili-dsl
-
help wanted infra P2 testing
Difficulté 2/5 1-3 heures Accessibilité débutants 80/100
-
documentation enhancement good first issue help wanted P3
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
-
documentation good first issue P3
Difficulté 1/5 Moins d'une heure Accessibilité débutants 88/100
-
area:linter enhancement good first issue P3 translation
Difficulté 2/5 Une demi-journée Accessibilité débutants 66/100
-
area:cli enhancement good first issue P3
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
Toutes les issues de alphacrack/python-maithili-dsl
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
gorakhargosh/watchdog#1462 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 85/100
openwisp/openwisp-monitoring#889 ·
Les mainteneurs répondent en général sous 2 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
OpenFreeEnergy/Lomap#180 ·
-
generate_observation_scenario_from_cpgs exposure time conversion when auto-gain set to 'yes'Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
roman-corgi/corgisim#327 ·
Les mainteneurs répondent en général sous 2 jours
-
agent:WSL bug code-review linux pri:medium sev:low tooling
Difficulté 2/5 Une demi-journée Accessibilité débutants 62/100
Les mainteneurs répondent en général sous 1 jour