.flake8 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. F401, # '.reader.BandReferenceReader' imported but unused
  25. F403, # 'from ctypes import *' used; unable to detect undefined names
  26. F405, # 'RasterRow' may be undefined, or defined from star imports: ctypes, grass.pygrass.raster, grass.pygrass.vector
  27. F821, # undefined name '_'
  28. F841, # local variable 't0' is assigned to but never used
  29. W293, # blank line contains whitespace
  30. W503, # line break before binary operator
  31. W504, # line break after binary operator
  32. W605, # invalid escape sequence '\_'
  33. per-file-ignores =
  34. # C wrappers call libgis.G_gisinit before importing other modules.
  35. # TODO: Is this really needed?
  36. pygrass/vector/__init__.py: E402,
  37. pygrass/raster/__init__.py: E402,
  38. pygrass/utils.py: E402,
  39. # Current benchmarks/tests are changing sys.path before import.
  40. # Possibly, a different approach should be taken there anyway.
  41. pygrass/tests/benchmark.py: E402,
  42. # Configuration file for Sphinx:
  43. # Ignoring import/code mix and line length.
  44. docs/conf.py: E402, E501
  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,