-
Notifications
You must be signed in to change notification settings - Fork 59
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
ci: updates some linting rules #73
Conversation
- mypy did not run in CI at all - black was not run on the docs folder I also updated the rules in the Makefile to respect the currently active Python environment (by prepending the `python -m`). This was also done in Qiskit Nature a while back.
More to come from Elena soon... 🙂
parameter_sets: Sequence[set[Parameter]], | ||
parameter_sets: Sequence[Sequence[Parameter]], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seeing this again here I finally commented maybe this needs further investigation. Given its called parameter_sets and a set having unique values in it, unlike Sequence - maybe it has never really been treated as a set or needed to be one. If it were assumed so and this now has duplicates, which maybe a test never covered (CI passes). @a-matsuo any comment/thought here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for getting CI going with mypy off the ground with this.
Summary
I also updated the rules in the Makefile to respect the currently active Python environment (by prepending the
python -m
). This was also done in Qiskit Nature a while back.Details and comments