We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c7acd4 commit 45520b6Copy full SHA for 45520b6
2 files changed
.pre-commit-config.yaml
@@ -10,7 +10,7 @@ repos:
10
- id: end-of-file-fixer
11
- id: trailing-whitespace
12
- repo: https://github.com/astral-sh/ruff-pre-commit
13
- rev: v0.3.4
+ rev: v0.15.8
14
hooks:
15
- id: ruff-format
16
- id: ruff
examples/displayio_ssd1306_picowbell_tempsensor.py
@@ -101,7 +101,7 @@
101
102
# Prints Serial Data to REPL console (good for debugging)
103
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)
+ print(f"Humidity: {bme280.relative_humidity:.1f} %")
+ print(f"Pressure: {bme280.pressure:.1f} hPa")
+ print(f"Altitude = {bme280.altitude:.2f} meters")
107
time.sleep(2)
0 commit comments