Skip to content

Exclude all setup.py files from typecheck #6690

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 31, 2024

Conversation

pavoljuhas
Copy link
Collaborator

@pavoljuhas pavoljuhas commented Jul 31, 2024

setup.py files define distributions of cirq and cirq subpackages.
There is no much value to enforce type annotations in their code.

Also clean up ineffective exclusion pattern for cirq-rigetti (related to #6661).

Fixes #6687

setup.py files specify distribution of cirq and cirq subpackages.
There is no much value to enforce type annotations in their code.

Fixes quantumlib#6687
@CirqBot CirqBot added the Size: XS <10 lines changed label Jul 31, 2024
@pavoljuhas pavoljuhas marked this pull request as ready for review July 31, 2024 05:18
@pavoljuhas pavoljuhas requested review from vtomole and a team as code owners July 31, 2024 05:18
@pavoljuhas pavoljuhas requested a review from dabacon July 31, 2024 05:18
The pattern was redundant as it did not match any file.
Copy link

codecov bot commented Jul 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.82%. Comparing base (c58a05c) to head (facd1df).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6690   +/-   ##
=======================================
  Coverage   97.82%   97.82%           
=======================================
  Files        1074     1074           
  Lines       92118    92118           
=======================================
  Hits        90116    90116           
  Misses       2002     2002           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pavoljuhas pavoljuhas enabled auto-merge (squash) July 31, 2024 16:54
@pavoljuhas pavoljuhas merged commit 94f1e09 into quantumlib:main Jul 31, 2024
32 checks passed
@pavoljuhas pavoljuhas deleted the no-typecheck-for-setup.py branch January 24, 2025 19:33
BichengYing pushed a commit to BichengYing/Cirq that referenced this pull request Jun 20, 2025
setup.py files define distributions of cirq and cirq subpackages.
There is no much value to enforce type annotations in their code.

Also clean up ineffective exclusion pattern for cirq-rigetti (related to quantumlib#6661).

Fixes quantumlib#6687
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Size: XS <10 lines changed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mypy fails with error about duplicate module named "setup.py"
3 participants