-
Notifications
You must be signed in to change notification settings - Fork 1k
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
pylint fails with errors about bad-option-value #6691
Comments
Investigating further, I came across old issue #4564 and PR #4577, which added a pylint module to implement
explicitly uses the |
Cirq Cync: likely not a bug in code but an issue in outdated documentation. Suggest fix: update documentation to say run |
Just confirming that running The text implies that one could run I think it's not impossible that other people might run into the same problem when reading that page. To help avoid that, two alternatives come to mind:
I will open a PR for alternative 2 so people can evaluate that idea. |
Noting another issue discussed in today's cirq cynq: we're currently running an older version of pylint because the API changed. We should also review what it would take to update the version of pylint being used. Updating the version of pylint may change what needs to be done for copyright checks. See issue #6351. This means that the first order of business is to revisit #6531 and see what would be required to update the version of pylint used. |
Description of the issue
After a fresh installation of Cirq 1.4.1, running the command
(as described in the dev docs) leads to many errors like this:
This happens with pylint version 2.13.9, which is the version installed from
dev_tools/requirements/deps/pylint.txt
.How to reproduce the issue
I installed Cirq 1.4.1 by cloning the main branch of the GitHub repo, then did the following to get the release tagged with 1.4.1 into a local branch:
Then I followed the instructions in "Setting up an environment", modifying them slightly for my MacOS 13.6.7 environment running Python version 3.10.10. I did the virtualenv installation,
I ran
./check/pytest .
to make sure things looked reasonable; this produced an error involving sympy (which I'm currently investigating) but no other errors, and IMHO, nothing that looked relevant to the particular mypy error being reported in this issue. Then did the following, per instructions:Then I tried running the 3 steps in the section "Continuous integration and local testing". The step for pylint resulted in the following output.
The problem appears to be due to line 58 in
dev_tools/conf/.pylintrc
. There seems to be no pylint option namedwrong-or-nonexistent-copyright-notice
.Cirq version
The text was updated successfully, but these errors were encountered: