pyproject.toml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. [tool.towncrier]
  2. package = "sydent"
  3. filename = "CHANGELOG.md"
  4. directory = "changelog.d"
  5. issue_format = "[\\#{issue}](https://github.com/matrix-org/sydent/issues/{issue})"
  6. [[tool.towncrier.type]]
  7. directory = "feature"
  8. name = "Features"
  9. showcontent = true
  10. [[tool.towncrier.type]]
  11. directory = "bugfix"
  12. name = "Bugfixes"
  13. showcontent = true
  14. [[tool.towncrier.type]]
  15. directory = "docker"
  16. name = "Updates to the Docker image"
  17. showcontent = true
  18. [[tool.towncrier.type]]
  19. directory = "doc"
  20. name = "Improved Documentation"
  21. showcontent = true
  22. [[tool.towncrier.type]]
  23. directory = "removal"
  24. name = "Deprecations and Removals"
  25. showcontent = true
  26. [[tool.towncrier.type]]
  27. directory = "misc"
  28. name = "Internal Changes"
  29. showcontent = true
  30. [tool.isort]
  31. profile = "black"
  32. [tool.black]
  33. target-version = ['py36']
  34. [tool.mypy]
  35. plugins = "mypy_zope:plugin"
  36. show_error_codes = true
  37. namespace_packages = true
  38. strict = true
  39. files = [
  40. # Find files that pass with
  41. # find sydent tests -type d -not -name __pycache__ -exec bash -c "mypy --strict '{}' > /dev/null" \; -print
  42. "sydent/config",
  43. "sydent/db",
  44. "sydent/terms",
  45. "sydent/threepid",
  46. "sydent/users",
  47. "sydent/util",
  48. "sydent/validators",
  49. # TODO the rest of CI checks these---mypy ought to too.
  50. # "tests",
  51. # "matrix_is_test",
  52. # "scripts",
  53. # "setup.py",
  54. ]
  55. mypy_path = "stubs"
  56. [[tool.mypy.overrides]]
  57. module = [
  58. "idna",
  59. "nacl.*",
  60. "netaddr",
  61. "prometheus_client",
  62. "sentry_sdk",
  63. "signedjson.*",
  64. "sortedcontainers",
  65. ]
  66. ignore_missing_imports = true