-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathpyproject.toml
More file actions
115 lines (99 loc) · 2.96 KB
/
Copy pathpyproject.toml
File metadata and controls
115 lines (99 loc) · 2.96 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
[project]
name = "marimo-lsp"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.13"
authors = [{ name = "Trevor Manz", email = "trevor.j.manz@gmail.com" }]
dependencies = [
"jupytext==1.19.5",
"lsprotocol==2025.0.0",
"marimo-base==0.24.0",
"pygls==2.1.1",
"typing-extensions>=4.15.0",
]
[project.scripts]
marimo-lsp = "marimo_lsp:main"
[dependency-groups]
dev = [
"dirty-equals>=0.11.0",
"inline-snapshot>=0.35.0",
"pytest-cov>=7.1.0",
"pytest-lsp==1.0.1",
"pytest>=9.1.1",
"ruff>=0.16.0",
"ty>=0.0.63",
]
[build-system]
requires = ["uv_build>=0.12.0,<0.13.0"]
build-backend = "uv_build"
[tool.marimo-lsp]
# Minimum marimo version allowed in the *user's* kernel environment.
# Tracked separately from the `marimo-base` dependency pin above: that pin is the
# Bundled marimo used by the language server and matching frontend source tag
# (auto-bumped by the update-marimo-version cron), while the value below is the
# compatibility floor we claim to support for user kernels and is bumped
# manually when we intentionally drop support for an older release.
minimum-kernel-version = "0.23.3"
[tool.ty.src]
exclude = ["extension/tutorials/**"]
[tool.ty.environment]
# Resolves the WASM kernel bridge's flat `protocol` import.
extra-paths = ["extension/resources/wasm"]
[tool.ruff]
extend-exclude = ["vscode/*", "extension/tutorials/*"]
[tool.ruff.per-file-target-version]
# These files run in the notebook's selected Python, outside the bundled
# Pyodide environment. Keep them compatible with marimo's Python floor.
"extension/resources/wasm/*.py" = "py310"
"src/marimo_lsp/wasm/protocol.py" = "py310"
[tool.ruff.lint]
pydocstyle = { convention = "numpy" }
select = ["ALL"]
ignore = [
"COM812", # Missing trailing comma (conflicts with ruff format)
"ISC001", # Import sorting (conflicts with ruff format)
"FIX002", # Fixable issue
"G004", # Uses of f-strings in logging
"PLC2701", # Private imports
"TD", # TODOS
"S101", # Use of assert
"E501", # Line too long (we will still format these)
"ANN202", # Return types
]
[tool.ruff.lint.per-file-ignores]
"tests/*.py" = [
"D", # No docstrings in tests
"S101", # Use of assert
"B018", # "useless expression", for accessing the Foo._repr_mimbundle_ descriptor
"SLF001",
"PLC",
"PLR",
"FIX",
]
"scripts/**/*.py" = [
"D", # No docstrings required in scripts
"T201", # print is expected in CLI scripts
"PLR2004", # Magic values acceptable in small CLI scripts
]
[tool.typos.default.extend-words]
somes = "somes"
[tool.pytest.ini_options]
testpaths = ["tests"]
[tool.inline-snapshot]
format-command="ruff format --stdin-filename {filename}"
[tool.coverage.run]
source = ["src/marimo_lsp"]
branch = true
[tool.coverage.report]
show_missing = true
skip_covered = false
exclude_also = [
"pragma: no cover",
"if TYPE_CHECKING:",
"raise NotImplementedError",
"\\.\\.\\.",
]
[tool.uv]
exclude-newer = "7 days"
exclude-newer-package = { marimo-base = false }