-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
145 lines (135 loc) · 3.8 KB
/
pyproject.toml
File metadata and controls
145 lines (135 loc) · 3.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
[project]
name = "chatgpt-docstrings"
version = "0.11.0"
requires-python = ">=3.9"
[dependency-groups]
language-server = [
"pygls~=1.3",
"jedi~=0.19",
"openai~=1.58",
"pydantic~=1.10", # via openai (pydantic>=2 is not pure python)
"httpx[socks]~=0.28", # via openai (optional dependency is required to support proxies)
"jiter==0.4" # via openai (see tool.uv.sources section)
]
linting = [
"pyright>=1.1",
"isort>=5.13",
"black>=25.1",
"flake8>=7.1",
"flake8-annotations>=3.1",
"flake8-bugbear>=24.12",
"flake8-builtins>=2.5",
"flake8-docstrings>=1.7",
"flake8-isort>=6.1",
"flake8-pyproject>=1.2",
"flake8-quotes>=3.4",
"flake8-simplify>=0.21",
"flake8-todo>=0.7"
]
testing = [
"pytest~=8.3",
"pytest-asyncio~=0.25"
]
dev = [
{include-group = "linting"},
{include-group = "testing"},
"nox==2024.10.9",
"pre-commit~=4.0",
"git-cliff~=2.8",
]
[tool.uv]
package = false
[tool.uv.sources]
jiter = { path = "fake-jiter/jiter-0.4.0-py3-none-any.whl" } # original 'jiter' is not pure Python
[tool.pyright]
exclude = [
".venv",
".nox",
"src",
"language_server/libs"
]
extraPaths = ["language_server/libs"]
pythonPlatform = "All"
[tool.isort]
src_paths = ["language_server"]
profile = "black"
[tool.flake8]
exclude = [
".venv",
".nox",
"__pycache__",
"src",
"node_modules",
"language_server/libs",
"tests/asserts"
]
max-line-length = 90
inline-quotes = "\""
import-order-style = "pep8"
docstring-convention = "google"
application-import-names = ["utils", "commands", "completions", "custom_types", "initialize", "log", "notification", "progress", "server", "settings"]
extend-ignore = [
# Line break before binary operator (needed for compatibility with black)
"W503",
# Whitespace before ':' (needed for compatibility with black)
"E203",
# Missing type annotation for *args
"ANN002",
# Missing type annotation for **kwargs
"ANN003",
# Missing type annotation for self in method
"ANN101",
# Missing type annotation for cls in classmethod
"ANN102",
# Using .strip() with multi-character strings is misleading the reader
"B005",
# Missing docstring in public module
"D100",
# Missing docstring in public package
"D104",
# Missing docstring in magic method
"D105",
# Missing docstring in __init__
"D107"
]
per-file-ignores = [
# Missing docstring in public class (D101)
# Missing docstring in public method (D102)
# Missing docstring in public function (D103)
# Module level import not at top of file (E402)
# Additional newline in a group of imports (I202)
"tests/*.py: D101, D102, D103, E402, I202",
]
[tool.black]
exclude = '''
.venv|
.nox|
node_modules|
language_server/libs|
tests/asserts
'''
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["language_server", "language_server/libs"]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
[tool.git-cliff.git]
commit_parsers = [
{ message = "^feat", group = "<!-- 0 -->🚀 Features" },
{ message = "^fix", group = "<!-- 1 -->🐛 Bug Fixes" },
{ message = "^doc", group = "<!-- 2 -->📚 Documentation" },
{ message = "^perf", group = "<!-- 3 -->⚡ Performance" },
{ message = "^refactor", group = "<!-- 4 -->🚜 Refactor" },
{ message = "^style", group = "<!-- 5 -->🎨 Styling" },
{ message = "^test", group = "<!-- 6 -->🧪 Testing" },
{ body = ".*security", group = "<!-- 7 -->🛡️ Security" },
{ message = "^revert", group = "<!-- 8 -->◀️ Revert" },
{ message = "^chore\\(release\\)", skip = true },
{ message = ".*", group = "<!-- 9 -->⚙️ Other" }
]
[tool.git-cliff.changelog]
header = """
# Changelog\n
All notable changes to this project will be documented in this file.\n
"""
output = "CHANGELOG.md"