Skip to content

Commit

Permalink
PR minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lucekdudek committed Feb 1, 2023
1 parent eb30e93 commit b944572
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
4 changes: 1 addition & 3 deletions goth/api_monitor/api_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,7 @@ def content(self) -> str:
return self.http_response.content.decode("utf-8")

def __str__(self) -> str:
return (
f"[response ({self.status_code})] {self.request.header_str}; body: {self.content}"
)
return f"[response ({self.status_code})] {self.request.header_str}; body: {self.content}"


class APIError(APIEvent):
Expand Down
2 changes: 1 addition & 1 deletion goth/runner/probe/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ async def run_command_on_host(
command: str,
env: Optional[Mapping[str, str]] = None,
command_timeout: float = 300,
) -> AsyncIterator[Tuple[asyncio.Task, PatternMatchingEventMonitor, process.ProcessMonitor],]:
) -> AsyncIterator[Tuple[asyncio.Task, PatternMatchingEventMonitor, process.ProcessMonitor]]:
"""Run `command` on host in given `env` and with optional `timeout`.
The command is run in the environment extending `env` with variables needed
Expand Down
18 changes: 9 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,16 @@ max-line-length = 100
extend-ignore = [
"E203", # See https://github.com/PyCQA/pycodestyle/issues/373
"E231", # black ignores this rule when formatting
"D100", # No docs for public module https://github.com/golemfactory/goth/issues/606
"D101", # No docs for public class https://github.com/golemfactory/goth/issues/606
"D102", # No docs for public method https://github.com/golemfactory/goth/issues/606
"D104", # No docs for public package https://github.com/golemfactory/goth/issues/606
"D105", # No docs for magic method https://github.com/golemfactory/goth/issues/606
"D107", # No docs for __init__ https://github.com/golemfactory/goth/issues/606
"D100", # No docs for public module: to be fixed by https://github.com/golemfactory/goth/issues/606
"D101", # No docs for public class: to be fixed by https://github.com/golemfactory/goth/issues/606
"D102", # No docs for public method: to be fixed by https://github.com/golemfactory/goth/issues/606
"D104", # No docs for public package: to be fixed by https://github.com/golemfactory/goth/issues/606
"D105", # No docs for magic method: to be fixed by https://github.com/golemfactory/goth/issues/606
"D107", # No docs for __init__: to be fixed by https://github.com/golemfactory/goth/issues/606
"D202", # We prefer whitelines after docstrings
"D400", # First line should end with a period https://github.com/golemfactory/goth/issues/606
"D403", # First word of the first line should be properly capitalize https://github.com/golemfactory/goth/issues/606
"F405", # Star imports https://github.com/golemfactory/goth/issues/607
"D400", # First line should end with a period: to be fixed by https://github.com/golemfactory/goth/issues/606
"D403", # First word of the first line should be properly capitalize: to be fixed by https://github.com/golemfactory/goth/issues/606
"F405", # Star imports: to be fixed by https://github.com/golemfactory/goth/issues/607

]
exclude = [
Expand Down

0 comments on commit b944572

Please sign in to comment.