pyproject.toml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. [build-system]
  2. requires = [
  3. "setuptools>=57",
  4. "wheel>=0.36.0",
  5. "build>=0.5.1",
  6. ]
  7. build-backend = "setuptools.build_meta"
  8. [tool.pylint.format]
  9. indent-string = "\t"
  10. indent-after-paren = 2
  11. max-line-length = 116
  12. [tool.pylint.main]
  13. recursive = true
  14. jobs = 0
  15. ignore = [
  16. "data",
  17. "wordlist",
  18. "pyethereum",
  19. "rlp",
  20. "main_split.py",
  21. "ut_tx.py",
  22. ]
  23. ignored-modules = [ # ignored for no-member, otherwise checked
  24. "mmgen.proto.secp256k1.secp256k1",
  25. "mmgen.term",
  26. "msvcrt",
  27. "gmpy2",
  28. ]
  29. [tool.pylint."messages control"]
  30. disable = [
  31. "raw-checker-failed",
  32. "bad-inline-option",
  33. "locally-disabled",
  34. "file-ignored",
  35. "suppressed-message",
  36. "useless-suppression",
  37. "deprecated-pragma",
  38. "use-symbolic-message-instead",
  39. "use-implicit-booleaness-not-comparison-to-string",
  40. "use-implicit-booleaness-not-comparison-to-zero",
  41. "not-async-context-manager",
  42. # non-default:
  43. "no-method-argument",
  44. "function-redefined",
  45. "method-hidden",
  46. ]
  47. [tool.pylint.miscellaneous]
  48. notes = ["FIXME", "TODO", "DEBUG", "WIP"]
  49. [tool.pylint.typecheck]
  50. mixin-class-rgx = """.*[Mm]ixin|\
  51. ^(Hilite|InitErrors|DummyWIF|\
  52. cfg_file|cfg_file_sample|\
  53. MoneroMMGenFile|keygen_base|xmr_signable|\
  54. CmdTestShared)$"""
  55. ignored-classes = [ # ignored for no-member, otherwise checked
  56. "optparse.Values",
  57. "thread._local",
  58. "_thread._local",
  59. "argparse.Namespace",
  60. # mmgen:
  61. "baseconv",
  62. "mmgen.autosign.Signable.base",
  63. "mmgen.autosign.Autosign", # tx_dir, etc. created dynamically
  64. "Sha2",
  65. "mmgen.xmrwallet.file.MoneroMMGenTX.Base",
  66. "mmgen.xmrwallet.file.MoneroWalletOutputsFile.Base",
  67. "mmgen.xmrwallet.ops.sweep.OpSweep",
  68. "mmgen.xmrwallet.ops.wallet.OpWallet",
  69. "mmgen.xmrwallet.ops.label.OpLabel",
  70. "mmgen.xmrwallet.ops.new.OpNew",
  71. "mmgen.xmrwallet.ops.txview.OpTxview",
  72. "mmgen.xmrwallet.file.outputs.MoneroWalletOutputsFile.Base",
  73. "mmgen.xmrwallet.file.tx.MoneroMMGenTX.Base",
  74. "mmgen.proto.eth.tx.Completed",
  75. "TxInfo",
  76. "TwRPC",
  77. "MnemonicEntry",
  78. "MMGenObjectDevTools",
  79. "MnEntryMode",
  80. "deserialized_tx",
  81. # test suite:
  82. "TestHashFunc",
  83. "GenTool",
  84. "VirtBlockDeviceBase",
  85. "SwapMgrBase",
  86. "Opts",
  87. "Help",
  88. ]