pyproject.toml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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 = 110
  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. # non-default:
  42. "no-method-argument",
  43. "function-redefined",
  44. "method-hidden",
  45. ]
  46. [tool.pylint.miscellaneous]
  47. notes = ["FIXME", "TODO", "DEBUG", "WIP"]
  48. [tool.pylint.typecheck]
  49. mixin-class-rgx = """.*[Mm]ixin|\
  50. ^(Hilite|InitErrors|DummyWIF|\
  51. cfg_file|cfg_file_sample|\
  52. MoneroMMGenFile|keygen_base|xmr_signable|\
  53. CmdTestShared)$"""
  54. ignored-classes = [ # ignored for no-member, otherwise checked
  55. "optparse.Values",
  56. "thread._local",
  57. "_thread._local",
  58. "argparse.Namespace",
  59. # mmgen:
  60. "baseconv",
  61. "mmgen.autosign.Signable.base",
  62. "mmgen.autosign.Autosign", # tx_dir, etc. created dynamically
  63. "Sha2",
  64. "mmgen.xmrwallet.MoneroMMGenTX.Base",
  65. "mmgen.xmrwallet.MoneroWalletOutputsFile.Base",
  66. "mmgen.proto.eth.tx.Completed",
  67. "TxInfo",
  68. "TwRPC",
  69. "MnemonicEntry",
  70. "MMGenObjectDevTools",
  71. "MnEntryMode",
  72. "deserialized_tx",
  73. # test suite:
  74. "TestHashFunc",
  75. "GenTool",
  76. ]