# HG changeset patch # User Matt Harbison # Date 1724167090 14400 # Node ID 68ec9743ef0440407d4ecb0af9cdcb64ee5470d9 # Parent 673b07a1db08d647ee4f106fee69fbd398c8d390 contrib: print the version of pytype used to do the type checking This will help with CI. I don't see a way to print the version of python that's running it. When I tried `head -n 1 $(which pytype)`, the CI run printed: #!/usr/bin/env bash Locally, that gives the path to the python interpreter in the venv, so IDK what's different. diff -r 673b07a1db08 -r 68ec9743ef04 contrib/check-pytype.sh --- a/contrib/check-pytype.sh Sat Aug 17 18:43:23 2024 -0400 +++ b/contrib/check-pytype.sh Tue Aug 20 11:18:10 2024 -0400 @@ -5,6 +5,9 @@ cd "$(hg root)" +printf "pytype version: " +pytype --version + # Many of the individual files that are excluded here confuse pytype # because they do a mix of Python 2 and Python 3 things # conditionally. There's no good way to help it out with that as far as