.flake8 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. [flake8]
  2. ignore =
  3. E203, # whitespace before ':' (Black)
  4. W503, # line break before binary operator (Black)
  5. E501, # line too long (fix needed)
  6. E265, # block comment should start with '# ' (fix needed)
  7. per-file-ignores =
  8. # Many of these ignores can and should be removed and the problem fixed.
  9. # F841 local variable is assigned to but never used
  10. # F403 star import used; unable to detect undefined names
  11. # F405 variable may be undefined, or defined from star imports
  12. # E402 module level import not at top of file
  13. core/gcmd.py: E402
  14. core/gthread.py: F841
  15. core/gconsole.py: E722, W605
  16. core/toolboxes.py: E722
  17. core/utils.py: E722, F841, W605
  18. core/workspace.py: E722
  19. core/render.py: E722, F841
  20. core/ws.py: F841
  21. core/settings.py: E722
  22. datacatalog/tree.py: E731, E402
  23. dbmgr/*: F841, E722
  24. docs/wxgui_sphinx/conf.py: E402
  25. gcp/*: F841, E722
  26. gmodeler/*: F841, E722, W605, F405, F403, E402
  27. gui_core/*: F841, E266, E722, W605
  28. image2target/*: F841, E722
  29. iscatt/*: F841, E722, E741, F405, F403
  30. lmgr/*: F841, E266, E722, E741, W605
  31. # layertree still includes some formatting issues (it is ignored by Black)
  32. lmgr/layertree.py: E722, E266, W504, E225
  33. modules/*: F841, E722, W605
  34. nviz/*: F841, E266, E722, W605, F403, F405
  35. photo2image/*: F841, E722
  36. psmap/*: F841, E266, E722, F405, F403
  37. vdigit/*: F841, E722, E741, F405, F403
  38. vnet/*: F841
  39. wxgui.py: F841
  40. animation/mapwindow.py: F841
  41. animation/provider.py: F841
  42. tplot/frame.py: F841, E722
  43. rdigit/g.gui.rdigit.py: F841
  44. iclass/dialogs.py: E741
  45. iclass/digit.py: F405, F403
  46. iclass/frame.py: F405, F403
  47. iclass/statistics.py: F841, F405, F403
  48. wxplot/histogram.py: E722
  49. wxplot/profile.py: F841, E722
  50. wxplot/base.py: F841, E722
  51. location_wizard/dialogs.py: F841
  52. location_wizard/wizard.py: E722
  53. mapdisp/main.py: E722
  54. mapdisp/statusbar.py: F841
  55. mapwin/base.py: E722
  56. mapwin/buffered.py: E722
  57. mapwin/graphics.py: E722
  58. startup/locdownload.py: E722, E402
  59. tools/build_modules_xml.py: E722
  60. web_services/widgets.py: F841, E741, W605, E402
  61. rlisetup/frame.py: E741
  62. rlisetup/sampling_frame.py: F841
  63. rlisetup/wizard.py: E722, E741
  64. # This file will be deleted.
  65. gis_set.py: E722
  66. max-line-length = 88
  67. exclude =
  68. .git,
  69. __pycache__,
  70. .env,
  71. .venv,
  72. env,
  73. venv,
  74. ENV,
  75. env.bak,
  76. venv.bak,
  77. ctypes,
  78. pydispatch,
  79. testsuite,
  80. builtins =
  81. _