Skip to content

Commit 0d3d16c

Browse files
authored
use black code style (#84)
* use black code style * make code uniform * Normalize strings *Original code style was enforced due to 79 symbols/line limit.*
1 parent c01eda0 commit 0d3d16c

File tree

14 files changed

+321
-534
lines changed

14 files changed

+321
-534
lines changed

README.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ exec-helpers
1616
:target: https://pypi.python.org/pypi/exec-helpers
1717
.. image:: https://img.shields.io/github/license/python-useful-helpers/exec-helpers.svg
1818
:target: https://raw.githubusercontent.com/python-useful-helpers/exec-helpers/master/LICENSE
19+
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
20+
:target: https://github.com/ambv/black
1921

2022
Execution helpers for simplified usage of subprocess and ssh.
2123
Why another subprocess wrapper and why no clear `paramiko`?

exec_helpers/__init__.py

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
CalledProcessError,
2323
ParallelCallProcessError,
2424
ParallelCallExceptions,
25-
ExecHelperTimeoutError
25+
ExecHelperTimeoutError,
2626
)
2727

2828
from .exec_result import ExecResult
@@ -33,32 +33,30 @@
3333
from .subprocess_runner import Subprocess, SubprocessExecuteAsyncResult # nosec # Expected
3434

3535
__all__ = (
36-
'ExecHelperError',
37-
'ExecCalledProcessError',
38-
'CalledProcessError',
39-
'ParallelCallExceptions',
40-
'ParallelCallProcessError',
41-
'ExecHelperTimeoutError',
42-
'ExecHelper',
43-
'SSHClient',
44-
'SshExecuteAsyncResult',
45-
'SSHAuth',
46-
'Subprocess',
47-
'SubprocessExecuteAsyncResult',
48-
'ExitCodes',
49-
'ExecResult',
36+
"ExecHelperError",
37+
"ExecCalledProcessError",
38+
"CalledProcessError",
39+
"ParallelCallExceptions",
40+
"ParallelCallProcessError",
41+
"ExecHelperTimeoutError",
42+
"ExecHelper",
43+
"SSHClient",
44+
"SshExecuteAsyncResult",
45+
"SSHAuth",
46+
"Subprocess",
47+
"SubprocessExecuteAsyncResult",
48+
"ExitCodes",
49+
"ExecResult",
5050
)
5151

52-
__version__ = '2.0.2'
52+
__version__ = "2.0.2"
5353
__author__ = "Alexey Stepanov"
54-
__author_email__ = 'penguinolog@gmail.com'
54+
__author_email__ = "penguinolog@gmail.com"
5555
__maintainers__ = {
56-
'Alexey Stepanov': 'penguinolog@gmail.com',
57-
'Antonio Esposito': 'esposito.cloud@gmail.com',
58-
'Dennis Dmitriev': 'dis-xcom@gmail.com',
56+
"Alexey Stepanov": "penguinolog@gmail.com",
57+
"Antonio Esposito": "esposito.cloud@gmail.com",
58+
"Dennis Dmitriev": "dis-xcom@gmail.com",
5959
}
60-
__url__ = 'https://github.com/python-useful-helpers/exec-helpers'
61-
__description__ = (
62-
"Execution helpers for simplified usage of subprocess and ssh."
63-
)
60+
__url__ = "https://github.com/python-useful-helpers/exec-helpers"
61+
__description__ = "Execution helpers for simplified usage of subprocess and ssh."
6462
__license__ = "Apache License, Version 2.0"

exec_helpers/_log_templates.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020

2121
CMD_WAIT_ERROR = (
2222
"Wait for {result.cmd!r} during {timeout!s}s: no return code!\n"
23-
'\tSTDOUT:\n'
24-
'{result.stdout_brief}\n'
25-
'\tSTDERR"\n'
26-
'{result.stderr_brief}'
23+
"\tSTDOUT:\n"
24+
"{result.stdout_brief}\n"
25+
"\tSTDERR:\n"
26+
"{result.stderr_brief}"
2727
)

0 commit comments

Comments
 (0)