-
Notifications
You must be signed in to change notification settings - Fork 1k
__all__ to module-level #1441
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
Merged
Merged
__all__ to module-level #1441
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
b2440f4
Uncommented end of file fixer
jamesbraza 754d964
Formatted YAML correctly
jamesbraza d688501
Moved __all__ to top of module
jamesbraza 2b31d70
Check CI ran pre-commit on all files
jamesbraza 2c3305a
Removed 3.10 from pre-commit config that I forgot to generalize
jamesbraza 29f9e4b
Removing __all__ from modules and removed ModbusControlBlock in __all__
jamesbraza 522662d
Added missing space in pre-commit config
jamesbraza da0cdd9
Removed extra TODO comment that was triggering https://github.com/PyC…
jamesbraza 8699951
Removed unused import of mock
jamesbraza 3b933a5
Turns out mock import was used elsewhere, so I added it back in, just…
jamesbraza 9e9e751
Reverting most of pre-commit config changes
jamesbraza 56d750b
Expanded flattened __all__
jamesbraza 673048a
Removed end-of-file-fixer
jamesbraza 496cf61
Reverting files changed by end-of-file-fixer
jamesbraza 0c573e6
Reverting pymodbus/client/serial_asyncio/README.md
jamesbraza 5edc2bc
Removed mock in test.__init__ to direct import
jamesbraza 4576bbd
Reverted entire pre-commit config
jamesbraza 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 hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,21 +1,17 @@ | ||
| """Pymodbus: Modbus Protocol Implementation. | ||
|
|
||
| Released under the the BSD license | ||
| Released under the BSD license | ||
| """ | ||
|
|
||
| __all__ = [ | ||
| "pymodbus_apply_logging_config", | ||
| "__version__", | ||
| "__version_full__", | ||
| ] | ||
|
|
||
| from pymodbus.logging import pymodbus_apply_logging_config | ||
| from pymodbus.version import version | ||
|
|
||
|
|
||
| __version__ = version.short() | ||
| __version_full__ = str(version) | ||
|
|
||
| # --------------------------------------------------------------------------- # | ||
| # Exported symbols | ||
| # --------------------------------------------------------------------------- # | ||
|
|
||
| __all__ = [ | ||
| "pymodbus_apply_logging_config", | ||
| "__version__", | ||
| "__version_full__", | ||
| ] |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Uh oh!
There was an error while loading. Please reload this page.