Commit 60ef09a7 authored by Petr Špaček's avatar Petr Špaček

CI: Accept line breaks before binary operators

Quote from PEP8:
 # No: operators sit far away from their operands
 income = (gross_wages +
           taxable_interest +
           (dividends - qualified_dividends) -
           ira_deduction -
           student_loan_interest)

 # Yes: easy to match operators with operands
 income = (gross_wages
           + taxable_interest
           + (dividends - qualified_dividends)
           - ira_deduction
           - student_loan_interest)
parent bf4206a9
......@@ -2,4 +2,4 @@
set -o nounset -o xtrace -o errexit
source "$(dirname "$(readlink -f "$0")")/common.sh"
git diff "${MERGEBASE}..${HEAD}" | pep8 --diff --show-source --max-line-length=100 && echo "OK, no PEP8 errors detected"
git diff "${MERGEBASE}..${HEAD}" | pep8 --ignore=W503 --diff --show-source --max-line-length=100 && echo "OK, no PEP8 errors detected"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment