Skip to content

Commit

Permalink
Merge pull request #403 from fvaleye/dependabot/pip/ruff-0.8.5
Browse files Browse the repository at this point in the history
build(deps-dev): Bump ruff from 0.7.4 to 0.8.5
  • Loading branch information
fvaleye committed Jan 3, 2025
2 parents bada1bb + 6428401 commit 7192449
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 23 deletions.
40 changes: 20 additions & 20 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ kubernetes = {version = ">=26.1,<32.0", optional = true}

[tool.poetry.dev-dependencies]
mypy = "^1.10"
ruff = "^0.7.4"
ruff = "^0.8.5"
pytest = "^8.2.1"
pytest-mock = "^3.14.0"
pytest-asyncio = "^0.24.0"
Expand Down
2 changes: 1 addition & 1 deletion tests/hardwares/test_sensors.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def test_get_platform_should_return_the_platform_energy_consumption_mac():

assert (
energy_consumption.shell_command
== """ioreg -rw0 -a -c AppleSmartBattery | plutil -extract '0.BatteryData.SystemPower' raw -"""
== """ioreg -rw0 -a -c AppleSmartBattery | plutil -extract '0.BatteryData.AdapterPower' raw -"""
)
assert energy_consumption.init is False

Expand Down
2 changes: 1 addition & 1 deletion tracarbon/hardwares/sensors.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class MacEnergyConsumption(EnergyConsumption):
Energy Consumption of the Mac, working only if it's plugged into plugged-in wall adapter, in watts.
"""

shell_command: str = """ioreg -rw0 -a -c AppleSmartBattery | plutil -extract '0.BatteryData.SystemPower' raw -"""
shell_command: str = """ioreg -rw0 -a -c AppleSmartBattery | plutil -extract '0.BatteryData.AdapterPower' raw -"""

async def get_energy_usage(self) -> EnergyUsage:
"""
Expand Down

0 comments on commit 7192449

Please sign in to comment.