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