Skip to content

Commit

Permalink
130 char lines
Browse files Browse the repository at this point in the history
  • Loading branch information
Raymond Gasper committed May 26, 2020
1 parent 1718686 commit e8836e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run_black_on_git_diff_adds.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}
black --line_length 130 ${list_of_edited_files}

0 comments on commit e8836e9

Please sign in to comment.