-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathstubtest.sh
executable file
·84 lines (68 loc) · 2.64 KB
/
stubtest.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#!/usr/bin/env bash
set -euo pipefail
# change to script directory
cd $(dirname "$0")
# make sure virtual env is active unless specifically turned off
if [[ -z "${VIRTUAL_ENV:-}" && "${SKIP_VENV:-}" -ne "1" ]]; then
source venv/bin/activate
fi
# most of our stubs are incomplete so we pass --ignore-missing-stub
# whenever a package hasn't been fully stubbed out
echo "Running stubtest on dectate"
stubtest dectate \
--mypy-config-file pyproject.toml \
--allowlist tests/stubtest/dectate_allowlist.txt \
--ignore-missing-stub
echo "Running stubtest on depot"
stubtest depot \
--mypy-config-file pyproject.toml \
--allowlist tests/stubtest/depot_allowlist.txt \
--ignore-missing-stub
echo "Running stubtest on morepath"
stubtest morepath \
--mypy-config-file pyproject.toml \
--allowlist tests/stubtest/morepath_allowlist.txt \
--ignore-missing-stub
echo "Running stubtest on more.content_security"
stubtest more.content_security \
--mypy-config-file pyproject.toml
echo "Running stubtest on more.transaction"
stubtest more.transaction \
--mypy-config-file pyproject.toml \
--allowlist tests/stubtest/more.transaction_allowlist.txt
echo "Running stubtest on more.webassets"
stubtest more.webassets \
--mypy-config-file pyproject.toml \
--allowlist tests/stubtest/more.webassets_allowlist.txt
echo "Running stubtest on pdfdocument"
stubtest pdfdocument \
--mypy-config-file pyproject.toml \
--allowlist tests/stubtest/pdfdocument_allowlist.txt
echo "Running stubtest on purl"
stubtest purl \
--mypy-config-file pyproject.toml
echo "Running stubtest on reg"
stubtest reg \
--mypy-config-file pyproject.toml \
--allowlist tests/stubtest/reg_allowlist.txt
echo "Running stubtest on sqlalchemy_utils"
stubtest sqlalchemy_utils \
--mypy-config-file pyproject.toml \
--allowlist tests/stubtest/sqlalchemy_utils_allowlist.txt \
--ignore-missing-stub
echo "Running stubtest on transaction"
stubtest transaction \
--mypy-config-file pyproject.toml \
--allowlist tests/stubtest/transaction_allowlist.txt
echo "Running stubtest on webcolors"
stubtest webcolors \
--mypy-config-file pyproject.toml \
--ignore-missing-stub
echo "Running stubtest on wtforms"
stubtest wtforms \
--mypy-config-file pyproject.toml \
--allowlist tests/stubtest/wtforms_allowlist.txt
echo "Running stubtest on zope.sqlalchemy"
stubtest zope.sqlalchemy \
--mypy-config-file pyproject.toml \
--allowlist tests/stubtest/zope.sqlalchemy_allowlist.txt