argopy.utils.GreenCoding.footprint_since_last_release

argopy.utils.GreenCoding.footprint_since_last_release#

GreenCoding.footprint_since_last_release(with_master: bool = True, errors='ignore') float[source]#

Compute total carbon footprint since the last release

Parameters:
  • with_master (bool, default=True) – Should we consider also the ‘master’ branch footprint or not.

  • errors (Literal, default: ignore) –

    Define how to handle errors raised during data fetching:
    • raise (default): Raise any error encountered

    • ignore: Do not stop processing, simply issue a debug message in logging console

    • silent: Do not stop processing and do not issue log message

Returns:

Total carbon footprint in gCO2eq, considering all workflows

Return type:

float