.flake8 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. [flake8]
  2. ignore =
  3. E101, # indentation contains mixed spaces and tabs
  4. W191, # indentation contains tabs
  5. E111, # indentation is not a multiple of four
  6. E114, # indentation is not a multiple of four (comment)
  7. E116, # unexpected indentation (comment)
  8. E242, # tab after ','
  9. E251, # unexpected spaces around keyword / parameter equals
  10. E262, # inline comment should start with '# '
  11. E265, # block comment should start with '# '
  12. E266, # too many leading '#' for block comment
  13. E402, # module level import not at top of file
  14. E501, # line too long (183 > 150 characters)
  15. E502, # the backslash is redundant between brackets
  16. E701, # multiple statements on one line (colon)
  17. E702, # multiple statements on one line (semicolon)
  18. E703, # statement ends with a semicolon
  19. E711, # comparison to None should be 'if cond is None:'
  20. E712, # comparison to True should be 'if cond is True:' or 'if cond:'
  21. E713, # test for membership should be 'not in'
  22. E721, # do not compare types, use 'isinstance()'
  23. E722, # do not use bare 'except'
  24. E731, # do not assign a lambda expression, use a def
  25. E741, # ambiguous variable name 'l'
  26. F401, # '.reader.BandReferenceReader' imported but unused
  27. F403, # 'from ctypes import *' used; unable to detect undefined names
  28. F405, # 'RasterRow' may be undefined, or defined from star imports: ctypes, grass.pygrass.raster, grass.pygrass.vector
  29. F811, # redefinition of unused 'utils' from line 26
  30. F821, # undefined name '_'
  31. F841, # local variable 't0' is assigned to but never used
  32. F901, # 'raise NotImplemented' should be 'raise NotImplementedError'
  33. W605, # invalid escape sequence '\_'
  34. W291, # trailing whitespace
  35. W292, # no newline at end of file
  36. W293, # blank line contains whitespace
  37. W391, # blank line at end of file
  38. W503, # line break before binary operator
  39. W504, # line break after binary operator
  40. E117, # over-indented
  41. E121, # continuation line under-indented for hanging indent
  42. E122, # continuation line missing indentation or outdented
  43. E123, # closing bracket does not match indentation of opening bracket's line
  44. E124, # closing bracket does not match visual indentation
  45. E125, # continuation line with same indent as next logical line
  46. E126, # continuation line over-indented for hanging indent
  47. E127, # continuation line over-indented for visual indent
  48. E128, # continuation line under-indented for visual indent
  49. E129, # visually indented line with same indent as next logical line
  50. E201, # whitespace after '{'
  51. E202, # whitespace before ')'
  52. E203, # whitespace before ':'
  53. E211, # whitespace before '('
  54. E221, # multiple spaces before operator
  55. E222, # multiple spaces after operator
  56. E225, # missing whitespace around operator
  57. E226, # missing whitespace around arithmetic operator
  58. E228, # missing whitespace around modulo operator
  59. E231, # missing whitespace after ':'
  60. E241, # multiple spaces after ','
  61. E261, # at least two spaces before inline comment
  62. E271, # multiple spaces after keyword
  63. E272, # multiple spaces before keyword
  64. E301, # expected 1 blank line, found 0
  65. E302, # expected 2 blank lines, found 1
  66. E303, # too many blank lines (3)
  67. E305, # expected 2 blank lines after class or function definition, found 1
  68. E401, # multiple imports on one line
  69. max-line-length = 88
  70. exclude =
  71. .git,
  72. __pycache__,
  73. .env,
  74. .venv,
  75. env,
  76. venv,
  77. ENV,
  78. env.bak,
  79. venv.bak,
  80. ctypes,
  81. pydispatch,
  82. testsuite,