Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions cpp/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -1174,6 +1174,19 @@ def run_task(cls, task: str, args=None):
task_config = cls.TASKS_DESCRIPTION[task]
parser = cls.task_cli(task)
options = parser.parse_args(args=args)

# === Debug: Print Black version (helpful for CI and local debugging) ===
if task == "format":
try:
import black

print("=== Black version used by coding-conventions/format ===")
print(f"black: {black.__version__}")
print(f"Python: {sys.version.split()[0]}")
print(f"Interpreter: {sys.executable}")
except Exception as e:
print(f"Could not determine black version: {e}")

if options.verbose == 0:
level = logging.WARN
elif options.verbose == 1:
Expand Down
Loading