diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ed571f7d4..fc901f0c6 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -34,13 +34,17 @@ source .venv/bin/activate uv sync --dev ``` +> [!TIP] +> - If sync fails with `missing field 'version'`, you may need to delete lockfile and rerun `rm uv.lock && uv sync --dev`. +> - If sync fails with failed compilation, you may need to install clang and rerun `uv sync --dev`. + ### Running Tests ```bash -# Unit tests +# Unit tests (tests atomic functionality) uv run pytest tests/unit -n auto -# Codemod tests +# Codemod tests (tests larger programs) uv run pytest tests/codemod/test_codemods.py -n auto ``` diff --git a/src/graph_sitter/testing/models.py b/src/graph_sitter/testing/models.py index 4c2ee5c08..d7ecf226b 100644 --- a/src/graph_sitter/testing/models.py +++ b/src/graph_sitter/testing/models.py @@ -26,7 +26,7 @@ try: REPO_ID_TO_URL = json.loads((TEST_DIR / "repos" / "repos.json").read_text()) -except FileNotFoundError: +except (FileNotFoundError, json.decoder.JSONDecodeError): REPO_ID_TO_URL = {} if TYPE_CHECKING: from graph_sitter.codemod import Codemod3