-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
130 lines (113 loc) · 3.34 KB
/
Copy pathpyproject.toml
File metadata and controls
130 lines (113 loc) · 3.34 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
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "python-marimo"
version = "0.1.0"
description = "playground for experimenting with the `marimo` library"
readme = "README.md"
requires-python = ">=3.14"
dependencies = [
"altair[all]>=6.0.0",
"ijson>=3.5.1",
"lark>=1.3.1",
"marimo[sql]>=0.17.8",
"matplotlib>=3.10.7",
"numpy>=2.3.4",
"pandas>=2.3.3",
"platformdirs>=4.5.1",
"plotly>=6.4.0",
"polars>=1.35.2",
"polars-iptools>=0.1.10,<0.2", # 0.2.1 is failing to build, last tested 2026-08-14
"pytest>=9.0.2",
"pyzmq>=27.1.0",
"tzlocal>=5.3.1",
]
[dependency-groups]
dev = [
"marimo[mcp]>=0.17.8",
"mypy>=1.18.2",
"openai>=2.14.0",
"pandas-stubs>=2.3.3.251201",
"plotly-stubs>=0.0.6",
"pylint>=4.0.3",
"python-lsp-server>=1.13.2",
"ruff>=0.14.5",
"pytest>=9.0.2",
"pydantic-ai>=1.51.0",
]
[tool.setuptools.packages.find]
where = ["src"]
[tool.marimo.formatting]
line_length = 100
[tool.marimo.display]
default_width = "full"
[tool.marimo.runtime]
pythonpath = ["./src"]
output_max_bytes = 40_000_000
[tool.pylint.main]
py-version = "3.14"
[tool.mypy]
python_version = "3.14"
[tool.pylint.MASTER]
ignore-paths = ['^src/notebooks/marimo_bugs/']
[tool.pylint.basic]
# settings for marimo notebooks
# const-rgx = '([A-Z_][A-Z0-9_]*)|(__.*__)|__generated_with'
good-names = ["i", "j", "k", "_", "__generated_with"]
[tool.pylint.format]
max-line-length = 100
[tool.pylint.messages_control]
disable = [
# settings for marimo notebooks
"reimported",
"import-outside-toplevel",
"ungrouped-imports",
"pointless-statement",
"useless-return",
# other settings
"no-else-raise", # do not prevent using elif
]
[tool.pyright]
pythonVersion = "3.14"
# settings for marimo notebooks
reportUnusedExpression = false
[tool.ruff]
line-length = 100
indent-width = 4
[tool.ruff.lint]
extend-select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear (common bugs)
"C4", # flake8-comprehensions
"UP", # pyupgrade checks
"PL", # ALL Pylint rules (Convention, Error, Refactor, Warning)
]
ignore = [
"UP015", # Unnecessary mode argument in open()
"UP047", # Generic function `*` should use type parameters
]
[tool.ruff.lint.per-file-ignores]
# notebooks
"src/notebooks/**.py" = [
"B018", # Found useless expression. Either assign it to a variable or remove it.
"PLR1711", # Useless `return` statement at end of function
"PLC0415", # `import` should be at the top-level of a file
]
# pytest files
"tests/**.py" = [
"B011", # Do not `assert False` (`python -O` removes these calls), raise `AssertionError()`
"PLR2004", # Magic value used in comparison, consider replacing `3` with a constant variable
]
"src/notebooks/experiments/python/pytest/**.py" = [
"B011", # Do not `assert False` (`python -O` removes these calls), raise `AssertionError()`
"PLR2004", # Magic value used in comparison, consider replacing `3` with a constant variable
]
"src/notebooks/marimo_bugs/**.py" = [
"B011", # Do not `assert False` (`python -O` removes these calls), raise `AssertionError()`
]
[tool.ruff.lint.isort]
lines-after-imports = 2