fast-dev-cli 0.25.8__tar.gz → 0.25.9__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {fast_dev_cli-0.25.8 → fast_dev_cli-0.25.9}/PKG-INFO +1 -1
- fast_dev_cli-0.25.9/fast_dev_cli/__init__.py +1 -0
- {fast_dev_cli-0.25.8 → fast_dev_cli-0.25.9}/fast_dev_cli/cli.py +7 -2
- {fast_dev_cli-0.25.8 → fast_dev_cli-0.25.9}/pyproject.toml +1 -1
- fast_dev_cli-0.25.8/fast_dev_cli/__init__.py +0 -1
- {fast_dev_cli-0.25.8 → fast_dev_cli-0.25.9}/LICENSE +0 -0
- {fast_dev_cli-0.25.8 → fast_dev_cli-0.25.9}/README.md +0 -0
- {fast_dev_cli-0.25.8 → fast_dev_cli-0.25.9}/fast_dev_cli/__main__.py +0 -0
- {fast_dev_cli-0.25.8 → fast_dev_cli-0.25.9}/fast_dev_cli/py.typed +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.25.9"
|
|
@@ -1658,7 +1658,9 @@ def _should_run_test_script(path: Path = Path("scripts")) -> Path | None:
|
|
|
1658
1658
|
return None
|
|
1659
1659
|
|
|
1660
1660
|
|
|
1661
|
-
def test(
|
|
1661
|
+
def test(
|
|
1662
|
+
dry: bool, ignore_script: bool = False, files: list[Path] | None = None
|
|
1663
|
+
) -> None:
|
|
1662
1664
|
cwd = Path.cwd()
|
|
1663
1665
|
root = Project.get_work_dir(cwd=cwd, allow_cwd=True)
|
|
1664
1666
|
script_dir = root / "scripts"
|
|
@@ -1672,6 +1674,8 @@ def test(dry: bool, ignore_script: bool = False) -> None:
|
|
|
1672
1674
|
cmd = f"cd {_quote_shell_arg(root)} && " + cmd
|
|
1673
1675
|
else:
|
|
1674
1676
|
cmd = 'coverage run -m pytest -s && coverage report --omit="tests/*" -m'
|
|
1677
|
+
if files:
|
|
1678
|
+
cmd = "pytest -s " + " ".join(i.as_posix() for i in files)
|
|
1675
1679
|
if not is_venv() or not check_call("coverage --version"):
|
|
1676
1680
|
sep = " && "
|
|
1677
1681
|
prefix = f"{tool} run " if (tool := Project.get_manage_tool()) else ""
|
|
@@ -1681,11 +1685,12 @@ def test(dry: bool, ignore_script: bool = False) -> None:
|
|
|
1681
1685
|
|
|
1682
1686
|
@cli.command(name="test")
|
|
1683
1687
|
def coverage_test(
|
|
1688
|
+
files: Annotated[list[Path] | None, typer.Argument()] = None,
|
|
1684
1689
|
dry: bool = DryOption,
|
|
1685
1690
|
ignore_script: bool = Option(False, "--ignore-script", "-i"),
|
|
1686
1691
|
) -> None:
|
|
1687
1692
|
"""Run unittest by pytest and report coverage"""
|
|
1688
|
-
return test(dry, ignore_script)
|
|
1693
|
+
return test(dry, ignore_script, files=files)
|
|
1689
1694
|
|
|
1690
1695
|
|
|
1691
1696
|
def _not_a_distribution() -> bool:
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.25.8"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|