Closed eledhwen closed 3 months ago
Good! I like it thanks! You might have some conflicts when merging with
master
, since we have moved all theoutput_methods
inoutput.py
to a its own directory.
Indeed, I just rebased from master and re-dispatched the changes to the various output definitions.
Seeing the output of the CI ==> There are 2 things @eledhwen :
hatch run dev:precommit-install
and commit again, this will apply the correct formatting codecarbon/output_methods/base_output.py
Change from codecarbon.output import TaskEmissionsData
to from codecarbon.output_methods.emissions_data import TaskEmissionsData
==> to avoid circular dependencies.Seeing the output of the CI ==> There are 2 things @eledhwen :
- Run
hatch run dev:precommit-install
and commit again, this will apply the correct formatting- In file
codecarbon/output_methods/base_output.py
Changefrom codecarbon.output import TaskEmissionsData
tofrom codecarbon.output_methods.emissions_data import TaskEmissionsData
==> to avoid circular dependencies.
Done ✅
@inimaz I also fixed the impacted tests, it should be good to go now.
@eledhwen Thanks for the feature! Looks good.
Following-up on discussion in https://github.com/mlco2/codecarbon/pull/458