Skip to content

Commit 3120a44

Browse files
benoit-ctybenoit-cty
andauthored
Remove duplicate PUE (#823)
* Remove duplicate PUE * Add tests on pull_request * doc --------- Co-authored-by: benoit-cty <[email protected]>
1 parent 9112997 commit 3120a44

File tree

2 files changed

+29
-2
lines changed

2 files changed

+29
-2
lines changed

.github/workflows/test-package.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: test-package
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "codecarbon/**"
7+
- "pyproject.toml"
8+
- "requirements.txt"
9+
10+
jobs:
11+
python-test:
12+
runs-on: ubuntu-24.04
13+
strategy:
14+
matrix:
15+
python-version: ["3.9", "3.12", "3.13"]
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Set up Python ${{ matrix.python-version }}
19+
uses: actions/setup-python@v5
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install hatch==1.13.0 hatchling==1.25.0
26+
- name: Test package
27+
run: |
28+
hatch run +py=${{ matrix.python-version }} test:package

codecarbon/emissions_tracker.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""
22
Contains implementations of the Public facing API: EmissionsTracker,
3-
OfflineEmissionsTracker and @track_emissions
3+
OfflineEmissionsTracker, context manager and decorator @track_emissions
44
"""
55

66
import dataclasses
@@ -1126,7 +1126,6 @@ def wrapped_fn(*args, **kwargs):
11261126
log_level=log_level,
11271127
on_csv_write=on_csv_write,
11281128
logger_preamble=logger_preamble,
1129-
pue=pue,
11301129
country_iso_code=country_iso_code,
11311130
region=region,
11321131
cloud_provider=cloud_provider,

0 commit comments

Comments
 (0)