Skip to content
Snippets Groups Projects
Commit 069735062524 authored by Pierre-Yves David's avatar Pierre-Yves David :octopus:
Browse files

pytype: add relative timestamp to the output if `ts` is available

This should help to identify the module that are the slower to analyze.
parent 7dd466f13f9b
No related branches found
No related tags found
2 merge requests!1083Merge stable into default,!1058pytype: add relative timestamp to the output if `ts` is available
Pipeline #91805 passed
......@@ -68,6 +68,13 @@
# TODO: include hgext and hgext3rd
# use ts to produce some timing if available
if ! command -v ts; then
ts() {
cat
}
fi
pytype --keep-going --jobs auto \
doc/check-seclevel.py hgdemandimport hgext mercurial \
-x hgext/absorb.py \
......@@ -116,7 +123,8 @@
-x mercurial/testing/storage.py \
-x mercurial/thirdparty \
-x mercurial/win32.py \
-x mercurial/wireprotov1server.py
-x mercurial/wireprotov1server.py \
| ts -i "(%.s)" | ts -s "%.s"
if find .pytype/pyi -name '*.pyi' | xargs grep -ql '# Caught error'; then
echo 'pytype crashed while generating the following type stubs:'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment