.flake8 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. [flake8]
  2. ignore =
  3. E203, # whitespace before ':' (Black)
  4. W503, # line break before binary operator (Black)
  5. per-file-ignores =
  6. # Quick reference for some of the most common errors
  7. # E501 line too long
  8. # E722 do not use bare 'except'
  9. # W605 invalid escape sequence
  10. # F401 imported but unused
  11. # F821 undefined name 'unicode'
  12. # F841 local variable assigned to but never used
  13. lib/init/grass.py: E501, E722, F821, F841, W605
  14. utils/mkrest.py: E501, W605
  15. utils/gitlog2changelog.py: E722, E712, W605
  16. utils/g.html2man/ggroff.py: W605
  17. man/build_check_rest.py: F403, F405
  18. man/build_full_index_rest.py: F403, F405
  19. man/parser_standard_options.py: F403, F405
  20. man/build_class.py: F403, F405
  21. man/build_class_rest.py: F403, F405
  22. man/build_check.py: F403, F405
  23. man/build_full_index.py: F403, F405
  24. man/build_index.py: F403, F405
  25. man/build_index_rest.py: F403, F405
  26. man/build_keywords.py: F403, F405, E722
  27. man/build_topics.py: F403, F405, E722
  28. man/build_html.py: E501
  29. man/build_rest.py: E501
  30. imagery/i.atcorr/create_iwave.py: E501, F632, F821, W293
  31. doc/python/raster_example_ctypes.py: F403, F405
  32. doc/python/vector_example_ctypes.py: F403, F405
  33. doc/python/m.distance.py: F403, F405, E501
  34. doc/gui/wxpython/example/dialogs.py: F401
  35. doc/gui/wxpython/example/g.gui.example.py: E501
  36. locale/grass_po_stats.py: E122, E128, E231, E401, E501, E722, E741
  37. gui/scripts/d.rast3d.py: E501
  38. gui/scripts/d.wms.py: E501
  39. max-line-length = 88
  40. exclude =
  41. .git,
  42. __pycache__,
  43. .env,
  44. .venv,
  45. env,
  46. venv,
  47. ENV,
  48. env.bak,
  49. venv.bak,
  50. # Build directories
  51. bin.*,
  52. dist.*,
  53. OBJ.*,
  54. # Test output directory
  55. testreport,
  56. # Have their own configs for now
  57. python/grass,
  58. gui/wxpython,
  59. scripts/*/*.py,
  60. temporal/*/*.py,
  61. # No tests checked for now
  62. testsuite,
  63. builtins =
  64. _