Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemathinc
GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/python/cocalc-api/pyproject.toml
5573 views
1
[project]
2
name = "cocalc-api"
3
version = "0.5.1"
4
description = "Python client for the CoCalc API"
5
authors = [{ name="William Stein", email="[email protected]" }, {name="Harald Schilly", email="[email protected]"}]
6
readme = "README.md"
7
requires-python = ">=3.10"
8
dependencies = ["httpx", "mcp>=1.23", "urllib3>=2.6.3"]
9
license = "MIT"
10
11
[tool.hatch.build.targets.wheel]
12
packages = ["src/cocalc_api"]
13
include = ["src/cocalc_api/py.typed"]
14
15
[project.urls]
16
Homepage = "https://github.com/sagemathinc/cocalc/src/python/cocalc-api"
17
Repository = "https://github.com/sagemathinc/cocalc"
18
Documentation = "https://cocalc.com/api/python"
19
Source = "https://github.com/sagemathinc/cocalc/src/python/cocalc-api"
20
Issues = "https://github.com/sagemathinc/cocalc/issues"
21
22
[project.scripts]
23
cocalc-mcp-server = "cocalc_api.mcp.server:main"
24
cocalc-mcp-debug = "cocalc_api.mcp.mcp_debug:main"
25
26
[tool.mypy]
27
python_version = "3.13"
28
# strict = true
29
# disallow_untyped_defs = true
30
# Ignore empty-body errors for decorator-implemented methods
31
disable_error_code = ["empty-body"]
32
33
[tool.pyright]
34
# Ignore return type errors for decorator-implemented methods
35
reportReturnType = false
36
37
[tool.yapf]
38
based_on_style = "pep8"
39
column_limit = 150
40
indent_width = 4
41
42
[tool.ruff]
43
line-length = 150
44
lint.select = ["E", "F", "B"] # Pyflakes, pycodestyle, bugbear, etc.
45
46
[tool.coverage.run]
47
source = ["src"]
48
omit = [
49
"*/tests/*",
50
"*/test_*.py",
51
"*/__pycache__/*",
52
"*/venv/*",
53
"*/env/*",
54
"*/mcp/*",
55
]
56
57
[tool.coverage.report]
58
exclude_lines = [
59
"pragma: no cover",
60
"def __repr__",
61
"if self.debug:",
62
"if settings.DEBUG",
63
"raise AssertionError",
64
"raise NotImplementedError",
65
"if 0:",
66
"if __name__ == .__main__.:",
67
"class .*\\bProtocol\\):",
68
"@(abc\\.)?abstractmethod",
69
]
70
show_missing = true
71
precision = 1
72
73
[tool.coverage.html]
74
directory = "htmlcov"
75
76
[dependency-groups]
77
dev = [
78
"coverage[toml]",
79
"ipython",
80
"mkdocs",
81
"mkdocs-material",
82
"mkdocstrings[python]",
83
"mypy",
84
"psycopg2-binary",
85
"pyright",
86
"pytest-cov",
87
"pytest>=8.4.2",
88
"ruff>=0.13.2",
89
"types-psycopg2",
90
"yapf",
91
]
92
93