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 = 110
  12. [tool.pylint.main]
  13. py-version = "3.7"
  14. recursive = true
  15. jobs = 0
  16. ignore = [
  17. "data",
  18. "wordlist",
  19. "pyethereum",
  20. "rlp",
  21. "main_split.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. # Disable these too for mostly quiet output without --errors-only:
  47. # "missing-function-docstring",
  48. # "missing-class-docstring",
  49. # "import-outside-toplevel",
  50. # "multiple-imports",
  51. # "wrong-import-position",
  52. # "protected-access",
  53. # "invalid-name",
  54. # "too-few-public-methods",
  55. # "super-init-not-called",
  56. # "unnecessary-lambda-assignment",
  57. # "attribute-defined-outside-init",
  58. # "fixme",
  59. [tool.pylint.miscellaneous]
  60. notes = ["FIXME", "TODO", "DEBUG", "WIP"]
  61. [tool.pylint.typecheck]
  62. mixin-class-rgx = """.*[Mm]ixin|\
  63. ^(Hilite|InitErrors|DummyWIF|\
  64. cfg_file|cfg_file_sample|\
  65. MoneroMMGenFile|keygen_base|xmr_signable|\
  66. CmdTestShared)$"""
  67. ignored-classes = [ # ignored for no-member, otherwise checked
  68. "optparse.Values",
  69. "thread._local",
  70. "_thread._local",
  71. "argparse.Namespace",
  72. # mmgen:
  73. "baseconv",
  74. "mmgen.autosign.Signable.base",
  75. "Sha2",
  76. "mmgen.xmrwallet.MoneroMMGenTX.Base",
  77. "mmgen.xmrwallet.MoneroWalletOutputsFile.Base",
  78. "mmgen.proto.eth.tx.Completed",
  79. "TxInfo",
  80. "TwRPC",
  81. "MnemonicEntry",
  82. "MMGenObjectDevTools",
  83. "MnEntryMode",
  84. "deserialized_tx",
  85. # test suite:
  86. "TestHashFunc",
  87. "GenTool",
  88. ]