Skip to content

cli: aggiungere filtro --years a run e validate#33

Merged
Gabrymi93 merged 2 commits intomainfrom
feat/years-filter
Mar 11, 2026
Merged

cli: aggiungere filtro --years a run e validate#33
Gabrymi93 merged 2 commits intomainfrom
feat/years-filter

Conversation

@Gabrymi93
Copy link
Member

@Gabrymi93 Gabrymi93 commented Mar 11, 2026

Sintesi

  • aggiunge --years ai comandi run e validate
  • supporta input del tipo 2023,2024, con deduplica e validazione rispetto agli anni dichiarati in dataset.yml
  • applica il filtro anche a run cross_year, così la semantica resta coerente
  • mantiene la compatibilità con i test e gli usi che chiamano cmd_run.run() e cmd_validate.validate() direttamente da Python, senza passare da Typer
  • aggiunge test CLI dedicati per selezione anni, anno non configurato e invocazione Python diretta

Esempi

toolkit run all --config dataset.yml --years 2023,2024
toolkit validate all --config dataset.yml --years 2023,2024
toolkit run cross_year --config dataset.yml --years 2022,2023

Test eseguiti

  • py -m pytest tests\test_cli_years_filter.py
  • py -m pytest tests\test_cli_path_contract.py
  • py -m pytest tests\test_run_validation_gate.py tests\test_cli_all_commands.py tests\test_cross_year.py tests\test_project_example_e2e.py

Issue collegata

Chiude #28

@Gabrymi93 Gabrymi93 merged commit a5ef253 into main Mar 11, 2026
5 checks passed
@Gabrymi93 Gabrymi93 deleted the feat/years-filter branch March 11, 2026 22:21
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