.flake8 2.8 KB

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