Skip to content

fix: resolve pre-commit whitespace and end-of-file issues

9acb168
Select commit
Loading
Failed to load commit list.
Merged

Add File Watcher for External Command Control #91

fix: resolve pre-commit whitespace and end-of-file issues
9acb168
Select commit
Loading
Failed to load commit list.
Cursor / Cursor BugBot completed Jul 5, 2025 in 2m 10s

BugBot Review

BugBot completed review and found 2 potential issues

Request ID: serverGenReqId_24e95918-1f90-43a5-94fe-5b2dd9203f48

Details

Bug: Incorrect Attribute Access Causes Errors

In the _show_monitoring_status method, the code accesses target.location_name when listing recent targets. This will cause an AttributeError because the MonitoringTarget model's attribute is display_name. Additionally, target.location_id can be null for geographic targets and should be handled to avoid displaying "None".

src/local_dev/console_discord.py#L279-L282

for target in recent_targets:
logger.info(
f" - {target.location_name} (ID: {target.location_id})"
)

Fix in Cursor β€’ Fix in Web


Bug: Syntax Check Command Fails with Glob Patterns

The Python syntax check command python -m py_compile src/**/*.py is incorrect. The py_compile module expects individual file paths, not glob patterns, and the ** recursive glob may not be supported by all shells, leading to the check failing.

scripts/run_all_checks.sh#L69-L72

# 1. Python syntax check
run_check "Python Syntax Check" \
"python -m py_compile src/**/*.py" \
""

Fix in Cursor β€’ Fix in Web


Was this report helpful? Give feedback by reacting with πŸ‘ or πŸ‘Ž