pyproject.toml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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. "te",
  83. "textin",
  84. "thirdparty",
  85. "vai",
  86. ]