pyproject.toml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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.color",
  26. "mmgen.term",
  27. "msvcrt",
  28. "gmpy2",
  29. ]
  30. [tool.pylint."messages control"]
  31. disable = [
  32. "raw-checker-failed",
  33. "bad-inline-option",
  34. "locally-disabled",
  35. "file-ignored",
  36. "suppressed-message",
  37. "useless-suppression",
  38. "deprecated-pragma",
  39. "use-symbolic-message-instead",
  40. "use-implicit-booleaness-not-comparison-to-string",
  41. "use-implicit-booleaness-not-comparison-to-zero",
  42. # non-default:
  43. "no-method-argument",
  44. "function-redefined",
  45. "method-hidden",
  46. ]
  47. # Disable these too for mostly quiet output without --errors-only:
  48. # "missing-function-docstring",
  49. # "missing-class-docstring",
  50. # "import-outside-toplevel",
  51. # "multiple-imports",
  52. # "wrong-import-position",
  53. # "protected-access",
  54. # "invalid-name",
  55. # "too-few-public-methods",
  56. # "super-init-not-called",
  57. # "unnecessary-lambda-assignment",
  58. # "attribute-defined-outside-init",
  59. # "fixme",
  60. [tool.pylint.miscellaneous]
  61. notes = ["FIXME", "TODO", "DEBUG", "WIP"]
  62. [tool.pylint.typecheck]
  63. mixin-class-rgx = """.*[Mm]ixin|\
  64. ^(Hilite|InitErrors|DummyWIF|\
  65. cfg_file|cfg_file_sample|\
  66. MoneroMMGenFile|keygen_base|xmr_signable|\
  67. CmdTestShared)$"""
  68. ignored-classes = [ # ignored for no-member, otherwise checked
  69. "optparse.Values",
  70. "thread._local",
  71. "_thread._local",
  72. "argparse.Namespace",
  73. # mmgen:
  74. "baseconv",
  75. "mmgen.autosign.Signable.base",
  76. "Sha2",
  77. "mmgen.xmrwallet.MoneroMMGenTX.Base",
  78. "mmgen.xmrwallet.MoneroWalletOutputsFile.Base",
  79. "mmgen.proto.eth.tx.Completed",
  80. "TxInfo",
  81. "TwRPC",
  82. "MnemonicEntry",
  83. "MMGenObjectDevTools",
  84. "MnEntryMode",
  85. "deserialized_tx",
  86. # test suite:
  87. "TestHashFunc",
  88. "GenTool",
  89. ]