Virtual Python Environment builder
This report summarizes scanner evidence for pypa/virtualenv, a Python project with 5,054 GitHub stars. SynthScan examined 26,113 lines of code across 233 source files, recording 648 pattern matches distributed across 12 syntactic categories. The legacy adjusted pattern signal is 27.5 (Elevated pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 340 finding(s).
Are imports declared and package/API names verified? 204 finding(s).
Are wrappers, guards, and repeated structures necessary? 407 finding(s).
Which changes need focused human review? 648 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 648 distinct pattern matches across 12 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tasks/upgrade_wheels.py | 290 | def _support_table_from_existing_init() -> OrderedDict[str, OrderedDict[str, str]]: | STRING |
| LOW | tasks/make_zipapp.py | 63 | def get_wheels_for_support_versions( | CODE |
| LOW | tasks/__main__zipapp.py | 81 | def _register_distutils_finder(self) -> None: # ruff:ignore[complex-structure] | CODE |
| LOW | tasks/__main__zipapp.py | 147 | def versioned_distribution_class() -> type: | CODE |
| LOW | tests/conftest.py | 56 | def pytest_collection_modifyitems(config, items) -> None: | CODE |
| LOW | tests/conftest.py | 141 | def _check_cwd_not_changed_by_test(): | CODE |
| LOW | tests/conftest.py | 150 | def _ensure_py_info_cache_empty(session_app_data): | CODE |
| LOW | tests/unit/test_run.py | 46 | def test_invalid_discovery_method_via_env(monkeypatch: pytest.MonkeyPatch) -> None: | CODE |
| LOW⚡ | tests/unit/test_conftest.py | 43 | def test_shard_selects_every_nth_test_id( | CODE |
| LOW⚡ | tests/unit/test_conftest.py | 50 | def test_shard_reports_deselected(collect: Callable[[str], pytest.RunResult]) -> None: | CODE |
| LOW⚡ | tests/unit/test_conftest.py | 55 | def test_shard_rejects_invalid_spec(collect: Callable[[str], pytest.RunResult], value: str) -> None: | CODE |
| LOW | tests/unit/test_util.py | 32 | def test_safe_delete_removes_read_only_files(tmp_path: Path) -> None: | CODE |
| LOW | tests/unit/test_util.py | 46 | def test_safe_delete_missing_path_is_noop(tmp_path: Path) -> None: | CODE |
| LOW | tests/unit/test_util.py | 51 | def test_safe_delete_surfaces_undeletable_entries(tmp_path: Path) -> None: | CODE |
| LOW | tests/unit/test_util.py | 62 | def test_safe_delete_raises_the_original_error_not_a_retry_failure(tmp_path: Path) -> None: | CODE |
| LOW | tests/unit/test_util.py | 77 | def test_safe_delete_keeps_the_other_mode_bits_when_clearing_read_only(tmp_path: Path) -> None: | CODE |
| LOW | tests/unit/test_util.py | 97 | def test_replace_dangling_symlink( | CODE |
| LOW | tests/unit/test_util.py | 118 | def test_reentrant_file_lock_is_thread_safe(tmp_path) -> None: | CODE |
| LOW | tests/unit/test_util.py | 144 | def test_no_override_returns_cache_dir(self, monkeypatch: pytest.MonkeyPatch) -> None: | CODE |
| LOW | tests/unit/test_util.py | 166 | def test_no_migration_when_old_missing(self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None: | CODE |
| LOW | tests/unit/test_util.py | 177 | def test_no_migration_when_new_exists(self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None: | CODE |
| LOW | tests/unit/test_util.py | 191 | def test_same_dir_returns_immediately(self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None: | CODE |
| LOW | tests/unit/test_util.py | 199 | def test_fallback_on_migration_error(self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None: | CODE |
| LOW | tests/unit/test_util.py | 217 | def test_symlink_app_data_survives_migration( | CODE |
| LOW | tests/unit/test_util.py | 255 | def test_zipapp_read_returns_payload_from_entry_inside_root(fake_zipapp_root: Path) -> None: | CODE |
| LOW | tests/unit/test_util.py | 267 | def test_zipapp_read_rejects_path_outside_root(fake_zipapp_root: Path, parts: tuple[str, ...]) -> None: | CODE |
| LOW | tests/unit/seed/embed/test_base_embed.py | 43 | def test_wheel_cli_flags_do_nothing( | CODE |
| LOW | tests/unit/seed/embed/test_base_embed.py | 59 | def test_bundled_seeder_reports_reason_below_floor( | CODE |
| LOW⚡ | tests/unit/seed/embed/test_base_embed.py | 70 | def test_bundled_seeder_has_no_reason_on_oldest_supported( | CODE |
| LOW⚡ | tests/unit/seed/embed/test_base_embed.py | 76 | def test_base_seeder_never_blocks(at_version: Callable[[int, int], MagicMock]) -> None: | CODE |
| LOW⚡ | tests/unit/seed/embed/test_base_embed.py | 80 | def test_selection_surfaces_the_seeder_reason(tmp_path: Path, mocker: MockerFixture) -> None: | CODE |
| LOW⚡ | tests/unit/seed/embed/test_base_embed.py | 86 | def test_no_seed_bypasses_capability_check(tmp_path: Path, mocker: MockerFixture) -> None: | CODE |
| LOW | tests/unit/seed/embed/test_pip_invoke.py | 17 | def test_base_bootstrap_via_pip_invoke(tmp_path, coverage_env, mocker, current_fastest, no) -> None: | CODE |
| LOW | …ts/unit/seed/embed/test_bootstrap_link_via_app_data.py | 30 | def test_seed_link_via_app_data(tmp_path, coverage_env, current_fastest, copies) -> None: | CODE |
| LOW | …ts/unit/seed/embed/test_bootstrap_link_via_app_data.py | 155 | def test_base_bootstrap_link_via_app_data_not_writable(tmp_path, current_fastest) -> None: | CODE |
| LOW | …ts/unit/seed/embed/test_bootstrap_link_via_app_data.py | 163 | def test_populated_read_only_cache_and_symlinked_app_data(tmp_path, current_fastest, temp_app_data) -> None: | CODE |
| LOW | …ts/unit/seed/embed/test_bootstrap_link_via_app_data.py | 189 | def test_populated_read_only_cache_and_copied_app_data(tmp_path, current_fastest, temp_app_data) -> None: | CODE |
| LOW⚡ | …ts/unit/seed/embed/test_bootstrap_link_via_app_data.py | 215 | def test_base_bootstrap_link_via_app_data_no(tmp_path, pkg) -> None: | CODE |
| LOW⚡ | …ts/unit/seed/embed/test_bootstrap_link_via_app_data.py | 224 | def test_app_data_parallel_ok(tmp_path) -> None: | CODE |
| LOW⚡ | …ts/unit/seed/embed/test_bootstrap_link_via_app_data.py | 230 | def test_app_data_parallel_fail(tmp_path: Path, mocker: MockerFixture) -> None: | CODE |
| LOW | …ts/unit/seed/embed/test_bootstrap_link_via_app_data.py | 263 | def test_safe_extract_zip_allows_normal_entry(tmp_path: Path) -> None: | CODE |
| LOW | …ts/unit/seed/embed/test_bootstrap_link_via_app_data.py | 275 | def test_safe_extract_zip_rejects_parent_traversal(tmp_path: Path) -> None: | CODE |
| LOW | …ts/unit/seed/embed/test_bootstrap_link_via_app_data.py | 294 | def test_safe_extract_zip_rejects_absolute_entry(tmp_path: Path, entry: str) -> None: | CODE |
| LOW | tests/unit/seed/wheels/test_acquire.py | 30 | def test_pip_wheel_env_run_could_not_find(session_app_data, mocker) -> None: | CODE |
| LOW | tests/unit/seed/wheels/test_acquire.py | 36 | def test_download_wheel_bad_output(mocker, for_py_version, session_app_data) -> None: | CODE |
| LOW | tests/unit/seed/wheels/test_acquire.py | 62 | def test_download_wheel_not_found_raises(mocker, for_py_version, session_app_data) -> None: | CODE |
| LOW | tests/unit/seed/wheels/test_acquire.py | 106 | def test_download_wheel_python_io_encoding(mocker, for_py_version, session_app_data) -> None: | CODE |
| LOW | tests/unit/seed/wheels/test_acquire.py | 119 | def test_download_wheel_verifies_digest(mocker, for_py_version, session_app_data) -> None: | CODE |
| LOW | tests/unit/seed/wheels/test_acquire.py | 137 | def test_download_wheel_skips_digest_check_for_custom_index(mocker, for_py_version, session_app_data, env_var) -> None: | CODE |
| LOW | tests/unit/seed/wheels/test_acquire.py | 163 | def test_get_wheel_download_called(mocker, for_py_version, session_app_data, downloaded_wheel, version) -> None: | CODE |
| LOW | tests/unit/seed/wheels/test_acquire.py | 174 | def test_get_wheel_download_not_called(mocker, for_py_version, session_app_data, downloaded_wheel, version) -> None: | CODE |
| LOW | tests/unit/seed/wheels/test_acquire.py | 187 | def test_get_wheel_falls_back_to_bundle_when_unverified( | CODE |
| LOW | tests/unit/seed/wheels/test_acquire.py | 198 | def test_get_wheel_unverified_pinned_version_fails( | CODE |
| LOW | tests/unit/seed/wheels/test_acquire.py | 207 | def test_get_wheel_download_cached( | CODE |
| LOW | tests/unit/seed/wheels/test_acquire.py | 261 | def test_download_wheel_rejects_bad_distribution(distribution: str, session_app_data) -> None: | CODE |
| LOW | tests/unit/seed/wheels/test_acquire.py | 275 | def test_download_wheel_rejects_bad_version_spec(version_spec: str, session_app_data, mocker: MockerFixture) -> None: | CODE |
| LOW | tests/unit/seed/wheels/test_periodic_update.py | 96 | def test_pick_periodic_update(tmp_path, mocker, for_py_version) -> None: | CODE |
| LOW | tests/unit/seed/wheels/test_periodic_update.py | 126 | def test_periodic_update_stops_at_current(mocker, session_app_data, for_py_version) -> None: | CODE |
| LOW | tests/unit/seed/wheels/test_periodic_update.py | 146 | def test_periodic_update_latest_per_patch(mocker, session_app_data, for_py_version) -> None: | CODE |
| LOW | tests/unit/seed/wheels/test_periodic_update.py | 167 | def test_periodic_update_latest_per_patch_prev_is_manual(mocker, session_app_data, for_py_version) -> None: | CODE |
| 243 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | hatch_build.py | 1 | CODE | |
| LOW | tasks/release.py | 3 | CODE | |
| LOW | tasks/upgrade_wheels.py | 3 | CODE | |
| LOW | tasks/zipapp_sbom.py | 3 | CODE | |
| LOW | tasks/license_policy.py | 3 | CODE | |
| LOW | tasks/pytest_diagnostics.py | 3 | CODE | |
| LOW | tasks/make_zipapp.py | 3 | CODE | |
| LOW | tasks/fuzz_shared.py | 3 | CODE | |
| LOW | tasks/__main__zipapp.py | 1 | CODE | |
| LOW | tasks/apply_upgrade_patch.py | 1 | CODE | |
| LOW | tasks/validate_sbom.py | 3 | CODE | |
| LOW | tasks/upgrade_ci_tools.py | 1 | CODE | |
| LOW | tasks/fuzz_powershell_quote.py | 7 | CODE | |
| LOW | tasks/cyclonedx_to_spdx.py | 3 | CODE | |
| LOW | tasks/fuzz_pyenv_cfg.py | 11 | CODE | |
| LOW | tasks/check_wheel_age.py | 1 | CODE | |
| LOW | tasks/fuzz_nushell_quote.py | 7 | CODE | |
| LOW | tasks/update_embedded.py | 3 | CODE | |
| LOW | tasks/run_graalpy_tests.py | 3 | CODE | |
| LOW | tests/conftest.py | 1 | CODE | |
| LOW | tests/types.py | 1 | CODE | |
| LOW | tests/unit/test_run.py | 1 | CODE | |
| LOW | tests/unit/test_conftest.py | 1 | CODE | |
| LOW | tests/unit/test_util.py | 1 | CODE | |
| LOW | tests/unit/test_file_limit.py | 1 | CODE | |
| LOW | tests/unit/seed/embed/test_base_embed.py | 1 | CODE | |
| LOW | tests/unit/seed/embed/test_pip_invoke.py | 1 | CODE | |
| LOW | …ts/unit/seed/embed/test_bootstrap_link_via_app_data.py | 1 | CODE | |
| LOW | tests/unit/seed/wheels/test_acquire.py | 1 | CODE | |
| LOW | tests/unit/seed/wheels/test_periodic_update.py | 1 | CODE | |
| LOW | tests/unit/seed/wheels/test_acquire_find_wheel.py | 1 | CODE | |
| LOW | tests/unit/seed/wheels/test_bundle.py | 1 | CODE | |
| LOW | tests/unit/seed/wheels/test_wheels_util.py | 1 | CODE | |
| LOW | tests/unit/config/test_env_var.py | 1 | CODE | |
| LOW | tests/unit/config/test_ini.py | 1 | CODE | |
| LOW | tests/unit/config/test_ini.py | 18 | CODE | |
| LOW | tests/unit/config/test___main__.py | 1 | CODE | |
| LOW | tests/unit/config/cli/test_parser.py | 1 | CODE | |
| LOW | tests/unit/config/cli/test_help_formatter.py | 3 | CODE | |
| LOW | tests/unit/discovery/test_discovery.py | 1 | CODE | |
| LOW | tests/unit/activation/conftest.py | 1 | CODE | |
| LOW | tests/unit/activation/test_csh.py | 1 | CODE | |
| LOW | tests/unit/activation/test_bash.py | 1 | CODE | |
| LOW | tests/unit/activation/test_python_activator.py | 1 | CODE | |
| LOW | tests/unit/activation/test_powershell.py | 1 | CODE | |
| LOW | tests/unit/activation/test_activation_support.py | 1 | CODE | |
| LOW | tests/unit/activation/test_activator.py | 1 | CODE | |
| LOW | tests/unit/activation/test_xonsh.py | 1 | CODE | |
| LOW | tests/unit/activation/test_fish.py | 1 | CODE | |
| LOW | tests/unit/activation/test_batch.py | 1 | CODE | |
| LOW | tests/unit/activation/test_nushell.py | 1 | CODE | |
| LOW | tests/unit/create/conftest.py | 10 | CODE | |
| LOW | tests/unit/create/test_interpreters.py | 1 | CODE | |
| LOW | tests/unit/create/test_venv_redirect.py | 1 | CODE | |
| LOW | tests/unit/create/test_creator.py | 1 | CODE | |
| LOW | tests/unit/create/console_app/setup.py | 1 | CODE | |
| LOW | tests/unit/create/console_app/demo/__init__.py | 1 | CODE | |
| LOW | tests/unit/create/console_app/demo/__main__.py | 1 | CODE | |
| LOW | tests/unit/create/via_global_ref/test_race_condition.py | 1 | CODE | |
| LOW | tests/unit/create/via_global_ref/test_build_c_ext.py | 1 | CODE | |
| 137 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | hatch_build.py | 631 | __all__ = [ | CODE |
| LOW | tasks/license_policy.py | 139 | __all__ = [ | CODE |
| LOW | tasks/pytest_diagnostics.py | 109 | __all__ = ["pytest_addoption", "pytest_configure"] | CODE |
| LOW | tasks/apply_upgrade_patch.py | 46 | __all__ = ["main"] | CODE |
| LOW | tasks/upgrade_ci_tools.py | 161 | __all__ = ["main"] | STRING |
| LOW | tasks/cyclonedx_to_spdx.py | 245 | __all__ = [ | CODE |
| LOW | tasks/check_wheel_age.py | 49 | __all__ = ["main"] | CODE |
| LOW | tasks/run_graalpy_tests.py | 117 | __all__ = ["main"] | CODE |
| LOW | src/virtualenv/__init__.py | 6 | __all__ = [ | CODE |
| LOW | src/virtualenv/report.py | 46 | __all__ = [ | CODE |
| LOW | src/virtualenv/app_data/na.py | 75 | __all__ = [ | CODE |
| LOW | src/virtualenv/app_data/read_only.py | 45 | __all__ = [ | CODE |
| LOW | src/virtualenv/app_data/via_disk_folder.py | 177 | __all__ = [ | CODE |
| LOW | src/virtualenv/app_data/base.py | 164 | __all__ = [ | CODE |
| LOW | src/virtualenv/app_data/via_tempdir.py | 36 | __all__ = [ | CODE |
| LOW | src/virtualenv/seed/seeder.py | 63 | __all__ = [ | CODE |
| LOW | src/virtualenv/seed/embed/pip_invoke.py | 81 | __all__ = [ | CODE |
| LOW | src/virtualenv/seed/embed/base_embed.py | 167 | __all__ = [ | CODE |
| LOW | src/virtualenv/seed/embed/via_app_data/via_app_data.py | 162 | __all__ = [ | CODE |
| LOW | …tualenv/seed/embed/via_app_data/pip_install/symlink.py | 60 | __all__ = [ | CODE |
| LOW | …virtualenv/seed/embed/via_app_data/pip_install/copy.py | 42 | __all__ = [ | CODE |
| LOW | …virtualenv/seed/embed/via_app_data/pip_install/base.py | 240 | __all__ = [ | CODE |
| LOW | src/virtualenv/seed/wheels/bundle.py | 62 | __all__ = [ | CODE |
| LOW | src/virtualenv/seed/wheels/acquire.py | 234 | __all__ = [ | CODE |
| LOW | src/virtualenv/seed/wheels/util.py | 112 | __all__ = [ | CODE |
| LOW | src/virtualenv/seed/wheels/__init__.py | 6 | __all__ = [ | CODE |
| LOW | src/virtualenv/seed/wheels/periodic_update.py | 520 | __all__ = [ | CODE |
| LOW | src/virtualenv/seed/wheels/embed/__init__.py | 127 | __all__ = [ | CODE |
| LOW | src/virtualenv/util/zipapp.py | 42 | __all__ = [ | CODE |
| LOW | src/virtualenv/util/text.py | 31 | __all__ = [ | CODE |
| LOW | src/virtualenv/util/lock.py | 189 | __all__ = [ | CODE |
| LOW | src/virtualenv/util/path/_permission.py | 25 | def set_tree(folder: Path, stat: int) -> None: | CODE |
| LOW | src/virtualenv/util/path/__init__.py | 7 | __all__ = [ | CODE |
| LOW | src/virtualenv/util/path/_win.py | 21 | __all__ = [ | CODE |
| LOW | src/virtualenv/util/path/_sync.py | 92 | __all__ = [ | CODE |
| LOW | src/virtualenv/config/env_var.py | 36 | __all__ = [ | CODE |
| LOW | src/virtualenv/config/convert.py | 100 | __all__ = [ | CODE |
| LOW | src/virtualenv/config/ini.py | 84 | __all__ = ["IniConfig"] | CODE |
| LOW | src/virtualenv/config/cli/parser.py | 24 | def set_src(self, key: str, value: Any, src: str) -> None: # ruff:ignore[any-type] | CODE |
| LOW | src/virtualenv/config/cli/parser.py | 169 | __all__ = [ | CODE |
| LOW | src/virtualenv/discovery/discover.py | 41 | __all__ = [ | CODE |
| LOW | src/virtualenv/discovery/py_info.py | 7 | __all__ = [ | CODE |
| LOW | src/virtualenv/discovery/cached_py_info.py | 7 | __all__ = [ | CODE |
| LOW | src/virtualenv/discovery/py_spec.py | 7 | __all__ = [ | CODE |
| LOW | src/virtualenv/discovery/builtin.py | 84 | __all__ = [ | CODE |
| LOW | src/virtualenv/activation/activator.py | 59 | __all__ = [ | CODE |
| LOW | src/virtualenv/activation/via_template.py | 110 | __all__ = [ | CODE |
| LOW | src/virtualenv/activation/__init__.py | 12 | __all__ = [ | CODE |
| LOW | src/virtualenv/activation/python/__init__.py | 37 | __all__ = [ | CODE |
| LOW | src/virtualenv/activation/xonsh/__init__.py | 32 | __all__ = [ | CODE |
| LOW | src/virtualenv/activation/cshell/__init__.py | 72 | __all__ = [ | STRING |
| LOW | src/virtualenv/activation/bash/__init__.py | 30 | __all__ = [ | CODE |
| LOW | src/virtualenv/activation/nushell/__init__.py | 49 | __all__ = [ | CODE |
| LOW | src/virtualenv/activation/powershell/__init__.py | 32 | __all__ = [ | CODE |
| LOW | src/virtualenv/activation/batch/__init__.py | 92 | __all__ = [ | CODE |
| LOW | src/virtualenv/activation/fish/__init__.py | 33 | __all__ = [ | CODE |
| LOW | src/virtualenv/run/session.py | 119 | __all__ = [ | CODE |
| LOW | src/virtualenv/run/__init__.py | 194 | __all__ = [ | CODE |
| LOW | src/virtualenv/run/plugin/activators.py | 72 | __all__ = [ | CODE |
| LOW | src/virtualenv/run/plugin/discovery.py | 57 | __all__ = [ | CODE |
| 25 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | tests/unit/create/test_creator.py | 228 | # This file is a cache directory tag created by Python virtualenv. | COMMENT |
| MEDIUM | tests/unit/create/test_creator.py | 847 | # Create a real directory and a symlink to it | COMMENT |
| MEDIUM | tests/unit/create/via_global_ref/test_race_condition.py | 26 | # Create a temporary file with partial _virtualenv.py content (simulating race condition) | COMMENT |
| MEDIUM⚡ | tests/integration/test_race_condition_simulation.py | 27 | # Create the _virtualenv.py file | COMMENT |
| MEDIUM⚡ | tests/integration/test_race_condition_simulation.py | 33 | # Create the _virtualenv.pth file | COMMENT |
| MEDIUM | src/virtualenv/info.py | 38 | # Creating a symlink can fail for a variety of reasons, indicating that the filesystem does not support it. | COMMENT |
| MEDIUM | src/virtualenv/create/creator.py | 235 | # This file is a cache directory tag created by Python virtualenv. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | src/virtualenv/info.py | 46 | except (OSError, NotImplementedError): | CODE |
| HIGH | src/virtualenv/app_data/via_disk_folder.py | 136 | except Exception: # ruff:ignore[blind-except, try-except-pass] | CODE |
| HIGH | …tualenv/seed/embed/via_app_data/pip_install/symlink.py | 39 | except ValueError: | CODE |
| HIGH | src/virtualenv/create/debug.py | 48 | except ImportError: | CODE |
| HIGH | src/virtualenv/create/via_global_ref/_virtualenv.py | 98 | except AttributeError: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | hatch_build.py | 365 | CODE | |
| LOW | tasks/release.py | 35 | CODE | |
| LOW | tasks/upgrade_wheels.py | 91 | CODE | |
| LOW | tasks/make_zipapp.py | 144 | CODE | |
| LOW | tasks/__main__zipapp.py | 81 | CODE | |
| LOW | tasks/__main__zipapp.py | 122 | CODE | |
| LOW | tests/unit/create/test_creator.py | 566 | CODE | |
| LOW | tests/integration/test_zipapp.py | 20 | CODE | |
| LOW | docs/render_cli.py | 206 | CODE | |
| LOW | src/virtualenv/info.py | 32 | CODE | |
| LOW | src/virtualenv/app_data/via_disk_folder.py | 94 | CODE | |
| LOW | …virtualenv/seed/embed/via_app_data/pip_install/base.py | 152 | CODE | |
| LOW | src/virtualenv/seed/wheels/periodic_update.py | 41 | CODE | |
| LOW | src/virtualenv/config/cli/parser.py | 101 | CODE | |
| LOW | src/virtualenv/activation/cshell/__init__.py | 45 | CODE | |
| LOW | src/virtualenv/run/plugin/creators.py | 33 | CODE | |
| LOW | src/virtualenv/create/via_global_ref/builtin/ref.py | 62 | CODE | |
| LOW | …nv/create/via_global_ref/builtin/via_global_self_do.py | 51 | CODE | |
| LOW | …virtualenv/create/via_global_ref/builtin/pypy/pypy3.py | 42 | CODE | |
| LOW | …lenv/create/via_global_ref/builtin/cpython/cpython3.py | 93 | CODE | |
| LOW | …lenv/create/via_global_ref/builtin/cpython/cpython3.py | 152 | CODE | |
| LOW | …ualenv/create/via_global_ref/builtin/cpython/mac_os.py | 144 | CODE | |
| LOW | …ualenv/create/via_global_ref/builtin/cpython/mac_os.py | 40 | CODE | |
| LOW | …ualenv/create/via_global_ref/builtin/cpython/mac_os.py | 217 | CODE | |
| LOW | …ualenv/create/via_global_ref/builtin/cpython/mac_os.py | 246 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tasks/release.py | 29 | repo.git.push(remote.name, "HEAD:main") | CODE |
| HIGH | tasks/release.py | 31 | repo.git.push(remote.name, tag) | CODE |
| HIGH | tests/unit/activation/test_bash.py | 160 | ["bash", "-c", f'source "{relocated / "bin" / "activate"}" 2>/dev/null && echo "$VIRTUAL_ENV"'], | CODE |
| HIGH | tests/unit/activation/test_powershell.py | 150 | lookups = (f'if ($env:{var} -eq $null) {{ "None" }} else {{ $env:{var} }}' for var in names) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/unit/test_util.py | 134 | except Exception: # ruff:ignore[blind-except, try-except-in-loop] | CODE |
| LOW | …ts/unit/seed/embed/test_bootstrap_link_via_app_data.py | 246 | except Exception as exception: # ruff:ignore[blind-except] | CODE |
| MEDIUM | …ts/unit/seed/embed/test_bootstrap_link_via_app_data.py | 242 | def _run(name) -> None: | CODE |
| LOW | tests/unit/activation/conftest.py | 53 | except Exception as exception: | CODE |
| LOW | src/virtualenv/app_data/via_disk_folder.py | 136 | except Exception: # ruff:ignore[blind-except, try-except-pass] | CODE |
| LOW | src/virtualenv/seed/embed/via_app_data/via_app_data.py | 72 | except Exception: # ruff:ignore[blind-except] | CODE |
| LOW | src/virtualenv/seed/embed/via_app_data/via_app_data.py | 110 | except Exception as exception: | CODE |
| LOW | src/virtualenv/seed/wheels/periodic_update.py | 367 | except Exception as exception: # ruff:ignore[blind-except] | CODE |
| LOW⚡ | src/virtualenv/seed/wheels/periodic_update.py | 452 | except Exception as exception: # ruff:ignore[blind-except] | CODE |
| LOW | src/virtualenv/config/convert.py | 85 | except Exception as exception: | CODE |
| LOW | src/virtualenv/config/ini.py | 68 | except Exception: # ruff:ignore[blind-except] | CODE |
| LOW | src/virtualenv/create/creator.py | 321 | except Exception as exception: # ruff:ignore[blind-except] | CODE |
| LOW | …ualenv/create/via_global_ref/builtin/cpython/mac_os.py | 134 | except Exception as e: # ruff:ignore[blind-except] | STRING |
| LOW | …ualenv/create/via_global_ref/builtin/cpython/mac_os.py | 139 | except Exception: | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tests/unit/seed/wheels/test_bundle.py | 114 | fake_name = "fake-0.0.1-py3-none-any.whl" | CODE |
| LOW⚡ | tests/unit/seed/wheels/test_bundle.py | 115 | fake = tmp_path / fake_name | CODE |
| LOW⚡ | tests/unit/seed/wheels/test_bundle.py | 117 | monkeypatch.setitem(BUNDLE_SHA256, fake_name, "0" * 64) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/unit/activation/conftest.py | 165 | # So we need to check if the prompt exists on any of them. | COMMENT |
| LOW | tests/unit/activation/test_fish.py | 219 | # So we need to check if the prompt exists on any of them. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tasks/release-requirements.txt | 841 | # pypi-attestations | COMMENT |
| LOW | .github/workflows/check.yaml | 201 | env: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/virtualenv/activation/python/activate_this.py | 29 | # Set PKG_CONFIG_PATH to include the virtualenv's pkgconfig directory | COMMENT |