better log messages

This commit is contained in:
mohammed 2025-06-03 12:02:53 +03:00
parent 5cd13ad1ca
commit 152222726c

View file

@ -39,10 +39,10 @@ def should_format_file(filepath, max_lines_changed=50):
return True
except subprocess.CalledProcessError:
logger.warning(f"black command failed for {filepath}")
logger.warning(f"black --diff command failed for {filepath}")
return False
except FileNotFoundError:
logger.warning("black is not installed. Skipping formatting check.")
logger.warning("black formatter is not installed. Skipping formatting diff check.")
return False