2024-03-29 10:53:09 +03:00
|
|
|
[project]
|
|
|
|
requires-python = ">=3.8"
|
|
|
|
|
2023-01-09 13:19:49 +03:00
|
|
|
[tool.mypy]
|
2023-10-14 05:14:18 +03:00
|
|
|
files = 'kitty,kittens,glfw,*.py,docs/conf.py,gen'
|
2023-01-09 13:19:49 +03:00
|
|
|
no_implicit_optional = true
|
|
|
|
sqlite_cache = true
|
|
|
|
cache_fine_grained = true
|
|
|
|
warn_redundant_casts = true
|
|
|
|
warn_unused_ignores = true
|
|
|
|
warn_return_any = true
|
|
|
|
warn_unreachable = true
|
|
|
|
warn_unused_configs = true
|
|
|
|
check_untyped_defs = true
|
|
|
|
disallow_untyped_defs = true
|
|
|
|
disallow_untyped_decorators = true
|
|
|
|
disallow_untyped_calls = true
|
|
|
|
disallow_incomplete_defs = true
|
|
|
|
strict = true
|
|
|
|
no_implicit_reexport = true
|
|
|
|
|
2024-03-28 17:06:07 +03:00
|
|
|
[tool.pylsp-mypy]
|
|
|
|
enabled = true
|
|
|
|
dmypy = true
|
2024-04-12 06:22:23 +03:00
|
|
|
exclude = ['kitty_tests/*']
|
2024-03-28 17:06:07 +03:00
|
|
|
report_progress = true
|
|
|
|
|
2023-01-09 13:19:49 +03:00
|
|
|
[tool.ruff]
|
|
|
|
line-length = 160
|
2024-03-29 11:14:36 +03:00
|
|
|
|
|
|
|
[tool.ruff.lint]
|
2023-01-09 14:58:35 +03:00
|
|
|
select = ['E', 'F', 'I', 'RUF100']
|
|
|
|
|
2024-03-29 11:14:36 +03:00
|
|
|
[tool.ruff.lint.per-file-ignores]
|
2023-01-09 14:58:35 +03:00
|
|
|
"kitty/options/types.py" = ["E501"]
|
2023-10-15 07:27:58 +03:00
|
|
|
"kitty/options/parse.py" = ["E501"]
|
2023-01-09 14:17:42 +03:00
|
|
|
|
2024-03-29 11:14:36 +03:00
|
|
|
[tool.ruff.lint.isort]
|
|
|
|
detect-same-package = true
|
|
|
|
|
2024-03-29 09:39:24 +03:00
|
|
|
[tool.ruff.format]
|
|
|
|
quote-style = 'single'
|