pyproject.toml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. [tool.mypy]
  2. disallow_any_generics = true
  3. explicit_package_bases = true
  4. ignore_missing_imports = true
  5. namespace_packages = true
  6. no_implicit_optional = true
  7. pretty = true
  8. show_column_numbers = true
  9. warn_redundant_casts = true
  10. warn_return_any = true
  11. warn_unreachable = true
  12. exclude = ["thirdparty/"]
  13. python_version = "3.8"
  14. [tool.ruff]
  15. extend-exclude = ["thirdparty"]
  16. extend-include = ["SConstruct", "SCsub"]
  17. line-length = 120
  18. target-version = "py38"
  19. [tool.ruff.lint]
  20. extend-select = [
  21. "I", # isort
  22. ]
  23. [tool.ruff.lint.per-file-ignores]
  24. "{SConstruct,SCsub}" = [
  25. "E402", # Module level import not at top of file
  26. "F403", # Undefined local with import star
  27. "F405", # Undefined local with import star usage
  28. ]
  29. [tool.ruff.lint.isort]
  30. sections = { metadata = ["misc.utility.scons_hints"] }
  31. section-order = [
  32. "future",
  33. "metadata",
  34. "standard-library",
  35. "third-party",
  36. "first-party",
  37. "local-folder",
  38. ]
  39. [tool.codespell]
  40. enable-colors = true
  41. write-changes = true
  42. check-hidden = true
  43. quiet-level = 3
  44. builtin = ["clear", "rare", "en-GB_to_en-US"]
  45. skip = [
  46. ".mailmap",
  47. "*.desktop",
  48. "*.gitignore",
  49. "*.po",
  50. "*.pot",
  51. "*.rc",
  52. "AUTHORS.md",
  53. "COPYRIGHT.txt",
  54. "core/input/gamecontrollerdb.txt",
  55. "core/string/locales.h",
  56. "DONORS.md",
  57. "editor/project_converter_3_to_4.cpp",
  58. "platform/android/java/lib/src/com/*",
  59. "platform/web/package-lock.json",
  60. ]
  61. ignore-words-list = [
  62. "breaked",
  63. "cancelled",
  64. "checkin",
  65. "colour",
  66. "curvelinear",
  67. "doubleclick",
  68. "expct",
  69. "findn",
  70. "gird",
  71. "hel",
  72. "inout",
  73. "labelin",
  74. "lod",
  75. "mis",
  76. "nd",
  77. "numer",
  78. "ot",
  79. "outin",
  80. "parm",
  81. "requestor",
  82. "streamin",
  83. "te",
  84. "textin",
  85. "thirdparty",
  86. "vai",
  87. ]