flake8.conf 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. [flake8]
  2. select =
  3. E, W, # pep8 errors and warnings
  4. F, # pyflakes
  5. C9, # McCabe
  6. N8, # Naming Conventions
  7. #B, S, # bandit
  8. #C, # commas
  9. #D, # docstrings
  10. #P, # string-format
  11. #Q, # quotes
  12. ignore =
  13. E122, # continuation line missing indentation or outdented
  14. E123, # closing bracket does not match indentation of opening bracket's line
  15. E127, # continuation line over-indented for visual indent
  16. E131, # continuation line unaligned for hanging
  17. E203, # whitespace before ':'
  18. E225, # missing whitespace around operator
  19. E226, # missing whitespace around arithmetic operator
  20. E24, # multiple spaces after ',' or tab after ','
  21. E275, # missing whitespace after keyword
  22. E305, # expected 2 blank lines after end of function or class
  23. E306, # expected 1 blank line before a nested definition
  24. E402, # module level import not at top of file
  25. E722, # do not use bare except, specify exception instead
  26. E731, # do not assign a lambda expression, use a def
  27. E741, # do not use variables named 'l', 'O', or 'I'
  28. F722, # syntax error in forward annotation
  29. W503, # line break before binary operator
  30. W504, # line break after binary operator
  31. max-line-length = 200