Python: Move Python language pack tooling to external repo

This is essentially the contents of `language-packs/python/tools` with some minor
modifications to account for the changed location.

Of note: we explicitly exclude the `recorded-call-graph-metrics` director that
was already present in `python/tools`. When we revisit this directory for some
cleanup (e.g. to get rid of the `lgtm` references), we'll probably want to switch
to an explicit list of sources to include.
This commit is contained in:
Taus
2024-03-07 13:33:58 +00:00
parent cdc879ee89
commit 016aedab0a
9 changed files with 75 additions and 0 deletions

11
python/tools/pre-finalize.sh Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/bash
set -eu
"$CODEQL_DIST/codeql" database index-files \
--include-extension=.yaml \
--include-extension=.yml \
--size-limit=5m \
--language yaml \
-- \
"$CODEQL_EXTRACTOR_PYTHON_WIP_DATABASE"