Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelldls committed Oct 8, 2024
1 parent 3eaf01f commit cbe0dd8
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 10 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,3 @@ and perform the following::

pip install edge-containers-cli
ec --version

2 changes: 1 addition & 1 deletion docs/developer/explanations/decisions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ Below is the list of our current ADRs.
:maxdepth: 1
:glob:

decisions/*
decisions/*
2 changes: 1 addition & 1 deletion docs/developer/how-to/make-release.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ To make a new release, please follow this checklist:
Note that tagging and pushing to the main branch has the same effect except that
you will not get the option to edit the release notes.

.. _release: https://github.com/epics-containers/edge-containers-cli/releases
.. _release: https://github.com/epics-containers/edge-containers-cli/releases
2 changes: 1 addition & 1 deletion docs/images/dls-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/edge_containers_cli/autocomplete.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def force_plain_completion() -> list[str]:
def running_svc(ctx: typer.Context) -> list[str]:
autocomplete_backend_init(ctx)
try:
return ec_backend.commands._running_services()
return ec_backend.commands._running_services() # noqa: SLF001
except (CommandError, ShellError) as e:
typer.echo(f"\n{e}", nl=False, err=True)
return []
Expand All @@ -90,7 +90,7 @@ def running_svc(ctx: typer.Context) -> list[str]:
def all_svc(ctx: typer.Context) -> list[str]:
autocomplete_backend_init(ctx)
try:
return ec_backend.commands._all_services()
return ec_backend.commands._all_services() # noqa: SLF001
except (CommandError, ShellError) as e:
typer.echo(f"\n{e}", nl=False, err=True)
return []
6 changes: 3 additions & 3 deletions src/edge_containers_cli/cmds/monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def __init__(self, commands, running_only: bool) -> None:

self.commands = commands
self.running_only = running_only
self.iocs_df = self.commands._get_services(self.running_only)
self.iocs_df = self.commands._get_services(self.running_only) # noqa: SLF001

self._polling = True
self._poll_thread = Thread(target=self._poll_services)
Expand All @@ -244,7 +244,7 @@ def _poll_services(self):
while self._polling:
# ioc list data table update loop
print()
self.iocs_df = self.commands._get_services(self.running_only)
self.iocs_df = self.commands._get_services(self.running_only) # noqa: SLF001
sleep(1.0)

def stop(self):
Expand Down Expand Up @@ -480,7 +480,7 @@ def action_ioc_logs(self) -> None:
ready = self._get_highlighted_cell("ready") == "True"

if ready:
command = self.commands._get_logs
command = self.commands._get_logs # noqa: SLF001
self.push_screen(LogsScreen(command, service_name))

def action_sort(self, col_name: str = "") -> None:
Expand Down
2 changes: 1 addition & 1 deletion src/edge_containers_cli/cmds/monitor.tcss
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ LogsScreen {
align: center middle;
height: auto;
width: auto;
}
}

0 comments on commit cbe0dd8

Please sign in to comment.