pyproject.toml 1.2 KB

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