diff --git a/codemcp.toml b/codemcp.toml index 1aba1892..6393cf80 100644 --- a/codemcp.toml +++ b/codemcp.toml @@ -27,6 +27,7 @@ project_prompt = ''' format = ["./run_format.sh"] lint = ["./run_lint.sh"] ghstack = ["uv", "tool", "run", "ghstack"] +typecheck = ["./run_typecheck.sh"] [commands.test] command = ["./run_test.sh"] doc = "Accepts a pytest-style test selector as an argument to run a specific test." diff --git a/run_typecheck.sh b/run_typecheck.sh index 26a3fb5d..be770a33 100755 --- a/run_typecheck.sh +++ b/run_typecheck.sh @@ -2,6 +2,8 @@ set -e echo "Running Pyright type checker with strict settings..." -python -m pyright codemcp +SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +cd "$SCRIPT_DIR" +"${SCRIPT_DIR}/.venv/bin/python" -m pyright $@ -echo "Type checking completed successfully!" \ No newline at end of file +echo "Type checking completed successfully!"