AI Slop Code RIsk Monitor

pypa/pipx

Install and Run Python Applications in Isolated Environments

26.6 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for pypa/pipx, a Python project with 12,979 GitHub stars. SynthScan examined 35,577 lines of code across 166 source files, recording 957 pattern matches distributed across 10 syntactic categories. The legacy adjusted pattern signal is 26.6 (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.

26.6
Adjusted Signal
26.6
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
13.0K
Stars
Python
Language
35.6K
Lines of Code
166
Files
957
Pattern Hits
2026-10-12
Scan Date
0.07
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 62.1/100 · HIGH

Can maintainers explain intent, assumptions, and trade-offs? 723 finding(s).

Hallucinated Dependency & Supply Chain Risk 20.8/100 · LOW

Are imports declared and package/API names verified? 169 finding(s).

Agent Over-Engineering Ratio 64.4/100 · HIGH

Are wrappers, guards, and repeated structures necessary? 758 finding(s).

PR Review Velocity Impact 76.3/100 · CRITICAL

Which changes need focused human review? 957 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

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.

Severity Breakdown

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.

CRITICAL 0HIGH 11MEDIUM 7LOW 939

Directory Score Breakdown

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.

Pattern Findings

The scanner identified 957 distinct pattern matches across 10 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.

Hyper-Verbose Identifiers689 hits · 642 pts
SeverityFileLineSnippetContext
LOWtests/test_requires_python.py42def test_rejected_constraint_reads_the_backend_complaint(output: str, expected: str | None) -> None:CODE
LOWtests/test_requires_python.py58def test_unsatisfied_constraint_reports_only_a_mismatch(CODE
LOW⚡tests/test_requires_python.py83def test_interpreter_for_takes_the_newest_installed_match(mocker: MockerFixture) -> None:CODE
LOW⚡tests/test_requires_python.py89def test_interpreter_for_skips_a_version_the_system_lacks(mocker: MockerFixture) -> None:CODE
LOW⚡tests/test_requires_python.py95def test_interpreter_for_accepts_a_patch_above_a_lower_bound(mocker: MockerFixture) -> None:CODE
LOW⚡tests/test_requires_python.py101def test_interpreter_for_rejects_a_patch_above_an_upper_bound(mocker: MockerFixture) -> None:CODE
LOW⚡tests/test_requires_python.py107def test_interpreter_for_rejects_every_patch_below_a_lower_bound(mocker: MockerFixture) -> None:CODE
LOW⚡tests/test_requires_python.py114def test_interpreter_for_fetches_when_the_caller_allows_it(mocker: MockerFixture) -> None:CODE
LOW⚡tests/test_requires_python.py120def test_interpreter_for_reports_a_system_without_a_match(mocker: MockerFixture) -> None:CODE
LOW⚡tests/test_requires_python.py127def test_interpreter_for_reports_a_constraint_no_release_meets() -> None:CODE
LOWtests/test_requires_python.py144def project_excluding_this_python(tmp_path: Path) -> Path:CODE
LOWtests/test_requires_python.py164def test_install_moves_to_a_python_the_package_supports(CODE
LOWtests/test_transaction.py11def test_preserve_venv_keeps_the_backup_out_of_the_venv_namespace() -> None:CODE
LOWtests/test_transaction.py24def test_preserve_venv_restores_the_backup_on_failure() -> None:CODE
LOW⚡tests/test_ensurepath.py55def test_ensure_path_dry_run_does_not_append(mock_userpath: FakeUserpath, capsys: pytest.CaptureFixture[str]) -> None:CODE
LOW⚡tests/test_ensurepath.py65def test_ensure_path_dry_run_reports_prepend(mock_userpath: FakeUserpath, capsys: pytest.CaptureFixture[str]) -> None:CODE
LOW⚡tests/test_ensurepath.py73def test_ensure_path_non_dry_run_still_appends(mock_userpath: FakeUserpath, capsys: pytest.CaptureFixture[str]) -> None:CODE
LOW⚡tests/test_ensurepath.py81def test_ensure_pipx_paths_dry_run_footer(mock_userpath: FakeUserpath, capsys: pytest.CaptureFixture[str]) -> None:CODE
LOWtests/test_ensurepath.py110def test_ensure_pipx_paths_global_updates_system_profile(CODE
LOWtests/test_ensurepath.py126def test_ensure_pipx_paths_global_skips_userpath(mocker: MockerFixture, tmp_path: Path) -> None:CODE
LOWtests/test_ensurepath.py137def test_ensure_pipx_paths_global_dry_run_does_not_write(CODE
LOWtests/test_ensurepath.py150def test_ensure_pipx_paths_global_configuration_is_world_readable(mocker: MockerFixture, tmp_path: Path) -> None:CODE
LOWtests/test_ensurepath.py163def test_ensure_pipx_paths_global_reports_existing_configuration(CODE
LOWtests/test_ensurepath.py179def test_ensurepath_cli_global_writes_system_configuration(mocker: MockerFixture, tmp_path: Path) -> None:CODE
LOWtests/test_inject.py63def test_inject_json_reports_locked_environment(CODE
LOWtests/test_inject.py98def test_inject_json_reports_already_installed(CODE
LOWtests/test_inject.py130def test_inject_json_reports_partial_failure(CODE
LOWtests/test_inject.py174def test_inject_json_reports_no_packages(CODE
LOWtests/test_inject.py221def test_inject_rejects_pylock(CODE
LOWtests/test_inject.py250def test_inject_single_package(CODE
LOWtests/test_inject.py281def test_inject_main_package_extra(CODE
LOWtests/test_inject.py312def test_inject_simple_global() -> None:CODE
LOWtests/test_inject.py319def test_inject_simple_legacy_venv(CODE
LOWtests/test_inject.py353def test_inject_include_resources_from_dependency(CODE
LOWtests/test_inject.py373def test_inject_main_package_preserves_included_dependency(CODE
LOWtests/test_inject.py386def test_inject_force_replaces_included_dependency_resources(CODE
LOWtests/test_inject.py406def test_inject_include_resources_from_missing_dependency_rolls_back(CODE
LOWtests/test_inject.py434def test_inject_with_req_file(CODE
LOWtests/test_inject.py482def test_force_inject_reinstalls_without_storing_force(caplog: pytest.LogCaptureFixture) -> None:STRING
LOWtests/test_inject.py503def test_inject_inherits_cooldown(STRING
LOWtests/test_result_contract.py43def test_contract_success_envelope(capsys: pytest.CaptureFixture[str]) -> None:CODE
LOWtests/test_result_contract.py56def test_contract_error_envelope_names_the_failure(CODE
LOWtests/test_result_contract.py68def test_contract_dispatch_error_uses_the_envelope(CODE
LOWtests/conftest.py86def make_project_with_dependency(root: Path, tmp_path: Path) -> Callable[[str], Path]:STRING
LOWtests/conftest.py128def copied_dependency_resource(STRING
LOWtests/test_list.py52def test_list_allows_read_only_venv_lock(tmp_path: Path, mocker: MockerFixture) -> None:CODE
LOWtests/test_list.py143def test_list_returns_problem_for_corrupt_metadata(metadata: str) -> None:CODE
LOWtests/test_list.py152def test_list_suffix_legacy_venv(capsys: pytest.CaptureFixture[str], metadata_version: str) -> None:CODE
LOWtests/test_list.py234def test_list_json_rejects_human_filter(CODE
LOWtests/test_list.py246def test_list_selected_package_text(capsys: pytest.CaptureFixture[str]) -> None:CODE
LOWtests/test_list.py258def test_list_selected_packages_json(capsys: pytest.CaptureFixture[str]) -> None:CODE
LOWtests/test_list.py278def test_list_selected_package_short(CODE
LOWtests/test_list.py292def test_list_selected_package_with_suffix(capsys: pytest.CaptureFixture[str]) -> None:CODE
LOWtests/test_list.py302def test_list_selected_package_pinned(capsys: pytest.CaptureFixture[str]) -> None:CODE
LOWtests/test_list.py314def test_list_rejects_missing_selected_package(CODE
LOWtests/test_list.py322def test_list_injected_apps_without_symlinks(CODE
LOWtests/test_list.py337def test_list_waits_for_install(tmp_path: Path) -> None:CODE
LOWtests/test_list.py357def test_install_does_not_wait_for_other_environment(tmp_path: Path) -> None:CODE
LOWtests/test_list.py382def test_list_standalone_interpreter(monkeypatch: pytest.MonkeyPatch, capsys: pytest.CaptureFixture[str]) -> None:CODE
LOWtests/test_list.py408def test_list_does_not_trigger_maintenance() -> None:CODE
629 more matches not shown…
Unused Imports165 hits · 148 pts
SeverityFileLineSnippetContext
LOWget-pipx.py2CODE
LOWhatch_build.py1CODE
LOWtests/test_requires_python.py1CODE
LOWtests/test_transaction.py1CODE
LOWtests/package_info.py1CODE
LOWtests/test_ensurepath.py1CODE
LOWtests/test_inject.py1CODE
LOWtests/test_result_contract.py1CODE
LOWtests/conftest.py1CODE
LOWtests/test_list.py1CODE
LOWtests/test_uninstall.py1CODE
LOWtests/test_max_logs.py3CODE
LOWtests/test_common.py1CODE
LOWtests/test_animate.py1CODE
LOWtests/test_uninject.py1CODE
LOWtests/test_venv_inspect.py1CODE
LOWtests/test_pin.py1CODE
LOWtests/test_unpin.py1CODE
LOWtests/test_install_all.py1CODE
LOWtests/test_backends_install.py1CODE
LOWtests/test_script.py1CODE
LOWtests/test_run.py1CODE
LOWtests/test_expose.py1CODE
LOWtests/test_upgrade.py1CODE
LOWtests/test_imports.py1CODE
LOWtests/test_uninstall_all.py1CODE
LOWtests/test_reinstall.py1CODE
LOWtests/test_venv.py1CODE
LOWtests/test_completions_expose.py1CODE
LOWtests/test_shared_libs.py1CODE
LOWtests/test_execute.py1CODE
LOWtests/test_manifest.py1CODE
LOWtests/test_util.py1CODE
LOWtests/test_upgrade_shared.py1CODE
LOWtests/test_pth_encoding.py1CODE
LOWtests/test_outdated.py1CODE
LOWtests/test_standalone_interpreter.py1CODE
LOWtests/test_pipx_metadata_file.py1CODE
LOWtests/test_subprocess_env.py1CODE
LOWtests/test_upgrade_all.py1CODE
LOWtests/test_docs_urls.py1CODE
LOWtests/test_paths.py1CODE
LOWtests/test_backends.py1CODE
LOWtests/test_health.py1CODE
LOWtests/test_self_managed.py1CODE
LOWtests/test_completions.py1CODE
LOWtests/test_runpip.py1CODE
LOWtests/test_interpreter.py1CODE
LOWtests/test_reset.py1CODE
LOWtests/test_package_specifier.py1CODE
LOWtests/test_run_uv.py1CODE
LOWtests/test_reinstall_all.py1CODE
LOWtests/helpers.py1CODE
LOWtests/test_main.py1CODE
LOWtests/test_install.py1CODE
LOWtests/test_cache.py1CODE
LOWtests/test_environment.py1CODE
LOWtests/test_install_all_packages.py16CODE
LOWtests/test_emojis.py1CODE
LOWdocs/conf.py3CODE
105 more matches not shown…
Modern Structural Boilerplate53 hits · 49 pts
SeverityFileLineSnippetContext
LOWhatch_build.py27__all__ = [CODE
LOWsrc/pipx/animate.py147__all__ = [CODE
LOW⚡src/pipx/shared_libs.py31logger = logging.getLogger(__name__)CODE
LOWsrc/pipx/shared_libs.py236__all__ = [CODE
LOWsrc/pipx/paths.py175__all__ = [CODE
LOWsrc/pipx/util.py596__all__ = [STRING
LOWsrc/pipx/package_specifier.py26logger = logging.getLogger(__name__)CODE
LOWsrc/pipx/package_specifier.py330__all__ = [STRING
LOWsrc/pipx/venv.py833__all__ = [STRING
LOWsrc/pipx/self_install.py72__all__ = [CODE
LOWsrc/pipx/pipx_metadata_file.py397__all__ = [STRING
LOWsrc/pipx/emojis.py39__all__ = [CODE
LOWsrc/pipx/result.py123__all__ = [CODE
LOWsrc/pipx/interpreter.py19logger = logging.getLogger(__name__)CODE
LOWsrc/pipx/interpreter.py231__all__ = [CODE
LOWsrc/pipx/requires_python.py124__all__ = [CODE
LOWsrc/pipx/standalone_python.py384__all__ = [CODE
LOWsrc/pipx/main.py2112__all__ = [CODE
LOWsrc/pipx/script.py216__all__ = [CODE
LOWsrc/pipx/script.py256__all__ = [STRING
LOWsrc/pipx/venv_inspect.py26logger = logging.getLogger(__name__)CODE
LOWsrc/pipx/venv_inspect.py570__all__ = [CODE
LOWsrc/pipx/backends/_base.py160__all__ = [CODE
LOWsrc/pipx/backends/__init__.py70__all__ = [CODE
LOWsrc/pipx/backends/uv.py324__all__ = [STRING
LOWsrc/pipx/backends/pip.py181__all__ = [CODE
LOWsrc/pipx/commands/pin.py120def _update_pin_info(venv: Venv, package_name: str, *, is_main_package: bool, pinned: bool) -> None:CODE
LOWsrc/pipx/commands/pin.py180__all__ = [CODE
LOWsrc/pipx/commands/run.py630__all__ = [CODE
LOWsrc/pipx/commands/list_packages.py20logger = logging.getLogger(__name__)CODE
LOWsrc/pipx/commands/list_packages.py180__all__ = [CODE
LOWsrc/pipx/commands/manifest.py473__all__ = [CODE
LOWsrc/pipx/commands/health.py188__all__ = [CODE
LOWsrc/pipx/commands/transaction.py44__all__ = [CODE
LOWsrc/pipx/commands/execute.py65__all__ = [CODE
LOWsrc/pipx/commands/reset.py127__all__ = [CODE
LOWsrc/pipx/commands/run_uv.py181__all__ = [CODE
LOWsrc/pipx/commands/cache.py44__all__ = [CODE
LOWsrc/pipx/commands/__init__.py29__all__ = [CODE
LOWsrc/pipx/commands/uninject.py39logger = logging.getLogger(__name__)CODE
LOWsrc/pipx/commands/uninject.py301__all__ = [STRING
LOWsrc/pipx/commands/run_pip.py135__all__ = [CODE
LOWsrc/pipx/commands/upgrade.py573__all__ = [STRING
LOWsrc/pipx/commands/inject.py363__all__ = [STRING
LOWsrc/pipx/commands/interpreter.py215__all__ = [CODE
LOWsrc/pipx/commands/common.py727__all__ = [CODE
LOWsrc/pipx/commands/ensure_path.py17logger = logging.getLogger(__name__)CODE
LOWsrc/pipx/commands/uninstall.py247__all__ = [CODE
LOWsrc/pipx/commands/environment.py104__all__ = [CODE
LOWsrc/pipx/commands/install.py932__all__ = [CODE
LOWsrc/pipx/commands/outdated.py292__all__ = [CODE
LOWsrc/pipx/commands/expose.py152__all__ = [CODE
LOWsrc/pipx/commands/reinstall.py337__all__ = [CODE
Empty Error Handlers7 hits · 35 pts
SeverityFileLineSnippetContext
HIGHsrc/pipx/package_specifier.py85except InvalidRequirement:CODE
HIGHsrc/pipx/venv_inspect.py154except FileNotFoundError:CODE
HIGHsrc/pipx/venv_inspect.py177except FileNotFoundError:CODE
HIGHsrc/pipx/backends/uv.py241except FileNotFoundError:CODE
HIGHsrc/pipx/commands/common.py210except (FileNotFoundError, RuntimeError):CODE
HIGHsrc/pipx/commands/reinstall.py103except FileNotFoundError:CODE
HIGHsrc/pipx/commands/reinstall.py144except ValueError:CODE
Deep Nesting23 hits · 23 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py305CODE
LOWtests/helpers.py128CODE
LOWscripts/release.py44CODE
LOWscripts/update_package_cache.py55CODE
LOWsrc/pipx/animate.py83CODE
LOWsrc/pipx/venv.py220CODE
LOWsrc/pipx/venv.py385CODE
LOWsrc/pipx/venv.py694CODE
LOWsrc/pipx/pipx_metadata_file.py257CODE
LOWsrc/pipx/standalone_python.py152CODE
LOWsrc/pipx/standalone_python.py184CODE
LOWsrc/pipx/standalone_python.py238CODE
LOWsrc/pipx/venv_inspect.py72CODE
LOWsrc/pipx/commands/pin.py20CODE
LOWsrc/pipx/commands/list_packages.py97CODE
LOWsrc/pipx/commands/list_packages.py120CODE
LOWsrc/pipx/commands/manifest.py35CODE
LOWsrc/pipx/commands/manifest.py344CODE
LOWsrc/pipx/commands/upgrade.py85CODE
LOWsrc/pipx/commands/interpreter.py118CODE
LOWsrc/pipx/commands/install.py58CODE
LOWsrc/pipx/commands/install.py637CODE
LOWsrc/pipx/commands/outdated.py169CODE
Self-Referential Comments6 hits · 20 pts
SeverityFileLineSnippetContext
MEDIUM⚡tests/test_shared_libs.py64 # Create a fake venv structureCOMMENT
MEDIUM⚡tests/test_shared_libs.py71 # Create a pyvenv.cfg pointing to a non-existent PythonCOMMENT
MEDIUM⚡tests/test_shared_libs.py81 # Create a fake venv structureCOMMENT
MEDIUMtests/test_shared_libs.py94 # Create a pyvenv.cfg pointing to the existing PythonCOMMENT
MEDIUMsrc/pipx/interpreter.py141# The following code was copied from https://github.com/uranusjr/pipx-standaloneCOMMENT
MEDIUMsrc/pipx/main.py2015 "# This file is a cache directory tag created by pipx.\n"STRING
Cross-Language Confusion4 hits · 18 pts
SeverityFileLineSnippetContext
HIGHtests/test_pipx_metadata_file.py191 .replace('"cooldown_days": null, ', "")CODE
HIGHscripts/release.py31 repo.git.push(push_target, "HEAD:main")CODE
HIGHscripts/release.py32 repo.git.push(push_target, str(tag))CODE
HIGHsrc/pipx/constants.py134 autoload -U compinit && compinitSTRING
Excessive Try-Catch Wrapping5 hits · 6 pts
SeverityFileLineSnippetContext
LOWsrc/pipx/shared_libs.py227 except Exception:CODE
LOWsrc/pipx/main.py1716 except Exception as error:STRING
LOWsrc/pipx/main.py2100 except Exception:CODE
MEDIUMsrc/pipx/main.py1927def setup_log_file() -> Path:CODE
LOWsrc/pipx/commands/run.py624 except Exception as error:CODE
AI Structural Patterns4 hits · 4 pts
SeverityFileLineSnippetContext
LOWsrc/pipx/util.py191CODE
LOWsrc/pipx/commands/run.py88CODE
LOWsrc/pipx/commands/upgrade.py204CODE
LOWsrc/pipx/commands/install.py58CODE
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOWsrc/pipx/util.py223 # Set PYTHONSAFEPATH to prevent adding CWD to sys.path in subprocess Python commandsCOMMENT