issues
search
canonical
/
sdcore-nms-k8s-operator
A charmed operator for SD-Core NMS
https://charmhub.io/sdcore-nms-k8s
Apache License 2.0
2
stars
1
forks
source link
chore: replace mypy with pyright
#274
Closed
gruyaume
closed
3 months ago
gruyaume
commented
3 months ago
Description
Replace mypy with pyright for static analysis
Rationale
Pyright is now the default static checker in charms.
It allows us to get rid of the type ignores comment we had for charm library imports.
It tends to be faster though this does not matter as much.
Reference
https://github.com/microsoft/pyright
https://github.com/canonical/charmcraft/blob/main/charmcraft/templates/init-kubernetes/tox.ini.j2
Checklist:
[ ] My code follows the
style guidelines
of this project
[ ] I have performed a self-review of my own code
[ ] I have made corresponding changes to the documentation
[ ] I have added tests that validate the behaviour of the software
[ ] I validated that new and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules
[ ] I have bumped the version of the library
Description
Replace mypy with pyright for static analysis
Rationale
Reference
Checklist: