Skip to content

Commit

Permalink
coverage - exclude code guarded by if TYPE_CHECKING (#6753)
Browse files Browse the repository at this point in the history
Such code is only used for mypy type-checking session.

Also add a temporary pin on quil to avoid source only 0.13.0,
which does not install without rust toolchain.

Related to #6754
  • Loading branch information
pavoljuhas authored Oct 8, 2024
1 parent 769ad50 commit 9520466
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ RUN rm -f /usr/bin/python \
&& ln -s /usr/bin/python3 /usr/bin/python
#cirq stable image
FROM cirq_base AS cirq_stable
RUN pip3 install cirq
# TODO: #6754 - adjust or remove the quil pin
RUN pip3 install cirq "quil<0.13.0"

##cirq pre_release image
FROM cirq_base AS cirq_pre_release
RUN pip3 install cirq~=1.0.dev
# TODO: #6754 - adjust or remove the quil pin
RUN pip3 install cirq~=1.0.dev "quil<0.13.0"
3 changes: 3 additions & 0 deletions cirq-rigetti/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
pyquil>=4.11.0,<5.0.0

# TODO: #6754 - adjust or remove if binary wheels are provided again
quil<0.13.0

# TODO - remove once pyquil requires qcs-sdk-python >= 0.20.1
qcs-sdk-python>=0.20.1
6 changes: 5 additions & 1 deletion dev_tools/conf/.coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,9 @@
# Failure to do so will result in false positives.
include = ./*

omit =
omit =
benchmarks/*

[report]
exclude_also =
if TYPE_CHECKING:

0 comments on commit 9520466

Please sign in to comment.