-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
124 lines (106 loc) · 4.21 KB
/
pyproject.toml
File metadata and controls
124 lines (106 loc) · 4.21 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
[project]
name = "finecode"
dynamic = ["version"]
description = ""
authors = [{ name = "Vladyslav Hnatiuk", email = "aders1234@gmail.com" }]
readme = "README.md"
requires-python = ">=3.11, <= 3.14"
dependencies = [
"loguru==0.7.*",
"tomlkit==0.11.*",
"watchdog==4.0.*",
"click==8.1.*",
"pydantic==2.12.*",
"pygls==2.0.0",
"finecode_extension_api~=0.4.0a0",
"finecode_extension_runner~=0.4.0a0",
"finecode_builtin_handlers~=0.2.0a0",
"finecode_jsonrpc~=0.1.0a0",
"ordered-set==4.1.*",
"mcp>=1.0.0",
"fine_python_virtualenv~=0.2.0a0",
"fine_python_pip~=0.2.0a0",
"culsans==0.11.*",
"apischema==0.19.*",
]
[project.scripts]
finecode = "finecode.cli:cli"
[dependency-groups]
dev_workspace = [
"build==1.2.2.post1",
"finecode~=0.3.0a0",
"finecode_dev_common_preset~=0.3.0a0",
"debugpy==1.8.*",
]
dev = [{ include-group = "runtime" }, "pytest==7.4.*", "debugpy==1.8.*"]
docs = [
"mkdocs==1.6.*",
"mkdocs-material==9.7.*",
"mkdocstrings[python]==1.0.*",
]
[build-system]
requires = ["setuptools>=64", "setuptools-scm>=8"]
build-backend = "setuptools.build_meta"
# TODO: add import linter handler to lint action
[tool.finecode]
presets = [{ source = "finecode_dev_common_preset" }]
[tool.finecode.env.dev_workspace.dependencies]
finecode = { path = "./", editable = true }
finecode_dev_common_preset = { path = "./finecode_dev_common_preset", editable = true }
finecode_extension_runner = { path = "./finecode_extension_runner", editable = true }
finecode_extension_api = { path = "./finecode_extension_api", editable = true }
finecode_jsonrpc = { path = "./finecode_jsonrpc", editable = true }
fine_python_recommended = { path = "./presets/fine_python_recommended", editable = true }
fine_python_lint = { path = "./presets/fine_python_lint", editable = true }
fine_python_format = { path = "./presets/fine_python_format", editable = true }
fine_python_test = { path = "./presets/fine_python_test", editable = true }
finecode_builtin_handlers = { path = "./finecode_builtin_handlers", editable = true }
fine_python_pip = { path = "./extensions/fine_python_pip", editable = true }
fine_python_virtualenv = { path = "./extensions/fine_python_virtualenv", editable = true }
[tool.finecode.env.runtime.dependencies]
finecode_extension_api = { path = "./finecode_extension_api", editable = true }
finecode_jsonrpc = { path = "./finecode_jsonrpc", editable = true }
finecode_builtin_handlers = { path = "./finecode_builtin_handlers", editable = true }
[tool.finecode.env.docs.dependencies]
finecode_extension_runner = { path = "./finecode_extension_runner", editable = true }
finecode_extension_api = { path = "./finecode_extension_api", editable = true }
finecode_jsonrpc = { path = "./finecode_jsonrpc", editable = true }
finecode_builtin_handlers = { path = "./finecode_builtin_handlers", editable = true }
[tool.importlinter]
root_package = "finecode"
include_external_packages = true
[[tool.importlinter.contracts]]
id = "wm-layered"
name = "WM layered architecture"
type = "layers"
layers = [
"finecode.lsp_server.lsp_server",
"finecode.lsp_server.services",
"finecode.domain",
]
[[tool.importlinter.contracts]]
# such check doesn't control whether there are no raw requests in lsp_server, currently this should
# be checked manually. We should check access to `runner.client.protocol` to avoid this?
id = "wm-use-runner-client"
name = "WM uses LSP requests only in runner_client and lsp_server, no raw requests in app"
type = "forbidden"
source_modules = ["finecode"]
forbidden_modules = ["lsprotocol"]
ignore_imports = [
"finecode.runner.runner_client -> lsprotocol",
"finecode.lsp_server.lsp_server -> lsprotocol",
]
[tool.setuptools_scm]
version_file = "src/finecode/_version.py"
[tool.setuptools.package-data]
finecode = ["base_config.toml"]
[tool.pyright]
reportUnusedCallResult = false
[tool.finecode.action.get_src_artifact_version]
source = "finecode_extension_api.actions.GetSrcArtifactVersionAction"
handlers_mode = "replace"
handlers = [
{ name = 'get_src_artifact_version_setuptools_scm', source = 'fine_python_setuptools_scm.GetSrcArtifactVersionSetuptoolsScmHandler', env = "dev_no_runtime", dependencies = [
"fine_python_setuptools_scm~=0.1.0a1",
] },
]