.flake8 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. [flake8]
  2. ignore =
  3. W605, # invalid escape sequence '\.'
  4. E265, # block comment should start with '# '
  5. E266, # too many leading '#' for block comment
  6. E402, # module level import not at top of file
  7. E722, # do not use bare 'except'
  8. E731, # do not assign a lambda expression, use a def
  9. E741, # ambiguous variable name 'l'
  10. F401, # 'animation.utils.getCpuCount' imported but unused
  11. F403, # 'from gmodeler.model import *' used; unable to detect undefined names
  12. F405, # '_' may be undefined, or defined from star imports: gmodeler.model
  13. F821, # undefined name '_'
  14. F841, # local variable 'dc' is assigned to but never used
  15. E117, # over-indented
  16. E122, # continuation line missing indentation or outdented
  17. E123, # closing bracket does not match indentation of opening bracket's line
  18. E124, # closing bracket does not match visual indentation
  19. E125, # continuation line with same indent as next logical line
  20. E126, # continuation line over-indented for hanging indent
  21. E127, # continuation line over-indented for visual indent
  22. E128, # continuation line under-indented for visual indent
  23. E131, # continuation line unaligned for hanging indent
  24. E202, # whitespace before '}'
  25. E203, # whitespace before ':'
  26. E211, # whitespace before '('
  27. E222, # multiple spaces after operator
  28. E225, # missing whitespace around operator
  29. E226, # missing whitespace around arithmetic operator
  30. E231, # missing whitespace after ','
  31. E241, # multiple spaces after ','
  32. E261, # at least two spaces before inline comment
  33. E271, # multiple spaces after keyword
  34. E272, # multiple spaces before keyword
  35. E301, # expected 1 blank line, found 0
  36. E302, # expected 2 blank lines, found 1
  37. E303, # too many blank lines (3)
  38. E305, # expected 2 blank lines after class or function definition, found 1
  39. E306, # expected 1 blank line before a nested definition, found 0
  40. E501, # line too long (96 > 79 characters)
  41. W291, # trailing whitespace
  42. W293, # blank line contains whitespace
  43. W503, # line break before binary operator
  44. W504, # line break after binary operator
  45. max-line-length = 88
  46. exclude =
  47. .git,
  48. __pycache__,
  49. .env,
  50. .venv,
  51. env,
  52. venv,
  53. ENV,
  54. env.bak,
  55. venv.bak,
  56. ctypes,
  57. pydispatch,
  58. testsuite,