-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
113 lines (96 loc) · 3.1 KB
/
pyproject.toml
File metadata and controls
113 lines (96 loc) · 3.1 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
[project]
name = "finecode"
dynamic = ["version"]
description = ""
authors = [{ name = "Vladyslav Hnatiuk", email = "aders1234@gmail.com" }]
readme = "README.md"
requires-python = ">=3.11, < 3.15"
dependencies = [
"loguru==0.7.*",
"filelock==3.18.*",
"tomlkit==0.11.*",
"watchdog==4.0.*",
"click==8.1.*",
"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.*",
"fine_python_uv~=0.1.0a0",
"culsans==0.11.*",
"cattrs==26.1.*",
]
[project.scripts]
finecode = "finecode.cli:cli"
[dependency-groups]
dev_workspace = [
"finecode~=0.3.0a0",
"finecode_dev_common_preset~=0.3.0a0",
"debugpy==1.8.*",
]
dev = ["finecode", "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"
[tool.finecode]
presets = [{ source = "finecode_dev_common_preset" }]
# [tool.finecode.action.lint]
# handlers = [
# { name = "import_linter", source = "fine_python_import_linter.ImportLinterHandler", env = "dev_no_runtime", dependencies = [
# "fine_python_import_linter~=0.1.0",
# ] },
# ]
[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.setuptools.package-dir]
"" = "src"
[tool.setuptools.packages.find]
where = ["src"]
[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",
] },
]
[tool.finecode.action.serve_wal_explorer_from_store]
source = "finecode_extension_api.actions.ServeWalExplorerFromStoreAction"
handlers = [
{ name = "serve_wal_explorer_from_store", source = "fine_wal_explorer.ServeWalExplorerFromStoreHandler", env = "wal_explorer", dependencies = [
"fine_wal_explorer~=0.1.0a0",
] },
]