Skip to content
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

Update copyright checker and switch to pylint-3 #1439

Merged
merged 6 commits into from
Oct 7, 2024

Conversation

pavoljuhas
Copy link
Contributor

@pavoljuhas pavoljuhas commented Oct 5, 2024

  • Bump up to the latest pylint-3.3.1

  • Adjust pylint_copyright_checker for the pylint-3 API
    Follow the examples/custom_raw.py in the pylint repository.

  • Refresh development dependencies

  • Temporarily disable rules that started failing in pylint-3

Cherry-picked from quantumlib/Cirq#6751
Related to #1440

Allow patch version updates at fixed minor version 3.3.
Follow the `examples/custom_raw.py` in the pylint repository.
Executed   bash dev_tools/requirements/re-pip-compile-in-docker.sh
@pavoljuhas
Copy link
Contributor Author

@pavoljuhas pavoljuhas marked this pull request as ready for review October 5, 2024 01:20
@mpharrigan
Copy link
Collaborator

what's the deal with the abstract-class-instantiated. Those classes aren't abstract. We're instantiating them

@pavoljuhas
Copy link
Contributor Author

what's the deal with the abstract-class-instantiated. Those classes aren't abstract. We're instantiating them

I checked one of such instances - Bloq.signature is an abstract property which is replaced by attrs field, but not redefined in its CompositeBloq subclass. I suspect pylint checks for a property named "signature", but type(CompositeBloq.signature) is member_descriptor, not property.

@pavoljuhas pavoljuhas merged commit b0ef177 into main Oct 7, 2024
8 checks passed
shab5 pushed a commit that referenced this pull request Oct 7, 2024
* Bump up to the latest pylint-3.3.1

* Adjust `pylint_copyright_checker` for the pylint-3 API
  Follow the `examples/custom_raw.py` in the pylint repository.

* Refresh development dependencies

* Temporarily disable rules that started failing in pylint-3

Cherry-picked from quantumlib/Cirq#6751
Related to #1440
@mpharrigan mpharrigan deleted the u/juhas/update-pylint-copyright-checker branch October 11, 2024 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants