22name = " lsp-types"
33version = " 1.0.0"
44license = " MIT"
5- requires-python = " >=3.8 "
5+ requires-python = " >=3.13 "
66classifiers = [
77 " Programming Language :: Python :: 3" ,
88 " Operating System :: OS Independent" ,
@@ -12,7 +12,7 @@ dependencies = [
1212]
1313
1414[tool .pyright ]
15- pythonVersion = " 3.11 "
15+ pythonVersion = " 3.13 "
1616reportUnusedCallResult = " none"
1717
1818[[tool .pyright .executionEnvironments ]]
@@ -21,12 +21,32 @@ pythonVersion = "3.8"
2121
2222[tool .ruff ]
2323line-length = 120
24+ target-version = " py313"
25+
26+ [tool .ruff .per-file-target-version ]
27+ "generated/*.py" = " py38"
2428
2529[tool .ruff .format ]
2630quote-style = " single"
31+ exclude = [
32+ " generated/*.py"
33+ ]
34+
35+ [tool .ruff .lint .isort ]
36+ case-sensitive = false
37+ force-single-line = true
38+ from-first = true
39+ no-sections = true
40+ order-by-type = false
41+ required-imports = [" from __future__ import annotations" ]
42+
43+ [tool .ruff .lint .flake8-quotes ]
44+ inline-quotes = " single"
2745
2846[tool .ruff .lint ]
2947extend-select = [" ALL" ]
48+ # Allow fix for all enabled rules (when `--fix`) is provided.
49+ fixable = [" ALL" ]
3050ignore = [
3151 " COM812" , # https://docs.astral.sh/ruff/rules/missing-trailing-comma/
3252 " C901" , # https://docs.astral.sh/ruff/rules/complex-structure/
@@ -41,7 +61,6 @@ ignore = [
4161 " D213" , # https://docs.astral.sh/ruff/rules/multi-line-summary-second-line/
4262 " D400" , # https://docs.astral.sh/ruff/rules/missing-trailing-period/
4363 " D415" , # https://docs.astral.sh/ruff/rules/missing-terminal-punctuation/
44- " I001" , # https://docs.astral.sh/ruff/rules/unsorted-imports/
4564 " N801" , # https://docs.astral.sh/ruff/rules/invalid-class-name/
4665 " PLR0911" , # https://docs.astral.sh/ruff/rules/too-many-return-statements/
4766 " PLR0912" , # https://docs.astral.sh/ruff/rules/too-many-branches/
@@ -51,20 +70,16 @@ ignore = [
5170 " UP037" # https://docs.astral.sh/ruff/rules/quoted-annotation/
5271]
5372
54- [tool .ruff .lint .flake8-quotes ]
55- inline-quotes = " single"
56-
5773[tool .tox ]
58- legacy_tox_ini = """
59- [tox]
60- envlist = py3
61- skipsdist = True
74+ env_list = [" py3" ]
75+ skipsdist = true
6276
63- [testenv]
64- deps =
65- pyright==1.1.407
66- ruff==0.14.14
67- commands =
68- pyright .
69- ruff check .
70- """
77+ [tool .tox .env_run_base ]
78+ deps = [
79+ " pyright==1.1.408" ,
80+ " ruff==0.15.0" ,
81+ ]
82+ commands = [
83+ [" pyright" ],
84+ [" ruff" , " check" ],
85+ ]
0 commit comments