#!/bin/bash file_path=$(jq -r '.tool_input.file_path') if [[ "$file_path" =~ \.py$ ]]; then black -q "$file_path" fi