|
@@ -1,55 +1,17 @@
|
|
[flake8]
|
|
[flake8]
|
|
ignore =
|
|
ignore =
|
|
- E265,
|
|
|
|
- F821,
|
|
|
|
- E501,
|
|
|
|
- W503,
|
|
|
|
- E117,
|
|
|
|
- E121,
|
|
|
|
- E122,
|
|
|
|
- E123,
|
|
|
|
- E124,
|
|
|
|
- E125,
|
|
|
|
- E126,
|
|
|
|
- E127,
|
|
|
|
- E128,
|
|
|
|
- E129,
|
|
|
|
- E201,
|
|
|
|
- E202,
|
|
|
|
- E203,
|
|
|
|
- E211,
|
|
|
|
- E221,
|
|
|
|
- E222,
|
|
|
|
- E225,
|
|
|
|
- E226,
|
|
|
|
- E228,
|
|
|
|
- E231,
|
|
|
|
- E241,
|
|
|
|
- E251,
|
|
|
|
- E261, # at least two spaces before inline comment
|
|
|
|
- E262, # inline comment should start with '# '
|
|
|
|
- E266, # too many leading '#' for block comment
|
|
|
|
- E271,
|
|
|
|
- E272,
|
|
|
|
- E301,
|
|
|
|
- E302,
|
|
|
|
- E303,
|
|
|
|
- E305,
|
|
|
|
- E402, # module level import not at top of file
|
|
|
|
- E722, # do not use bare 'except'
|
|
|
|
- E741, # ambiguous variable name 'l'
|
|
|
|
- W291,
|
|
|
|
- W292,
|
|
|
|
- W293,
|
|
|
|
- W391,
|
|
|
|
- W504,
|
|
|
|
E101, # indentation contains mixed spaces and tabs
|
|
E101, # indentation contains mixed spaces and tabs
|
|
|
|
+ W191, # indentation contains tabs
|
|
E111, # indentation is not a multiple of four
|
|
E111, # indentation is not a multiple of four
|
|
E114, # indentation is not a multiple of four (comment)
|
|
E114, # indentation is not a multiple of four (comment)
|
|
E116, # unexpected indentation (comment)
|
|
E116, # unexpected indentation (comment)
|
|
E242, # tab after ','
|
|
E242, # tab after ','
|
|
- W191, # indentation contains tabs
|
|
|
|
- E401, # multiple imports on one line
|
|
|
|
|
|
+ E251, # unexpected spaces around keyword / parameter equals
|
|
|
|
+ E262, # inline comment should start with '# '
|
|
|
|
+ E265, # block comment should start with '# '
|
|
|
|
+ E266, # too many leading '#' for block comment
|
|
|
|
+ E402, # module level import not at top of file
|
|
|
|
+ E501, # line too long (183 > 150 characters)
|
|
E502, # the backslash is redundant between brackets
|
|
E502, # the backslash is redundant between brackets
|
|
E701, # multiple statements on one line (colon)
|
|
E701, # multiple statements on one line (colon)
|
|
E702, # multiple statements on one line (semicolon)
|
|
E702, # multiple statements on one line (semicolon)
|
|
@@ -58,16 +20,54 @@ ignore =
|
|
E712, # comparison to True should be 'if cond is True:' or 'if cond:'
|
|
E712, # comparison to True should be 'if cond is True:' or 'if cond:'
|
|
E713, # test for membership should be 'not in'
|
|
E713, # test for membership should be 'not in'
|
|
E721, # do not compare types, use 'isinstance()'
|
|
E721, # do not compare types, use 'isinstance()'
|
|
|
|
+ E722, # do not use bare 'except'
|
|
E731, # do not assign a lambda expression, use a def
|
|
E731, # do not assign a lambda expression, use a def
|
|
|
|
+ E741, # ambiguous variable name 'l'
|
|
F401, # '.reader.BandReferenceReader' imported but unused
|
|
F401, # '.reader.BandReferenceReader' imported but unused
|
|
F403, # 'from ctypes import *' used; unable to detect undefined names
|
|
F403, # 'from ctypes import *' used; unable to detect undefined names
|
|
F405, # 'RasterRow' may be undefined, or defined from star imports: ctypes, grass.pygrass.raster, grass.pygrass.vector
|
|
F405, # 'RasterRow' may be undefined, or defined from star imports: ctypes, grass.pygrass.raster, grass.pygrass.vector
|
|
F811, # redefinition of unused 'utils' from line 26
|
|
F811, # redefinition of unused 'utils' from line 26
|
|
|
|
+ F821, # undefined name '_'
|
|
F841, # local variable 't0' is assigned to but never used
|
|
F841, # local variable 't0' is assigned to but never used
|
|
F901, # 'raise NotImplemented' should be 'raise NotImplementedError'
|
|
F901, # 'raise NotImplemented' should be 'raise NotImplementedError'
|
|
W605, # invalid escape sequence '\_'
|
|
W605, # invalid escape sequence '\_'
|
|
|
|
+ W291, # trailing whitespace
|
|
|
|
+ W292, # no newline at end of file
|
|
|
|
+ W293, # blank line contains whitespace
|
|
|
|
+ W391, # blank line at end of file
|
|
|
|
+ W503, # line break before binary operator
|
|
|
|
+ W504, # line break after binary operator
|
|
|
|
+ E117, # over-indented
|
|
|
|
+ E121, # continuation line under-indented for hanging indent
|
|
|
|
+ E122, # continuation line missing indentation or outdented
|
|
|
|
+ E123, # closing bracket does not match indentation of opening bracket's line
|
|
|
|
+ E124, # closing bracket does not match visual indentation
|
|
|
|
+ E125, # continuation line with same indent as next logical line
|
|
|
|
+ E126, # continuation line over-indented for hanging indent
|
|
|
|
+ E127, # continuation line over-indented for visual indent
|
|
|
|
+ E128, # continuation line under-indented for visual indent
|
|
|
|
+ E129, # visually indented line with same indent as next logical line
|
|
|
|
+ E201, # whitespace after '{'
|
|
|
|
+ E202, # whitespace before ')'
|
|
|
|
+ E203, # whitespace before ':'
|
|
|
|
+ E211, # whitespace before '('
|
|
|
|
+ E221, # multiple spaces before operator
|
|
|
|
+ E222, # multiple spaces after operator
|
|
|
|
+ E225, # missing whitespace around operator
|
|
|
|
+ E226, # missing whitespace around arithmetic operator
|
|
|
|
+ E228, # missing whitespace around modulo operator
|
|
|
|
+ E231, # missing whitespace after ':'
|
|
|
|
+ E241, # multiple spaces after ','
|
|
|
|
+ E261, # at least two spaces before inline comment
|
|
|
|
+ E271, # multiple spaces after keyword
|
|
|
|
+ E272, # multiple spaces before keyword
|
|
|
|
+ E301, # expected 1 blank line, found 0
|
|
|
|
+ E302, # expected 2 blank lines, found 1
|
|
|
|
+ E303, # too many blank lines (3)
|
|
|
|
+ E305, # expected 2 blank lines after class or function definition, found 1
|
|
|
|
+ E401, # multiple imports on one line
|
|
|
|
|
|
-max-line-length = 150
|
|
|
|
|
|
+max-line-length = 88
|
|
exclude =
|
|
exclude =
|
|
.git,
|
|
.git,
|
|
__pycache__,
|
|
__pycache__,
|