Skip to content

refactor: convert .format() to f-strings#1316

Merged
openminddev merged 2 commits intoOpenMind:mainfrom
0xbyt4:refactor/format-to-fstring
Jan 12, 2026
Merged

refactor: convert .format() to f-strings#1316
openminddev merged 2 commits intoOpenMind:mainfrom
0xbyt4:refactor/format-to-fstring

Conversation

@0xbyt4
Copy link
Copy Markdown
Contributor

@0xbyt4 0xbyt4 commented Jan 11, 2026

Summary

Convert old-style .format() string formatting to modern f-strings for improved readability and performance.

Changes

File Change
rplidar_driver.py 2 ValueError messages
zenoh_publisher_provider.py 1 logging.info call
move_turtle/connector/zenoh.py 2 logging.debug calls
dimo_tesla.py 1 multiline return string

Note

llm_history_manager.py intentionally left unchanged - it uses .format() with dynamic templates from ACTION_MAP, which is a valid pattern for runtime string templating.

Test Plan

  • Pre-commit hooks pass (ruff, black, isort)
  • No functional changes, string formatting only

Convert old-style .format() calls to modern f-strings in:
- rplidar_driver.py (2 occurrences)
- zenoh_publisher_provider.py (1 occurrence)
- move_turtle/connector/zenoh.py (2 occurrences)
- dimo_tesla.py (1 occurrence)
@0xbyt4 0xbyt4 requested review from a team as code owners January 11, 2026 23:47
@github-actions github-actions Bot added robotics Robotics code changes python Python code labels Jan 11, 2026
@openminddev openminddev enabled auto-merge (squash) January 12, 2026 02:55
@openminddev openminddev merged commit 90e7d2a into OpenMind:main Jan 12, 2026
5 checks passed
aydnOktay pushed a commit to aydnOktay/OM1 that referenced this pull request Jan 19, 2026
)

Convert old-style .format() calls to modern f-strings in:
- rplidar_driver.py (2 occurrences)
- zenoh_publisher_provider.py (1 occurrence)
- move_turtle/connector/zenoh.py (2 occurrences)
- dimo_tesla.py (1 occurrence)

Co-authored-by: openminddev <147775420+openminddev@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

python Python code robotics Robotics code changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants