.flake8 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. [flake8]
  2. max-line-length = 140
  3. max-complexity = 10
  4. exclude =
  5. # Other languages
  6. *.js,
  7. css,
  8. js,
  9. # Bytecode
  10. *.pyc,
  11. # Configuration files
  12. .git,
  13. ignore =
  14. # *Line-break occurred before binary operator*
  15. # https://lintlyci.github.io/Flake8Rules/rules/W503.html
  16. # Because it is the opposite of PEP8 and will be reversed in the future
  17. # e.g.:
  18. # is_amount_equal_to_immediately_after_amount = (
  19. # not is_amount_equal_to_prior_amount
  20. # and history
  21. # and insertion_idx < len(history)
  22. # )
  23. W503,
  24. # *Remove bad quotes from multiple lines string*
  25. # https://github.com/zheller/flake8-quotes/blob/4dbc2e/flake8_quotes/__init__.py#L220
  26. # SQL Queries are better written with 'bad quotes'(sic)
  27. # e.g.:
  28. # stmt = """
  29. # UPDATE ShopSignups
  30. # SET first_device_shipment_date = %s
  31. # WHERE shop_id = %s AND first_device_shipment_date IS NULL
  32. # """
  33. Q001,
  34. # leading spaces
  35. W293,
  36. # allow >1 blank line
  37. E303,