gabriel / muse public
pyproject.toml
129 lines 3.6 KB
edfb5d16 Fix push 422 on new branches; add tab completion for branch/remote names Gabriel Cardona <gabriel@tellurstori.com> 17h ago
1 [project]
2 name = "muse"
3 version = "0.1.5"
4 description = "Muse — domain-agnostic version control for multidimensional state"
5 readme = "README.md"
6 license = {text = "MIT"}
7 requires-python = ">=3.14"
8 dependencies = [
9 "typer>=0.24.0",
10 "mido>=1.3.3",
11 "defusedxml>=0.7.1",
12 # tree-sitter: professional AST parsing for the code domain plugin.
13 # Used by GitHub Copilot, VS Code, Neovim, and Zed — the industry standard.
14 "tree-sitter>=0.25.0",
15 "tree-sitter-javascript>=0.25.0",
16 "tree-sitter-typescript>=0.23.2",
17 "tree-sitter-java>=0.23.5",
18 "tree-sitter-go>=0.25.0",
19 "tree-sitter-rust>=0.24.0",
20 "tree-sitter-c>=0.24.1",
21 "tree-sitter-cpp>=0.23.4",
22 "tree-sitter-c-sharp>=0.23.1",
23 "tree-sitter-ruby>=0.23.1",
24 "tree-sitter-kotlin>=1.1.0",
25 # Prose and web language grammars.
26 "tree-sitter-markdown>=0.5.1",
27 "tree-sitter-html>=0.23.2",
28 "tree-sitter-css>=0.25.0",
29 "argcomplete>=3.3.0",
30 # Swift: py-tree-sitter-swift must be built from source; omitted here to
31 # avoid breaking CI on machines without Xcode CLT. Install manually with:
32 # pip install py-tree-sitter-swift
33 # The adapter degrades gracefully to file-level tracking without it.
34 ]
35
36 [project.scripts]
37 muse = "muse.cli.app:main"
38
39 [project.optional-dependencies]
40 dev = [
41 "pytest>=9.0.2",
42 "pytest-asyncio>=1.3.0",
43 "pytest-cov>=7.0.0",
44 "anyio>=4.12.0",
45 "mypy>=1.19.1",
46 "hypothesis>=6.100.0",
47 "types-defusedxml>=0.7.0.20240218",
48 ]
49
50 [build-system]
51 requires = ["hatchling>=1.29.0"]
52 build-backend = "hatchling.build"
53
54 [tool.pytest.ini_options]
55 asyncio_mode = "auto"
56 testpaths = ["tests"]
57 cache_dir = "/tmp/pytest_cache"
58 addopts = "-v --tb=short"
59
60 [tool.coverage.run]
61 source = ["muse"]
62 omit = [
63 # Hub/remote authentication — future feature, requires network fixtures
64 "muse/cli/config.py",
65 # MIDI binary parser — requires MIDI fixture files to test meaningfully
66 "muse/cli/midi_parser.py",
67 # Backward-compat re-export shim — trivially thin wrapper
68 "muse/cli/models.py",
69 ]
70
71 [tool.coverage.report]
72 exclude_lines = [
73 "pragma: no cover",
74 "if TYPE_CHECKING:",
75 "raise NotImplementedError",
76 ]
77
78 [tool.mypy]
79 python_version = "3.14"
80 strict = true
81 explicit_package_bases = true
82 namespace_packages = true
83 warn_unreachable = true
84 show_error_codes = true
85 # Exclude deferred files not yet ported to the strict typed surface.
86 exclude = [
87 "muse/plugins/music/services/",
88 "muse/cli/commands/emotion_diff\\.py",
89 "muse/cli/commands/groove_check\\.py",
90 ]
91
92 [[tool.mypy.overrides]]
93 module = ["tests.*"]
94 disallow_untyped_decorators = false
95 disallow_untyped_defs = false
96 disallow_incomplete_defs = false
97
98 [[tool.mypy.overrides]]
99 module = ["mido"]
100 ignore_missing_imports = true
101
102 [[tool.mypy.overrides]]
103 # tree-sitter and its grammar packages ship compiled C extensions. The core
104 # package (tree_sitter) provides py.typed stubs when run via `python -m mypy`
105 # from the project venv, but a globally-installed mypy cannot resolve them.
106 # Grammar packages never ship stubs. Marking all of them ignore_missing_imports
107 # keeps both invocation styles green; the venv mypy still validates our usage
108 # against the stubs when they are findable (CI).
109 module = [
110 "tree_sitter",
111 "tree_sitter_javascript",
112 "tree_sitter_typescript",
113 "tree_sitter_java",
114 "tree_sitter_go",
115 "tree_sitter_rust",
116 "tree_sitter_c",
117 "tree_sitter_cpp",
118 "tree_sitter_c_sharp",
119 "tree_sitter_ruby",
120 "tree_sitter_kotlin",
121 "tree_sitter_markdown",
122 "tree_sitter_html",
123 "tree_sitter_css",
124 "py_tree_sitter_swift",
125 ]
126 ignore_missing_imports = true
127
128 [tool.hatch.build.targets.wheel]
129 packages = ["muse"]