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