• Petr Špaček's avatar
    CI: Accept line breaks before binary operators · 60ef09a7
    Petr Špaček authored
    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)
    60ef09a7
compare-pep8.sh 236 Bytes