Skip to content

Commit

Permalink
support python -m mddatasetbuilder (#218)
Browse files Browse the repository at this point in the history
Signed-off-by: Jinzhe Zeng <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
njzjz and pre-commit-ci[bot] authored May 25, 2024
1 parent 132cca8 commit da3a0ab
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mddatasetbuilder/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
"""Module entry point."""

from .datasetbuilder import _commandline

if __name__ == "__main__":
_commandline()
9 changes: 9 additions & 0 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
"""Test command line interface."""

import subprocess as sp
import sys


def test_module():
"""Test python -m mddatasetbuilder."""
sp.check_output([sys.executable, "-m", "mddatasetbuilder", "-h"])

0 comments on commit da3a0ab

Please sign in to comment.