diff --git a/run_black_on_git_diff_adds.sh b/run_black_on_git_diff_adds.sh index abfdd86..9325224 100644 --- a/run_black_on_git_diff_adds.sh +++ b/run_black_on_git_diff_adds.sh @@ -9,4 +9,4 @@ github_pr_url=`echo -En ${GITHUB_EVENT_PATH} | jq '.pull_request.url'` github_diff=`curl --request GET --url ${github_pr_url} --header "authorization: Bearer ${GITHUB_TOKEN}" --header "Accept: application/vnd.github.v3.diff"` list_of_edited_files=`echo -En ${github_diff} | grep -E -- "\+\+\+ " | awk '{print $2}' | grep -Po -- "(?<=[ab]/).+(.py$)"` -black ${list_of_edited_files} \ No newline at end of file +black --line_length 130 ${list_of_edited_files} \ No newline at end of file