Skip to content

Commit

Permalink
ruff linter fix
Browse files Browse the repository at this point in the history
  • Loading branch information
niklastheman committed May 7, 2024
1 parent 0948d75 commit 138035c
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 8 deletions.
4 changes: 3 additions & 1 deletion fedn/cli/client_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,11 @@ def client_cmd(ctx):
@click.pass_context
def list_clients(ctx, protocol: str, host: str, port: str, token: str = None, n_max: int = None):
"""
return:
Return:
------
- count: number of clients
- result: list of clients
"""
url = get_api_url(protocol=protocol, host=host, port=port, endpoint='clients')
headers = {}
Expand Down
4 changes: 3 additions & 1 deletion fedn/cli/combiner_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,11 @@ def start_cmd(ctx, discoverhost, discoverport, token, name, host, port, fqdn, se
@click.pass_context
def list_combiners(ctx, protocol: str, host: str, port: str, token: str = None, n_max: int = None):
"""
return:
Return:
------
- count: number of combiners
- result: list of combiners
"""
url = get_api_url(protocol=protocol, host=host, port=port, endpoint='combiners')
headers = {}
Expand Down
4 changes: 3 additions & 1 deletion fedn/cli/model_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@ def model_cmd(ctx):
@click.pass_context
def list_models(ctx, protocol: str, host: str, port: str, token: str = None, n_max: int = None):
"""
return:
Return:
------
- count: number of models
- result: list of models
"""
url = get_api_url(protocol=protocol, host=host, port=port, endpoint='models')
headers = {}
Expand Down
4 changes: 3 additions & 1 deletion fedn/cli/package_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,11 @@ def create_cmd(ctx, path, name):
@click.pass_context
def list_packages(ctx, protocol: str, host: str, port: str, token: str = None, n_max: int = None):
"""
return:
Return:
------
- count: number of packages
- result: list of packages
"""
url = get_api_url(protocol=protocol, host=host, port=port, endpoint='packages')
headers = {}
Expand Down
4 changes: 3 additions & 1 deletion fedn/cli/round_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@ def round_cmd(ctx):
@click.pass_context
def list_rounds(ctx, protocol: str, host: str, port: str, token: str = None, n_max: int = None):
"""
return:
Return:
------
- count: number of rounds
- result: list of rounds
"""
url = get_api_url(protocol=protocol, host=host, port=port, endpoint='rounds')
headers = {}
Expand Down
4 changes: 3 additions & 1 deletion fedn/cli/session_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@ def session_cmd(ctx):
@click.pass_context
def list_sessions(ctx, protocol: str, host: str, port: str, token: str = None, n_max: int = None):
"""
return:
Return:
------
- count: number of sessions
- result: list of sessions
"""
url = get_api_url(protocol=protocol, host=host, port=port, endpoint='sessions')
headers = {}
Expand Down
4 changes: 3 additions & 1 deletion fedn/cli/status_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,11 @@ def status_cmd(ctx):
@click.pass_context
def list_statuses(ctx, protocol: str, host: str, port: str, token: str = None, n_max: int = None):
"""
return:
Return:
------
- count: number of statuses
- result: list of statuses
"""
url = get_api_url(protocol=protocol, host=host, port=port, endpoint='statuses')
headers = {}
Expand Down
4 changes: 3 additions & 1 deletion fedn/cli/validation_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,11 @@ def validation_cmd(ctx):
@click.pass_context
def list_validations(ctx, protocol: str, host: str, port: str, token: str = None, n_max: int = None):
"""
return:
Return:
------
- count: number of validations
- result: list of validations
"""
url = get_api_url(protocol=protocol, host=host, port=port, endpoint='validations')
headers = {}
Expand Down

0 comments on commit 138035c

Please sign in to comment.