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. python_version = "3.8"
  14. [tool.ruff]
  15. extend-exclude = ["thirdparty"]
  16. extend-include = ["SConstruct", "SCsub"]
  17. line-length = 120
  18. target-version = "py37"
  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. "F821", # Undefined name
  27. ]
  28. [tool.codespell]
  29. enable-colors = ""
  30. write-changes = ""
  31. check-hidden = ""
  32. quiet-level = 3
  33. builtin = "clear,rare,en-GB_to_en-US"
  34. skip = """\
  35. .mailmap,
  36. *.desktop,
  37. *.gitignore,
  38. *.po,
  39. *.pot,
  40. *.rc,
  41. AUTHORS.md,
  42. COPYRIGHT.txt,
  43. core/input/gamecontrollerdb.txt,
  44. core/string/locales.h,
  45. DONORS.md,
  46. editor/project_converter_3_to_4.cpp,
  47. platform/android/java/lib/src/com/*,
  48. platform/web/package-lock.json
  49. """
  50. ignore-words-list = """\
  51. breaked,
  52. cancelled,
  53. checkin,
  54. colour,
  55. curvelinear,
  56. doubleclick,
  57. expct,
  58. findn,
  59. gird,
  60. hel,
  61. inout,
  62. labelin,
  63. lod,
  64. mis,
  65. nd,
  66. numer,
  67. ot,
  68. outin,
  69. requestor,
  70. te,
  71. textin,
  72. thirdparty,
  73. vai
  74. """