Skip to content

Conversation

@bernhardkaindl
Copy link
Collaborator

WIP - For display only!

Extract of the Python3 changes from #5365, only for future reference - as where static analysis has found issues.

Removes 3 scripts that Lin Liu says are not packages and he says can be removed.

Only meant to as a display to see what changes pyright, pytype, and mypy found (with some clear issues, e.g. open2 was removed - and some str/bytes errors), and only below scripts/ (it's already a lot)

bernhardkaindl and others added 2 commits January 16, 2024 22:32
Signed-off-by: Bernhard Kaindl <bernhard.kaindl@cloud.com>
Co-authored-by: Ashwinh <ashwin.h@cloud.com>
Signed-off-by: Bernhard Kaindl <bernhard.kaindl@cloud.com>
rev: v1.8.0
hooks:
- id: mypy
files: ^scripts/(unit_tests|usb_reset.py)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to enable static checker for unit tests?

@@ -0,0 +1,15 @@
# manually derived from mypy'sy stubgen tool:
Copy link
Contributor

@acefei acefei Jan 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As Xapi's build requires xcp-python3-lib https://github.com/xenserver/python-libs/blob/master/xcp/logger.py, could we install it by pip in CI instead of duplicating it for mypy checking?

@bernhardkaindl bernhardkaindl marked this pull request as draft January 23, 2024 10:20
@bernhardkaindl
Copy link
Collaborator Author

obsolete

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants