Skip to content

Commit

Permalink
feat(linting): linting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tabbott36 committed Jul 8, 2024
1 parent 8d818c2 commit c253a7b
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 10 deletions.
1 change: 1 addition & 0 deletions frbvoe/cli/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Client User Interface for the FRBVOE package."""
5 changes: 4 additions & 1 deletion frbvoe/cli/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""FRB VOE CLI."""

import click

from frbvoe.cli.voe import voe


Expand All @@ -9,9 +10,11 @@ def cli():
"""FRB VOE Command Line Interface."""
pass


@cli.command("version", help="FRB VOE version.")
def version():
"""FRB VOE version."""
click.echo("VOEvent Tools v0.1.0")

cli.add_command(voe)

cli.add_command(voe)
2 changes: 1 addition & 1 deletion frbvoe/cli/tns.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ def tns():
"--sandbox", help="Set to False when submitting to the live TNS.", show_default=True
)
def send(username, period, sandbox):
"""submit an FRB to the TNS."""
"""Submit an FRB to the TNS."""
click.echo(f"submit FRB to TNS. {username} {period} {sandbox}")
16 changes: 10 additions & 6 deletions frbvoe/cli/voe.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,23 @@

import click


@click.group(name="voe", help="VOEvent Tools.")
def voe():
"""Manage workflow pipelines."""
pass


@voe.command("send", help="Send VOEvent.")
@click.option("--hostname", default="localhost", help="Destination to send the VOE.")
@click.option("--port", default=8098, help="Port to send the VOE.")
@click.option(
"--hostname",
default="localhost",
help="Destination to send the VOE."
"--file",
default="./voe",
type=click.File("r"),
help="VOEvent file.",
show_default=True,
)
@click.option("--port", default=8098, help="Port to send the VOE.")
@click.option("--file", default="./voe",type=click.File("r"), help="VOEvent file.", show_default=True)
def send(hostname, port):
"""Send VOEvent."""
click.echo(f"Send VOEvent.{hostname}:{port}")
click.echo(f"Send VOEvent.{hostname}:{port}")
1 change: 1 addition & 0 deletions frbvoe/models/voe.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

class VOEvent(BaseModel): # BaseSettings
"""VOEvent Object.
Args:
BaseSettings (BaseSettings): Pydantic BaseSettings.
Expand Down
3 changes: 1 addition & 2 deletions frbvoe/utilities/TNSAgent.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,8 +464,7 @@ def search_by_internal_name(self, payload: dict) -> str:
return found_name

def change_prop_period(self, payload: dict) -> bool:
"""Change the end date for the proprietary period for
a previously submitted FRB.
"""Change proprietary period for a previously submitted FRB.
Use cases include:
(1) Extending the proprietary period until the
Expand Down

0 comments on commit c253a7b

Please sign in to comment.