Skip to content

fix(lint): resolve all ruff violations - #20

Merged
valorisa merged 2 commits into
mainfrom
fix/lint-ruff
Aug 7, 2026
Merged

fix(lint): resolve all ruff violations#20
valorisa merged 2 commits into
mainfrom
fix/lint-ruff

Conversation

@valorisa

@valorisa valorisa commented Aug 7, 2026

Copy link
Copy Markdown
Owner

Résumé

Corrige les 34 violations Ruff qui bloquaient la CI.

Corrections appliquées

  • Autofixes (27 erreurs) : tri des imports, modernisation typing
  • DTZ011 (4 erreurs) : remplacement de date.today() par datetime.now(tz=timezone.utc).date()
  • RUF012 (1 erreur) : annotation ClassVar sur _MANIFEST_TEMPLATES

Vérifications

  • ruff check . : All checks passed
  • pytest : 119 tests passed

Fixes CI lint job.

- Apply ruff autofixes: sort imports, modernize typing (Dict->dict, List->list)
- Replace date.today() with datetime.now(tz=timezone.utc).date() (DTZ011)
- Annotate _MANIFEST_TEMPLATES with ClassVar (RUF012)
- Update tests to use timezone-aware datetime

All 119 tests passing. Ruff check clean.
@valorisa
valorisa merged commit 0bafbab into main Aug 7, 2026
3 checks passed
@valorisa
valorisa deleted the fix/lint-ruff branch August 7, 2026 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant