Skip to content

Commit 45520b6

Browse files
committed
"Update ruff pre-commit hook
"
1 parent 8c7acd4 commit 45520b6

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ repos:
1010
- id: end-of-file-fixer
1111
- id: trailing-whitespace
1212
- repo: https://github.com/astral-sh/ruff-pre-commit
13-
rev: v0.3.4
13+
rev: v0.15.8
1414
hooks:
1515
- id: ruff-format
1616
- id: ruff

examples/displayio_ssd1306_picowbell_tempsensor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101

102102
# Prints Serial Data to REPL console (good for debugging)
103103
print(f"\nTemperature: {temperature} F")
104-
print("Humidity: %0.1f %%" % bme280.relative_humidity)
105-
print("Pressure: %0.1f hPa" % bme280.pressure)
106-
print("Altitude = %0.2f meters" % bme280.altitude)
104+
print(f"Humidity: {bme280.relative_humidity:.1f} %")
105+
print(f"Pressure: {bme280.pressure:.1f} hPa")
106+
print(f"Altitude = {bme280.altitude:.2f} meters")
107107
time.sleep(2)

0 commit comments

Comments
 (0)