from __future__ import (
    absolute_import, division, print_function, unicode_literals)

from operator import itemgetter

mapping = {
    'has_header': True,
    'account': 'Stripe',
    'id': itemgetter('id'),
    'date': itemgetter('created'),
    'amount': itemgetter('amount'),
    'currency': itemgetter('currency'),
    'payee': lambda tr: tr.get('customer_description') if len(tr.get('customer_description')) > 0 else tr.get('card_name', ""),
    'desc': itemgetter("description")
}

from __future__ import (
    absolute_import, division, print_function, unicode_literals)

from operator import itemgetter

mapping = {
    'has_header': True,
    'account': 'Stripe',
    'id': itemgetter('id'),
    'date': itemgetter('created'),
    'amount': itemgetter('amount'),
    'currency': itemgetter('currency'),
    'payee': lambda tr: tr.get('customer_description')
        if len(tr.get('customer_description')) > 0
        else tr.get('card_name', ""),
    'desc': itemgetter("description")
}

Fix lint line length warnings (blocking manage checks)
Fix lint line length warnings (blocking manage checks)

  from __future__ import (
      absolute_import, division, print_function, unicode_literals)
  
  from operator import itemgetter
  
  mapping = {
      'has_header': True,
      'account': 'Stripe',
      'id': itemgetter('id'),
      'date': itemgetter('created'),
      'amount': itemgetter('amount'),
      'currency': itemgetter('currency'),
-     'payee': lambda tr: tr.get('customer_description') if len(tr.get('customer_description')) > 0 else tr.get('card_name', ""),
+     'payee': lambda tr: tr.get('customer_description')
+         if len(tr.get('customer_description')) > 0
+         else tr.get('card_name', ""),
      'desc': itemgetter("description")
  }
  
Fix lint line length warnings (blocking manage checks)
## Code Before:
from __future__ import (
    absolute_import, division, print_function, unicode_literals)

from operator import itemgetter

mapping = {
    'has_header': True,
    'account': 'Stripe',
    'id': itemgetter('id'),
    'date': itemgetter('created'),
    'amount': itemgetter('amount'),
    'currency': itemgetter('currency'),
    'payee': lambda tr: tr.get('customer_description') if len(tr.get('customer_description')) > 0 else tr.get('card_name', ""),
    'desc': itemgetter("description")
}

## Instruction:
Fix lint line length warnings (blocking manage checks)
## Code After:
from __future__ import (
    absolute_import, division, print_function, unicode_literals)

from operator import itemgetter

mapping = {
    'has_header': True,
    'account': 'Stripe',
    'id': itemgetter('id'),
    'date': itemgetter('created'),
    'amount': itemgetter('amount'),
    'currency': itemgetter('currency'),
    'payee': lambda tr: tr.get('customer_description')
        if len(tr.get('customer_description')) > 0
        else tr.get('card_name', ""),
    'desc': itemgetter("description")
}
