pintest-cli 0.3.2__tar.gz → 0.3.3__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.
- {pintest_cli-0.3.2 → pintest_cli-0.3.3}/PKG-INFO +1 -1
- {pintest_cli-0.3.2 → pintest_cli-0.3.3}/pintest/cli.py +15 -2
- {pintest_cli-0.3.2 → pintest_cli-0.3.3}/pintest_cli.egg-info/PKG-INFO +1 -1
- {pintest_cli-0.3.2 → pintest_cli-0.3.3}/setup.py +1 -1
- {pintest_cli-0.3.2 → pintest_cli-0.3.3}/README.md +0 -0
- {pintest_cli-0.3.2 → pintest_cli-0.3.3}/pintest/__init__.py +0 -0
- {pintest_cli-0.3.2 → pintest_cli-0.3.3}/pintest/build_mapping_iterative.py +0 -0
- {pintest_cli-0.3.2 → pintest_cli-0.3.3}/pintest/cloud_mapping_db.py +0 -0
- {pintest_cli-0.3.2 → pintest_cli-0.3.3}/pintest/config.py +0 -0
- {pintest_cli-0.3.2 → pintest_cli-0.3.3}/pintest/coverage_mapper.py +0 -0
- {pintest_cli-0.3.2 → pintest_cli-0.3.3}/pintest/git_diff_parser.py +0 -0
- {pintest_cli-0.3.2 → pintest_cli-0.3.3}/pintest/post_commit_hook.py +0 -0
- {pintest_cli-0.3.2 → pintest_cli-0.3.3}/pintest/pre_commit_hook.py +0 -0
- {pintest_cli-0.3.2 → pintest_cli-0.3.3}/pintest/push_cache.py +0 -0
- {pintest_cli-0.3.2 → pintest_cli-0.3.3}/pintest/pytest_plugin.py +0 -0
- {pintest_cli-0.3.2 → pintest_cli-0.3.3}/pintest/range_set.py +0 -0
- {pintest_cli-0.3.2 → pintest_cli-0.3.3}/pintest/test_mapping_db_v2.py +0 -0
- {pintest_cli-0.3.2 → pintest_cli-0.3.3}/pintest/update_mapping.py +0 -0
- {pintest_cli-0.3.2 → pintest_cli-0.3.3}/pintest_cli.egg-info/SOURCES.txt +0 -0
- {pintest_cli-0.3.2 → pintest_cli-0.3.3}/pintest_cli.egg-info/dependency_links.txt +0 -0
- {pintest_cli-0.3.2 → pintest_cli-0.3.3}/pintest_cli.egg-info/entry_points.txt +0 -0
- {pintest_cli-0.3.2 → pintest_cli-0.3.3}/pintest_cli.egg-info/requires.txt +0 -0
- {pintest_cli-0.3.2 → pintest_cli-0.3.3}/pintest_cli.egg-info/top_level.txt +0 -0
- {pintest_cli-0.3.2 → pintest_cli-0.3.3}/setup.cfg +0 -0
- {pintest_cli-0.3.2 → pintest_cli-0.3.3}/tests/__init__.py +0 -0
- {pintest_cli-0.3.2 → pintest_cli-0.3.3}/tests/test_cli_e2e.py +0 -0
- {pintest_cli-0.3.2 → pintest_cli-0.3.3}/tests/test_git_diff_parser.py +0 -0
- {pintest_cli-0.3.2 → pintest_cli-0.3.3}/tests/test_new_feature.py +0 -0
- {pintest_cli-0.3.2 → pintest_cli-0.3.3}/tests/test_range_set.py +0 -0
|
@@ -472,10 +472,23 @@ def cmd_track(args):
|
|
|
472
472
|
|
|
473
473
|
branch = args.branch
|
|
474
474
|
if not branch:
|
|
475
|
+
import subprocess
|
|
475
476
|
try:
|
|
476
|
-
|
|
477
|
+
default_branch = subprocess.run(
|
|
478
|
+
["git", "branch", "--show-current"],
|
|
479
|
+
capture_output=True,
|
|
480
|
+
text=True,
|
|
481
|
+
check=True
|
|
482
|
+
).stdout.strip()
|
|
483
|
+
if not default_branch:
|
|
484
|
+
default_branch = "main"
|
|
485
|
+
except Exception:
|
|
486
|
+
default_branch = "main"
|
|
487
|
+
|
|
488
|
+
try:
|
|
489
|
+
branch = input(f"🌿 Target branch to track [{default_branch}]: ").strip()
|
|
477
490
|
if not branch:
|
|
478
|
-
branch =
|
|
491
|
+
branch = default_branch
|
|
479
492
|
except (KeyboardInterrupt, EOFError):
|
|
480
493
|
print("\n❌ Cancelled")
|
|
481
494
|
sys.exit(1)
|
|
@@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
|
|
|
5
5
|
|
|
6
6
|
setup(
|
|
7
7
|
name="pintest-cli",
|
|
8
|
-
version="0.3.
|
|
8
|
+
version="0.3.3",
|
|
9
9
|
description="Run only the tests affected by your code changes.",
|
|
10
10
|
long_description=long_description,
|
|
11
11
|
long_description_content_type="text/markdown",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|