Skip to content

feat(cli): forward monitor tracker options - #1275

Open
lntutor wants to merge 1 commit into
mlco2:masterfrom
lntutor:fix/monitor-options-1273
Open

feat(cli): forward monitor tracker options#1275
lntutor wants to merge 1 commit into
mlco2:masterfrom
lntutor:fix/monitor-options-1273

Conversation

@lntutor

@lntutor lntutor commented Jul 26, 2026

Copy link
Copy Markdown

Summary

  • forward tracker constructor options passed to codecarbon monitor, including --pue and --allow-multiple-runs
  • derive accepted option names from BaseEmissionsTracker.__init__ so the CLI tracks future scalar tracker options
  • add CLI coverage for typed float and boolean forwarding

Closes #1273

Checks

  • uv run python -m pytest tests/cli/test_cli_main.py -q
  • uv run ruff check codecarbon/cli/main.py tests/cli/test_cli_main.py
  • uv run ruff format --check codecarbon/cli/main.py tests/cli/test_cli_main.py

uv run mypy codecarbon/cli/main.py is currently blocked by 285 existing type errors across 19 project modules.

Signed-off-by: Loi Nguyen <loinguyen@local>
@lntutor
lntutor requested a review from a team as a code owner July 26, 2026 10:31
@benoit-cty

Copy link
Copy Markdown
Contributor

Hello, thanks for the contribution. Can you keep our PR template ?

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.

Allow all options to codecarbon monitor

2 participants