pyproject.toml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. [build-system]
  2. requires = [
  3. "setuptools>=42",
  4. "wheel"
  5. ]
  6. build-backend = "setuptools.build_meta"
  7. [tool.ruff]
  8. line-length = 106
  9. indent-width = 4
  10. [tool.ruff.format]
  11. quote-style = "single"
  12. indent-style = "tab"
  13. [tool.ruff.lint]
  14. ignore = [
  15. "E401", # multiple imports per line
  16. "E701", # multiple statements per line
  17. "E721", # use isinstance()
  18. "E731", # lambda instead of def
  19. "E402", # module import not top of file
  20. "E722", # bare except
  21. "E713", # membership 'not in'
  22. "E741", # ambiguous variable name
  23. ]
  24. [tool.ruff.lint.per-file-ignores]
  25. "test/include/common.py" = [ "F821" ] # undefined name 'cfg'
  26. "test/misc/input_func.py" = [ "F401" ] # imported but unused
  27. "test/modtest_d/cashaddr.py" = [ "F841" ] # assigned to but never used
  28. "test/modtest_d/dep.py" = [ "F401" ] # imported but unused
  29. "test/modtest_d/testdep.py" = [ "F401" ] # imported but unused
  30. "test/modtest_d/obj.py" = [ "F841" ] # assigned to but never used
  31. "test/objtest_d/*" = [ "F401" ] # imported but unused
  32. "test/objattrtest_d/*" = [ "F401" ] # imported but unused
  33. "test/overlay/fakemods/*" = [ "F403", "F405" ] # `import *` used
  34. "test/*.py" = [ "F401" ] # imported but unused
  35. "test/colortest.py" = [ "F403", "F405" ] # `import *` used
  36. "test/tooltest2.py" = [ "F403", "F405" ] # `import *` used
  37. "test/overlay/tree/*" = [ "ALL" ]
  38. [tool.pylint.format]
  39. indent-string = "\t"
  40. indent-after-paren = 2
  41. max-line-length = 110
  42. [tool.pylint.main]
  43. py-version = "3.7"
  44. recursive = true
  45. jobs = 0
  46. [tool.pylint."messages control"]
  47. ignored-modules = [
  48. "mmgen.term",
  49. "mmgen.color",
  50. ]
  51. ignored-classes = [
  52. "mmgen_node_tools.Ticker.Ticker.base",
  53. "mmgen_node_tools.Ticker.DataSource.base",
  54. "mmgen_node_tools.PeerBlocks.Display",
  55. "mmgen_node_tools.PollDisplay.PollDisplay",
  56. ]