Skip to content

Commit 457e067

Browse files
committed
chore: Add typecheck support to project
Signed-off-by: Edward Z. Yang <[email protected]> ghstack-source-id: 0a9e2cc Pull-Request-resolved: ezyang#208
1 parent d913571 commit 457e067

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

codemcp.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ project_prompt = '''
2727
format = ["./run_format.sh"]
2828
lint = ["./run_lint.sh"]
2929
ghstack = ["uv", "tool", "run", "ghstack"]
30+
typecheck = ["./run_typecheck.sh"]
3031
[commands.test]
3132
command = ["./run_test.sh"]
3233
doc = "Accepts a pytest-style test selector as an argument to run a specific test."

run_typecheck.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
set -e
33

44
echo "Running Pyright type checker with strict settings..."
5-
python -m pyright codemcp
5+
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
6+
cd "$SCRIPT_DIR"
7+
"${SCRIPT_DIR}/.venv/bin/python" -m pyright $@
68

7-
echo "Type checking completed successfully!"
9+
echo "Type checking completed successfully!"

0 commit comments

Comments
 (0)