mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Updates the Python extractor to depend on version 0.24.7 of tree-sitter (and 0.12.0 of tree-sitter-graph). A few changes were needed in order to make the code build and run after updating the dependencies: - In `main.rs`, the `Language` parameter is now passed as a reference. - In `python.tsg`, many queries had captures that were not actually used in the body of the stanza. This is no longer allowed (unless the captures start with an underscore), as it may indicate an error. To fix this, I added underscores in the appropriate places (and verified that none of these unused captures were in fact bugs).
17 lines
346 B
TOML
17 lines
346 B
TOML
[workspace]
|
|
|
|
[package]
|
|
name = "tsg-python"
|
|
version = "0.1.0"
|
|
authors = ["Taus Brock-Nannestad <tausbn@github.com>"]
|
|
edition = "2024"
|
|
|
|
# When updating these dependencies, run `misc/bazel/3rdparty/update_cargo_deps.sh`
|
|
[dependencies]
|
|
anyhow = "1.0"
|
|
regex = "1"
|
|
tree-sitter = "=0.24.7"
|
|
tree-sitter-graph = "0.12.0"
|
|
tsp = {path = "tsp"}
|
|
clap = "4.5"
|