Skip to content

Commit c698adf

Browse files
committed
Add repomap dependencies as inline script metadata
This makes repomapy.py runnable with `uv` as a standalone script without having to clone the entire repository and install the dependencies with `pip`. Signed-off-by: Martin Prpič <mprpic@redhat.com>
1 parent 7371e50 commit c698adf

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

repomap.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
#!/usr/bin/env python3
2+
# /// script
3+
# dependencies = [
4+
# # Keep versions in sync with requirements.txt
5+
# "tree-sitter>=0.20.0",
6+
# "tree-sitter-python>=0.20.0",
7+
# "tree-sitter-javascript>=0.20.0",
8+
# "tree-sitter-typescript>=0.20.0",
9+
# "tree-sitter-go>=0.20.0",
10+
# "tree-sitter-bash>=0.20.0",
11+
# ]
12+
# ///
213
"""
314
Repomap - Generate AI-friendly code structure maps using tree-sitter
415

0 commit comments

Comments
 (0)