Repository Analysis

pypa/virtualenv

Virtual Python Environment builder

32.1 Strong AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of pypa/virtualenv, a Python project with 5,040 GitHub stars. SynthScan v2.0 examined 16,763 lines of code across 188 source files, recording 484 pattern matches distributed across 10 syntactic categories. The overall adjusted score of 32.1 places this repository in the Strong AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

32.1
Adjusted Score
32.1
Raw Score
100%
Time Factor
2026-07-14
Last Push
5.0K
Stars
Python
Language
16.8K
Lines of Code
188
Files
484
Pattern Hits
2026-07-14
Scan Date
0.02
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.

No multi-scan history yet — run the scanner again to build trend data.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 0HIGH 4MEDIUM 8LOW 472

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 484 distinct pattern matches across 10 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hyper-Verbose Identifiers186 hits · 201 pts
SeverityFileLineSnippetContext
LOWtasks/upgrade_wheels.py221def _support_table_from_existing_init() -> OrderedDict[str, OrderedDict[str, str]]:STRING
LOWtasks/make_zipapp.py270def get_wheels_for_support_versions(folder: Path) -> dict[str, Any]:CODE
LOWtasks/__main__zipapp.py81 def _register_distutils_finder(self) -> None: # noqa: C901CODE
LOWtasks/__main__zipapp.py147def versioned_distribution_class() -> type:CODE
LOWtests/conftest.py38def pytest_collection_modifyitems(config, items) -> None:CODE
LOWtests/conftest.py117def _check_cwd_not_changed_by_test():CODE
LOWtests/conftest.py126def _ensure_py_info_cache_empty(session_app_data):CODE
LOWtests/unit/test_run.py46def test_invalid_discovery_method_via_env(monkeypatch: pytest.MonkeyPatch) -> None:CODE
LOWtests/unit/test_util.py27def test_reentrant_file_lock_is_thread_safe(tmp_path) -> None:CODE
LOWtests/unit/test_util.py53 def test_no_override_returns_cache_dir(self, monkeypatch: pytest.MonkeyPatch) -> None:CODE
LOWtests/unit/test_util.py75 def test_no_migration_when_old_missing(self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None:CODE
LOWtests/unit/test_util.py86 def test_no_migration_when_new_exists(self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None:CODE
LOWtests/unit/test_util.py100 def test_same_dir_returns_immediately(self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None:CODE
LOWtests/unit/test_util.py108 def test_fallback_on_migration_error(self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None:CODE
LOWtests/unit/test_util.py126 def test_symlink_app_data_survives_migration(CODE
LOWtests/unit/test_util.py164def test_zipapp_read_returns_payload_from_entry_inside_root(fake_zipapp_root: Path) -> None:CODE
LOWtests/unit/test_util.py169def test_zipapp_read_rejects_path_escaping_via_parent(fake_zipapp_root: Path) -> None:CODE
LOWtests/unit/test_util.py175def test_zipapp_read_rejects_unrelated_absolute_path(fake_zipapp_root: Path, tmp_path: Path) -> None: # noqa: ARG001CODE
LOWtests/unit/seed/embed/test_base_embed.py34def test_wheel_cli_flags_do_nothing(tmp_path, flag) -> None:CODE
LOWtests/unit/seed/embed/test_base_embed.py44def test_wheel_cli_flags_warn(tmp_path, flag, capsys) -> None:CODE
LOWtests/unit/seed/embed/test_base_embed.py50def test_unused_wheel_cli_flags_dont_warn(tmp_path, capsys) -> None:CODE
LOWtests/unit/seed/embed/test_base_embed.py56def test_embed_wheel_versions(tmp_path: Path) -> None:CODE
LOWtests/unit/seed/embed/test_base_embed.py69def test_bundled_seeder_reports_reason_below_floor(CODE
LOWtests/unit/seed/embed/test_base_embed.py80def test_bundled_seeder_has_no_reason_on_oldest_supported(CODE
LOWtests/unit/seed/embed/test_base_embed.py86def test_base_seeder_never_blocks(at_version: Callable[[int, int], MagicMock]) -> None:CODE
LOWtests/unit/seed/embed/test_base_embed.py90def test_selection_surfaces_the_seeder_reason(tmp_path: Path, mocker: MockerFixture) -> None:CODE
LOWtests/unit/seed/embed/test_base_embed.py96def test_no_seed_bypasses_capability_check(tmp_path: Path, mocker: MockerFixture) -> None:CODE
LOWtests/unit/seed/embed/test_pip_invoke.py17def test_base_bootstrap_via_pip_invoke(tmp_path, coverage_env, mocker, current_fastest, no) -> None: # noqa: C901CODE
LOW…ts/unit/seed/embed/test_bootstrap_link_via_app_data.py30def 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.py155def 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.py163def 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.py189def 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.py215def test_base_bootstrap_link_via_app_data_no(tmp_path, pkg) -> None:CODE
LOW…ts/unit/seed/embed/test_bootstrap_link_via_app_data.py224def test_app_data_parallel_ok(tmp_path) -> None:CODE
LOW…ts/unit/seed/embed/test_bootstrap_link_via_app_data.py230def test_app_data_parallel_fail(tmp_path: Path, mocker: MockerFixture) -> None:CODE
LOW…ts/unit/seed/embed/test_bootstrap_link_via_app_data.py263def test_safe_extract_zip_allows_normal_entry(tmp_path: Path) -> None:CODE
LOW…ts/unit/seed/embed/test_bootstrap_link_via_app_data.py275def test_safe_extract_zip_rejects_parent_traversal(tmp_path: Path) -> None:CODE
LOW…ts/unit/seed/embed/test_bootstrap_link_via_app_data.py287def test_safe_extract_zip_rejects_absolute_posix_entry(tmp_path: Path) -> None:CODE
LOW…ts/unit/seed/embed/test_bootstrap_link_via_app_data.py297def test_safe_extract_zip_rejects_absolute_windows_entry(tmp_path: Path) -> None:CODE
LOWtests/unit/seed/wheels/test_acquire.py30def test_pip_wheel_env_run_could_not_find(session_app_data, mocker) -> None:CODE
LOWtests/unit/seed/wheels/test_acquire.py36def test_download_wheel_bad_output(mocker, for_py_version, session_app_data) -> None:CODE
LOWtests/unit/seed/wheels/test_acquire.py92def test_download_wheel_python_io_encoding(mocker, for_py_version, session_app_data) -> None:CODE
LOWtests/unit/seed/wheels/test_acquire.py111def test_get_wheel_download_called(mocker, for_py_version, session_app_data, downloaded_wheel, version) -> None:CODE
LOWtests/unit/seed/wheels/test_acquire.py122def test_get_wheel_download_not_called(mocker, for_py_version, session_app_data, downloaded_wheel, version) -> None:CODE
LOWtests/unit/seed/wheels/test_acquire.py135def test_get_wheel_download_cached(CODE
LOWtests/unit/seed/wheels/test_acquire.py189def test_download_wheel_rejects_bad_distribution(distribution: str, session_app_data) -> None:CODE
LOWtests/unit/seed/wheels/test_acquire.py203def test_download_wheel_rejects_bad_version_spec(version_spec: str, session_app_data, mocker: MockerFixture) -> None:CODE
LOWtests/unit/seed/wheels/test_periodic_update.py75def test_pick_periodic_update(tmp_path, mocker, for_py_version) -> None:CODE
LOWtests/unit/seed/wheels/test_periodic_update.py105def test_periodic_update_stops_at_current(mocker, session_app_data, for_py_version) -> None:CODE
LOWtests/unit/seed/wheels/test_periodic_update.py125def test_periodic_update_latest_per_patch(mocker, session_app_data, for_py_version) -> None:CODE
LOWtests/unit/seed/wheels/test_periodic_update.py146def test_periodic_update_latest_per_patch_prev_is_manual(mocker, session_app_data, for_py_version) -> None:CODE
LOWtests/unit/seed/wheels/test_periodic_update.py168def test_manual_update_honored(mocker, session_app_data, for_py_version) -> None:CODE
LOWtests/unit/seed/wheels/test_periodic_update.py227def test_periodic_update_skip(u_log, mocker, for_py_version, session_app_data, time_freeze) -> None:CODE
LOWtests/unit/seed/wheels/test_periodic_update.py254def test_periodic_update_trigger(u_log, mocker, for_py_version, session_app_data, time_freeze) -> None:CODE
LOWtests/unit/seed/wheels/test_periodic_update.py270def test_trigger_update_no_debug(for_py_version, session_app_data, tmp_path, mocker, monkeypatch) -> None:CODE
LOWtests/unit/seed/wheels/test_periodic_update.py318def test_trigger_update_debug(for_py_version, session_app_data, tmp_path, mocker, monkeypatch) -> None:CODE
LOWtests/unit/seed/wheels/test_periodic_update.py442def test_do_update_skip_already_done(tmp_path, mocker, time_freeze) -> None:CODE
LOWtests/unit/seed/wheels/test_periodic_update.py504def test_get_release_unsecure(mocker, caplog, monkeypatch) -> None:CODE
LOWtests/unit/seed/wheels/test_periodic_update.py526def test_get_release_verified_failure_does_not_fallback(mocker, monkeypatch) -> None:CODE
LOWtests/unit/seed/wheels/test_periodic_update.py563def test_download_stop_with_embed(tmp_path, mocker, time_freeze) -> None:CODE
126 more matches not shown…
Unused Imports167 hits · 167 pts
SeverityFileLineSnippetContext
LOWtasks/release.py3CODE
LOWtasks/upgrade_wheels.py3CODE
LOWtasks/make_zipapp.py3CODE
LOWtasks/__main__zipapp.py1CODE
LOWtasks/update_embedded.py3CODE
LOWtests/conftest.py1CODE
LOWtests/types.py1CODE
LOWtests/unit/test_run.py1CODE
LOWtests/unit/test_util.py1CODE
LOWtests/unit/test_file_limit.py1CODE
LOWtests/unit/seed/embed/test_base_embed.py1CODE
LOWtests/unit/seed/embed/test_pip_invoke.py1CODE
LOW…ts/unit/seed/embed/test_bootstrap_link_via_app_data.py1CODE
LOWtests/unit/seed/wheels/test_acquire.py1CODE
LOWtests/unit/seed/wheels/test_periodic_update.py1CODE
LOWtests/unit/seed/wheels/test_acquire_find_wheel.py1CODE
LOWtests/unit/seed/wheels/test_bundle.py1CODE
LOWtests/unit/seed/wheels/test_wheels_util.py1CODE
LOWtests/unit/config/test_env_var.py1CODE
LOWtests/unit/config/test_ini.py1CODE
LOWtests/unit/config/test___main__.py1CODE
LOWtests/unit/config/cli/test_parser.py1CODE
LOWtests/unit/config/cli/test_help_formatter.py3CODE
LOWtests/unit/discovery/test_discovery.py1CODE
LOWtests/unit/activation/conftest.py1CODE
LOWtests/unit/activation/test_csh.py1CODE
LOWtests/unit/activation/test_bash.py1CODE
LOWtests/unit/activation/test_python_activator.py1CODE
LOWtests/unit/activation/test_powershell.py1CODE
LOWtests/unit/activation/test_activation_support.py1CODE
LOWtests/unit/activation/test_activator.py1CODE
LOWtests/unit/activation/test_xonsh.py1CODE
LOWtests/unit/activation/test_fish.py1CODE
LOWtests/unit/activation/test_batch.py1CODE
LOWtests/unit/activation/test_nushell.py1CODE
LOWtests/unit/create/conftest.py10CODE
LOWtests/unit/create/test_interpreters.py1CODE
LOWtests/unit/create/test_creator.py1CODE
LOWtests/unit/create/console_app/setup.py1CODE
LOWtests/unit/create/console_app/demo/__init__.py1CODE
LOWtests/unit/create/console_app/demo/__main__.py1CODE
LOWtests/unit/create/via_global_ref/test_race_condition.py1CODE
LOWtests/unit/create/via_global_ref/test_build_c_ext.py1CODE
LOW…t/create/via_global_ref/_test_race_condition_helper.py1CODE
LOWtests/unit/create/via_global_ref/test_api.py1CODE
LOWtests/unit/create/via_global_ref/greet/setup.py1CODE
LOWtests/unit/create/via_global_ref/builtin/conftest.py1CODE
LOW…/unit/create/via_global_ref/builtin/testing/py_info.py1CODE
LOW…sts/unit/create/via_global_ref/builtin/testing/path.py1CODE
LOW…/unit/create/via_global_ref/builtin/testing/helpers.py1CODE
LOW…/unit/create/via_global_ref/builtin/pypy/test_pypy3.py1CODE
LOW…te/via_global_ref/builtin/cpython/test_cpython3_win.py1CODE
LOW…unit/create/via_global_ref/builtin/cpython/conftest.py1CODE
LOW…/via_global_ref/builtin/cpython/test_cpython3_posix.py1CODE
LOW…e/via_global_ref/builtin/rustpython/test_rustpython.py1CODE
LOWtests/integration/test_cachedir_tag.py1CODE
LOWtests/integration/test_run_int.py1CODE
LOWtests/integration/test_zipapp.py1CODE
LOWtests/integration/test_race_condition_simulation.py1CODE
LOWtests/integration/test_race_condition_simulation.py43CODE
107 more matches not shown…
Modern Structural Boilerplate75 hits · 75 pts
SeverityFileLineSnippetContext
LOWsrc/virtualenv/__init__.py6__all__ = [CODE
LOWsrc/virtualenv/report.py46__all__ = [CODE
LOWsrc/virtualenv/app_data/na.py75__all__ = [CODE
LOWsrc/virtualenv/app_data/read_only.py45__all__ = [CODE
LOWsrc/virtualenv/app_data/via_disk_folder.py177__all__ = [CODE
LOWsrc/virtualenv/app_data/base.py164__all__ = [CODE
LOWsrc/virtualenv/app_data/via_tempdir.py36__all__ = [CODE
LOWsrc/virtualenv/seed/seeder.py63__all__ = [CODE
LOWsrc/virtualenv/seed/embed/pip_invoke.py81__all__ = [CODE
LOWsrc/virtualenv/seed/embed/base_embed.py167__all__ = [CODE
LOWsrc/virtualenv/seed/embed/via_app_data/via_app_data.py162__all__ = [CODE
LOW…tualenv/seed/embed/via_app_data/pip_install/symlink.py60__all__ = [CODE
LOW…virtualenv/seed/embed/via_app_data/pip_install/copy.py42__all__ = [CODE
LOW…virtualenv/seed/embed/via_app_data/pip_install/base.py240__all__ = [CODE
LOWsrc/virtualenv/seed/wheels/bundle.py62__all__ = [CODE
LOWsrc/virtualenv/seed/wheels/acquire.py209__all__ = [CODE
LOWsrc/virtualenv/seed/wheels/util.py121__all__ = [CODE
LOWsrc/virtualenv/seed/wheels/__init__.py6__all__ = [CODE
LOWsrc/virtualenv/seed/wheels/periodic_update.py462__all__ = [CODE
LOWsrc/virtualenv/seed/wheels/embed/__init__.py127__all__ = [CODE
LOWsrc/virtualenv/util/zipapp.py42__all__ = [CODE
LOWsrc/virtualenv/util/lock.py189__all__ = [CODE
LOWsrc/virtualenv/util/path/_permission.py25def set_tree(folder: Path, stat: int) -> None:CODE
LOWsrc/virtualenv/util/path/__init__.py7__all__ = [CODE
LOWsrc/virtualenv/util/path/_win.py21__all__ = [CODE
LOWsrc/virtualenv/util/path/_sync.py84__all__ = [CODE
LOWsrc/virtualenv/config/env_var.py36__all__ = [CODE
LOWsrc/virtualenv/config/convert.py102__all__ = [CODE
LOWsrc/virtualenv/config/cli/parser.py24 def set_src(self, key: str, value: Any, src: str) -> None: # noqa: ANN401CODE
LOWsrc/virtualenv/config/cli/parser.py156__all__ = [CODE
LOWsrc/virtualenv/discovery/discover.py41__all__ = [CODE
LOWsrc/virtualenv/discovery/py_info.py7__all__ = [CODE
LOWsrc/virtualenv/discovery/cached_py_info.py7__all__ = [CODE
LOWsrc/virtualenv/discovery/py_spec.py7__all__ = [CODE
LOWsrc/virtualenv/discovery/builtin.py84__all__ = [CODE
LOWsrc/virtualenv/activation/activator.py59__all__ = [CODE
LOWsrc/virtualenv/activation/via_template.py97__all__ = [CODE
LOWsrc/virtualenv/activation/__init__.py12__all__ = [CODE
LOWsrc/virtualenv/activation/python/__init__.py37__all__ = [CODE
LOWsrc/virtualenv/activation/xonsh/__init__.py32__all__ = [CODE
LOWsrc/virtualenv/activation/cshell/__init__.py22__all__ = [CODE
LOWsrc/virtualenv/activation/bash/__init__.py30__all__ = [CODE
LOWsrc/virtualenv/activation/nushell/__init__.py49__all__ = [CODE
LOWsrc/virtualenv/activation/powershell/__init__.py28__all__ = [CODE
LOWsrc/virtualenv/activation/batch/__init__.py36__all__ = [CODE
LOWsrc/virtualenv/activation/fish/__init__.py27__all__ = [CODE
LOWsrc/virtualenv/run/session.py119__all__ = [CODE
LOWsrc/virtualenv/run/__init__.py194__all__ = [CODE
LOWsrc/virtualenv/run/plugin/activators.py72__all__ = [CODE
LOWsrc/virtualenv/run/plugin/discovery.py57__all__ = [CODE
LOWsrc/virtualenv/run/plugin/seeders.py52__all__ = [CODE
LOWsrc/virtualenv/run/plugin/creators.py95__all__ = [CODE
LOWsrc/virtualenv/run/plugin/base.py78__all__ = [CODE
LOWsrc/virtualenv/create/describe.py111__all__ = [CODE
LOWsrc/virtualenv/create/pyenv_cfg.py77__all__ = [CODE
LOWsrc/virtualenv/create/creator.py220 def set_pyenv_cfg(self) -> None:STRING
LOWsrc/virtualenv/create/creator.py292__all__ = [CODE
LOWsrc/virtualenv/create/via_global_ref/store.py29__all__ = [CODE
LOWsrc/virtualenv/create/via_global_ref/venv.py88 def set_pyenv_cfg(self) -> None:CODE
LOWsrc/virtualenv/create/via_global_ref/venv.py103__all__ = [CODE
15 more matches not shown…
Self-Referential Comments7 hits · 26 pts
SeverityFileLineSnippetContext
MEDIUMtests/unit/create/test_creator.py224 # This file is a cache directory tag created by Python virtualenv.COMMENT
MEDIUMtests/unit/create/test_creator.py823 # Create a real directory and a symlink to itCOMMENT
MEDIUMtests/unit/create/via_global_ref/test_race_condition.py26 # Create a temporary file with partial _virtualenv.py content (simulating race condition)COMMENT
MEDIUMtests/integration/test_race_condition_simulation.py27 # Create the _virtualenv.py fileCOMMENT
MEDIUMtests/integration/test_race_condition_simulation.py33 # Create the _virtualenv.pth fileCOMMENT
MEDIUMsrc/virtualenv/info.py38 # Creating a symlink can fail for a variety of reasons, indicating that the filesystem does not support it.COMMENT
MEDIUMsrc/virtualenv/create/creator.py214 # This file is a cache directory tag created by Python virtualenv.COMMENT
Deep Nesting24 hits · 24 pts
SeverityFileLineSnippetContext
LOWtasks/release.py34CODE
LOWtasks/upgrade_wheels.py87CODE
LOWtasks/make_zipapp.py59CODE
LOWtasks/__main__zipapp.py81CODE
LOWtasks/__main__zipapp.py122CODE
LOWtests/unit/create/test_creator.py530CODE
LOWtests/integration/test_zipapp.py19CODE
LOWdocs/render_cli.py204CODE
LOWsrc/virtualenv/info.py32CODE
LOWsrc/virtualenv/app_data/via_disk_folder.py94CODE
LOW…virtualenv/seed/embed/via_app_data/pip_install/base.py152CODE
LOWsrc/virtualenv/seed/wheels/util.py52CODE
LOWsrc/virtualenv/seed/wheels/periodic_update.py38CODE
LOWsrc/virtualenv/config/cli/parser.py101CODE
LOWsrc/virtualenv/run/plugin/creators.py33CODE
LOWsrc/virtualenv/create/via_global_ref/builtin/ref.py62CODE
LOW…nv/create/via_global_ref/builtin/via_global_self_do.py52CODE
LOW…virtualenv/create/via_global_ref/builtin/pypy/pypy3.py42CODE
LOW…lenv/create/via_global_ref/builtin/cpython/cpython3.py93CODE
LOW…lenv/create/via_global_ref/builtin/cpython/cpython3.py152CODE
LOW…ualenv/create/via_global_ref/builtin/cpython/mac_os.py144CODE
LOW…ualenv/create/via_global_ref/builtin/cpython/mac_os.py40CODE
LOW…ualenv/create/via_global_ref/builtin/cpython/mac_os.py217CODE
LOW…ualenv/create/via_global_ref/builtin/cpython/mac_os.py246CODE
Cross-Language Confusion4 hits · 20 pts
SeverityFileLineSnippetContext
HIGHtasks/release.py28 repo.git.push(remote.name, "HEAD:main")CODE
HIGHtasks/release.py30 repo.git.push(remote.name, tag)CODE
HIGHtests/unit/activation/test_bash.py97 ["bash", "-c", f'source "{activate_script}" 2>/dev/null && echo "$VIRTUAL_ENV"'],CODE
HIGHtests/unit/activation/test_powershell.py119 return f'if ($env:{var} -eq $null) {{ "None" }} else {{ $env:{var} }}'CODE
Excessive Try-Catch Wrapping15 hits · 16 pts
SeverityFileLineSnippetContext
LOWtests/unit/test_util.py43 except Exception: # noqa: BLE001, PERF203CODE
LOW…ts/unit/seed/embed/test_bootstrap_link_via_app_data.py246 except Exception as exception: # noqa: BLE001CODE
MEDIUM…ts/unit/seed/embed/test_bootstrap_link_via_app_data.py242def _run(name) -> None:CODE
LOWtests/unit/activation/conftest.py44 except Exception as exception:CODE
LOWsrc/virtualenv/app_data/via_disk_folder.py136 except Exception: # noqa: BLE001, S110CODE
LOWsrc/virtualenv/seed/embed/via_app_data/via_app_data.py72 except Exception: # noqa: BLE001CODE
LOWsrc/virtualenv/seed/embed/via_app_data/via_app_data.py110 except Exception as exception:CODE
LOWsrc/virtualenv/seed/wheels/periodic_update.py358 except Exception as exception: # noqa: BLE001CODE
LOWsrc/virtualenv/seed/wheels/periodic_update.py394 except Exception as exception: # noqa: BLE001CODE
LOWsrc/virtualenv/config/convert.py88 except Exception as exception:CODE
LOWsrc/virtualenv/config/ini.py52 except Exception as exc: # noqa: BLE001CODE
LOWsrc/virtualenv/config/ini.py70 except Exception: # noqa: BLE001CODE
LOWsrc/virtualenv/create/creator.py270 except Exception as exception: # noqa: BLE001CODE
LOW…ualenv/create/via_global_ref/builtin/cpython/mac_os.py134 except Exception as e: # noqa: BLE001STRING
LOW…ualenv/create/via_global_ref/builtin/cpython/mac_os.py139 except Exception:STRING
Fake / Example Data3 hits · 4 pts
SeverityFileLineSnippetContext
LOWtests/unit/seed/wheels/test_bundle.py104 fake_name = "fake-0.0.1-py3-none-any.whl"CODE
LOWtests/unit/seed/wheels/test_bundle.py105 fake = tmp_path / fake_nameCODE
LOWtests/unit/seed/wheels/test_bundle.py107 monkeypatch.setitem(BUNDLE_SHA256, fake_name, "0" * 64)CODE
Verbosity Indicators2 hits · 3 pts
SeverityFileLineSnippetContext
LOWtests/unit/activation/conftest.py160 # So we need to check if the prompt exists on any of them.COMMENT
LOWtests/unit/activation/test_fish.py131 # So we need to check if the prompt exists on any of them.COMMENT
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOWsrc/virtualenv/activation/python/activate_this.py29# Set PKG_CONFIG_PATH to include the virtualenv's pkgconfig directoryCOMMENT