-
Notifications
You must be signed in to change notification settings - Fork 181
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
Add type hints and refactor most *Common methods to be static or functional #166
Closed
Closed
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
c088951
Support Python 3.10
gmarmstrong 851124e
Upgrade from PySide2 (Qt 5) to PySide6 (Qt 6)
gmarmstrong bd33f16
Fix TypeError in ConvertThread.run
gmarmstrong fc8d2af
Unwrap QApplication
gmarmstrong 16dfa47
Fix circular import
gmarmstrong bdc08d7
Fix missing SysTray
gmarmstrong 616ba55
Add more type annotations
gmarmstrong 3006537
Refactor GlobalCommon methods to be static
gmarmstrong 42a1f01
Access methods statically in dangerzone.gui.common
gmarmstrong 17ff3a8
Refactor static methods as functions in util module
gmarmstrong 815c2ef
Fix typo in CONTAINER_COMMAND value
gmarmstrong 4978ab7
Add typing extensions to developer dependencies for mypy support
gmarmstrong 2da6ce0
Make GlobalCommon completely static except for __init__
gmarmstrong bbce13d
Use pathlib internally in dzutil
gmarmstrong 7eb1023
Inline container.exec into container.exec_container
gmarmstrong 2f48e8a
Remove unused dangerzone.gui.common.Alert
gmarmstrong 519b8fd
Remove all instantiations of GlobalCommon, move Settings to GuiCommon
gmarmstrong ca5d175
Remove GlobalCommon, convert its methods (all static) to functions
gmarmstrong ba51647
Delete global_common.py, move its functions to dzutil
gmarmstrong 8eefbef
Run `black dangerzone` to fix up style
gmarmstrong 4fd233e
Undo accidental tweak of platform_args
gmarmstrong 52e5154
Convert relative imports to absolute
gmarmstrong c655d3a
Have GuiCommon subclass Common
gmarmstrong 1042c51
Move is_container_installed and install_container to container module
gmarmstrong 801d98f
Expand mypy compliance, ignore unsupported packages
gmarmstrong ce95dff
Don't hardcode "Docker" in help text
gmarmstrong 4e92a22
Use xdg.BaseDirectory in _find_pdf_viewers
gmarmstrong File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Importing directly to make the code easier to read. This is also done in the securedrop-client.
This refactor also needs to be propagated.