Skip to content

Commit df49f7d

Browse files
committed
exclude cirq-rigetti from typecheck
1 parent af986e7 commit df49f7d

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

check/mypy

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ CONFIG_FILE='mypy.ini'
1717
read -r -a CIRQ_PACKAGES < \
1818
<(env PYTHONPATH=. python dev_tools/modules.py list --mode package-path)
1919

20+
# TODO(#7297) clean up after cirq-rigetti removal
21+
for i in "${!CIRQ_PACKAGES[@]}"; do
22+
if [[ "${CIRQ_PACKAGES[i]}" == cirq-rigetti* ]]; then
23+
unset "CIRQ_PACKAGES[i]"
24+
fi
25+
done
26+
2027
echo -e -n "\033[31m"
2128
mypy --config-file=dev_tools/conf/$CONFIG_FILE "$@" "${CIRQ_PACKAGES[@]}" dev_tools examples
2229
result=$?

dev_tools/conf/mypy.ini

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ warn_redundant_casts = true
99
[mypy-cirq.*]
1010
no_implicit_reexport = true
1111

12+
# TODO(#7297) clean up after cirq-rigetti removal
13+
[mypy-cirq_rigetti]
14+
follow_imports = silent
15+
ignore_missing_imports = true
16+
1217
[mypy-__main__]
1318
follow_imports = silent
1419
ignore_missing_imports = true

0 commit comments

Comments
 (0)