pyproject.toml 880 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. [project]
  2. requires-python = ">=3.9"
  3. [tool.mypy]
  4. files = 'kitty,kittens,glfw,*.py,docs/conf.py,gen'
  5. no_implicit_optional = true
  6. sqlite_cache = true
  7. cache_fine_grained = true
  8. warn_redundant_casts = true
  9. warn_unused_ignores = true
  10. warn_return_any = true
  11. warn_unreachable = true
  12. warn_unused_configs = true
  13. check_untyped_defs = true
  14. disallow_untyped_defs = true
  15. disallow_untyped_decorators = true
  16. disallow_untyped_calls = true
  17. disallow_incomplete_defs = true
  18. strict = true
  19. no_implicit_reexport = true
  20. [tool.pylsp-mypy]
  21. enabled = true
  22. dmypy = true
  23. exclude = ['kitty_tests/*']
  24. report_progress = true
  25. [tool.ruff]
  26. line-length = 160
  27. [tool.ruff.lint]
  28. select = ['E', 'F', 'I', 'RUF100']
  29. [tool.ruff.lint.per-file-ignores]
  30. "kitty/options/types.py" = ["E501"]
  31. "kitty/options/parse.py" = ["E501"]
  32. [tool.ruff.lint.isort]
  33. detect-same-package = true
  34. [tool.ruff.format]
  35. quote-style = 'single'