.flake8 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. [flake8]
  2. ignore =
  3. E121, # continuation line under-indented for hanging indent
  4. E125, # continuation line with same indent as next logical line
  5. E127, # continuation line over-indented for visual indent
  6. E128, # continuation line under-indented for visual indent
  7. E202, # whitespace before ')'
  8. E211, # whitespace before '('
  9. E221, # multiple spaces before operator
  10. E226, # missing whitespace around arithmetic operator
  11. E231, # missing whitespace after ':'
  12. E251, # unexpected spaces around keyword / parameter equals
  13. E261, # at least two spaces before inline comment
  14. E265, # block comment should start with '# '
  15. E266, # too many leading '#' for block comment
  16. E271, # multiple spaces after keyword
  17. E272, # multiple spaces before keyword
  18. E302, # expected 2 blank lines, found 1
  19. E303, # too many blank lines (3)
  20. E305, # expected 2 blank lines after class or function definition, found 1
  21. E501, # line too long (183 > 150 characters)
  22. E722, # do not use bare 'except'
  23. E741, # ambiguous variable name 'l'
  24. F403, # 'from ctypes import *' used; unable to detect undefined names
  25. F405, # 'RasterRow' may be undefined, or defined from star imports: ctypes, grass.pygrass.raster, grass.pygrass.vector
  26. F841, # local variable 't0' is assigned to but never used
  27. W293, # blank line contains whitespace
  28. W503, # line break before binary operator
  29. W504, # line break after binary operator
  30. W605, # invalid escape sequence '\_'
  31. per-file-ignores =
  32. # C wrappers call libgis.G_gisinit before importing other modules.
  33. # TODO: Is this really needed?
  34. pygrass/vector/__init__.py: E402,
  35. pygrass/raster/__init__.py: E402,
  36. pygrass/utils.py: E402,
  37. # Current benchmarks/tests are changing sys.path before import.
  38. # Possibly, a different approach should be taken there anyway.
  39. pygrass/tests/benchmark.py: E402, F401, F821
  40. # Configuration file for Sphinx:
  41. # Ignoring import/code mix and line length.
  42. docs/conf.py: E402, E501,
  43. # Unused imports
  44. */__init__.py: F401,
  45. */*/__init__.py: F401,
  46. */*/*/__init__.py: F401
  47. max-line-length = 88
  48. exclude =
  49. .git,
  50. __pycache__,
  51. .env,
  52. .venv,
  53. env,
  54. venv,
  55. ENV,
  56. env.bak,
  57. venv.bak,
  58. ctypes,
  59. pydispatch,
  60. testsuite,
  61. builtins =
  62. _