-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: include Python 3.10 (linux only) (#560)
* tests: include Python 3.10 * chore: bump pre-commit and add some checks * style: fix some flake8 suggestions * style: improve mypy compliance a bit * ci: only run linux 3.10 for now * fix: restore pytest
- Loading branch information
Showing
28 changed files
with
228 additions
and
138 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,7 +37,7 @@ | |
""" | ||
|
||
# Avoids a circular import error later | ||
import plumbum.path | ||
import plumbum.path # noqa: F401 | ||
from plumbum.commands import ( | ||
BG, | ||
ERROUT, | ||
|
@@ -58,6 +58,30 @@ | |
__author__ = "Tomer Filiba ([email protected])" | ||
__version__ = version | ||
|
||
__all__ = ( | ||
"BG", | ||
"ERROUT", | ||
"FG", | ||
"NOHUP", | ||
"RETCODE", | ||
"TEE", | ||
"TF", | ||
"CommandNotFound", | ||
"ProcessExecutionError", | ||
"ProcessLineTimedOut", | ||
"ProcessTimedOut", | ||
"BaseRemoteMachine", | ||
"PuttyMachine", | ||
"SshMachine", | ||
"local", | ||
"LocalPath", | ||
"Path", | ||
"RemotePath", | ||
"__author__", | ||
"__version__", | ||
"cmd", | ||
) | ||
|
||
# =================================================================================================== | ||
# Module hack: ``from plumbum.cmd import ls`` | ||
# =================================================================================================== | ||
|
@@ -92,3 +116,8 @@ def __getattr__(self, name): | |
del sys | ||
del ModuleType | ||
del LocalModule | ||
|
||
|
||
def __dir__(): | ||
"Support nice tab completion" | ||
return __all__ |
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
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
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.