pytype: update check-pytype.sh to select target automatically
authorAnton Shestakov <av6@dwimlabs.net>
Mon, 18 Dec 2023 15:40:48 -0300
changeset 51305 05ce07bdb173
parent 51304 d91b55371d6f
child 51306 46280260d010
pytype: update check-pytype.sh to select target automatically We have python3.11 on CI, so we can run pytype targeting that version. On the other hand, we don't have python3.7 on CI anymore, so we can't run pytype for 3.7 anymore (interpreter not found). I think it's fine to make pytype select the appropriate target depending on the version of the interpreter it's running under.
contrib/check-pytype.sh
--- a/contrib/check-pytype.sh	Tue Dec 19 22:54:52 2023 +0100
+++ b/contrib/check-pytype.sh	Mon Dec 18 15:40:48 2023 -0300
@@ -71,7 +71,7 @@
 
 # TODO: include hgext and hgext3rd
 
-pytype -V 3.7 --keep-going --jobs auto \
+pytype --keep-going --jobs auto \
     doc/check-seclevel.py hgdemandimport hgext mercurial \
     -x hgext/absorb.py \
     -x hgext/bugzilla.py \