Skip to content

Commit

Permalink
Update linting and tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
markspec authored and tasansal committed Aug 25, 2023
1 parent 85505fe commit 7e49ff6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/mdio/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
import click_params

import mdio
from mdio.commands.utility import copy
from mdio.commands.utility import info

from mdio.commands.utility import copy, info

plugin_folder = os.path.join(os.path.dirname(__file__), "commands")

Expand Down
3 changes: 2 additions & 1 deletion src/mdio/commands/utility.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
"""Dataset CLI Plugin."""

try:
from typing import Optional

import click
import click_params

import mdio
from typing import Optional
except SystemError:
pass

Expand Down
4 changes: 2 additions & 2 deletions tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def test_main_succeeds(runner: CliRunner, segy_input: str, zarr_tmp: Path) -> No
@pytest.mark.dependency(depends=["test_main_succeeds"])
def test_main_info_succeeds(runner: CliRunner, zarr_tmp: Path) -> None:
"""It exits with a status code of zero."""
cli_args = ["utility", "info"]
cli_args = ["info"]
cli_args.extend(["-i", str(zarr_tmp)])

result = runner.invoke(__main__.main, args=cli_args)
Expand All @@ -41,7 +41,7 @@ def test_main_info_succeeds(runner: CliRunner, zarr_tmp: Path) -> None:
@pytest.mark.dependency(depends=["test_main_succeeds"])
def test_main_copy_succeeds(runner: CliRunner, zarr_tmp: Path, zarr_tmp2: Path) -> None:
"""It exits with a status code of zero."""
cli_args = ["utility", "copy"]
cli_args = ["copy"]
cli_args.extend(["-i", str(zarr_tmp)])
cli_args.extend(["-o", str(zarr_tmp2)])

Expand Down

0 comments on commit 7e49ff6

Please sign in to comment.