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

Fix formatting findings sitemgr #44

Open
wants to merge 5 commits into
base: py3
Choose a base branch
from

Conversation

debbiedub
Copy link
Contributor

What I have done here is to enable the static code checks (flake8 and mypy) that are now available, and started addressing the simple weaknesses found.

There are still some more complex weaknesses such as Cyclomatic complexity too high, that I have not addressed and the adding of type hints, I have so far only done in the trivial cases. In any case, I consider this an improvement and I may continue the work (in this module or in other modules) at some other time.

Also fix some probless found by this change
and some more methods to fulfil the type annotation.

This created two new warnings for the case where the code assumes that
rec['name'] is bytes and not str.  I didn't address those since I want
this to be a low-risk change.
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.

1 participant