AI Slop Code RIsk Monitor

pdm-project/pdm

A modern Python package and dependency manager supporting the latest PEP standards

24.2 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for pdm-project/pdm, a Python project with 8,665 GitHub stars. SynthScan examined 51,074 lines of code across 258 source files, recording 1116 pattern matches distributed across 15 syntactic categories. The legacy adjusted pattern signal is 24.2 (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.

24.2
Adjusted Signal
24.2
Raw Pattern Score
100%
Time Factor
2026-10-09
Last Push
8.7K
Stars
Python
Language
51.1K
Lines of Code
258
Files
1.1K
Pattern Hits
2026-10-12
Scan Date
0.11
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 55.9/100 · HIGH

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

Hallucinated Dependency & Supply Chain Risk 20.8/100 · LOW

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

Agent Over-Engineering Ratio 58.4/100 · HIGH

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

PR Review Velocity Impact 72.1/100 · HIGH

Which changes need focused human review? 1116 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 7HIGH 22MEDIUM 8LOW 1079

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 1116 distinct pattern matches across 15 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 Identifiers777 hits · 728 pts
SeverityFileLineSnippetContext
LOWinstall-pdm.py54 def _get_win_folder_with_ctypes(csidl_name: str) -> str:CODE
LOWinstall-pdm.py80 def _get_win_folder_from_registry(csidl_name: str) -> str:CODE
LOWtasks/render_reference_docs.py80def render_configuration_table() -> str:CODE
LOWtasks/max_versions.py39def dump_python_version_module(dest_file) -> None:CODE
LOW⚡tests/test_utils.py151def test_add_ssh_scheme_to_git_uri(given, expected):CODE
LOW⚡tests/test_utils.py161 def test_non_windows_non_local_file_url(self):CODE
LOW⚡tests/test_utils.py166 def test_non_windows_localhost_local_file_url(self):CODE
LOW⚡tests/test_utils.py170 def test_windows_localhost_local_file_url(self):CODE
LOW⚡tests/test_utils.py494def test_validate_project_name(name):CODE
LOW⚡tests/test_utils.py499def test_invalidate_project_name(name):CODE
LOW⚡tests/test_utils.py507def test_sanitize_project_name(given, sanitized):CODE
LOW⚡tests/test_utils.py528def test_fs_supports_link_method_when_method_doesnt_exist():CODE
LOW⚡tests/test_utils.py532def test_convert_to_datetime_when_uppercase_t_is_present():CODE
LOW⚡tests/test_utils.py539def test_convert_to_datetime_when_uppercase_t_is_absent():CODE
LOW⚡tests/test_utils.py568def test_open_for_write_no_symlink_writes_regular_file(tmp_path):CODE
LOW⚡tests/test_utils.py576def test_open_for_write_no_symlink_truncates_existing_file(tmp_path):CODE
LOW⚡tests/test_utils.py584def test_open_for_write_no_symlink_refuses_symlinked_target(tmp_path):CODE
LOWtests/test_utils.py36def test_create_tracked_tempdir(mock_tempfile_mkdtemp, mock_os_makedirs, mock_atexit_register, given, dirname):CODE
LOWtests/test_utils.py76def test_url_without_fragments(given, expected):CODE
LOWtests/test_utils.py109 def test_no_git_username_and_email(self, git_patch, no_git_username_and_email_patch):CODE
LOWtests/test_utils.py136 def test_git_username_and_email(self, git_patch, git_username_and_email_patch):CODE
LOWtests/test_utils.py209def test_expand_env_vars_in_auth(given, expected, monkeypatch):CODE
LOWtests/test_utils.py254 def test_conda_env_with_conda_meta_in_bin(self, tmp_path: Path):CODE
LOWtests/test_utils.py264 def test_py_env_with_pyvenv_cfg(self, tmp_path: Path):CODE
LOWtests/test_utils.py276 def test_conda_env_with_conda_meta(self, tmp_path: Path):CODE
LOWtests/test_utils.py371 def test_not_direct_url_distribution(self, distribution, is_egg_link_patch):CODE
LOWtests/test_utils.py378 def test_direct_url_distribution(self, distribution, is_egg_link_patch):CODE
LOWtests/test_utils.py440def test_dependency_group_selection(project, args, golden):CODE
LOWtests/test_utils.py454def test_exclude_optional_groups_from_all(project, args, golden):CODE
LOWtests/test_utils.py460def test_prod_should_not_be_with_dev(project):CODE
LOWtests/test_utils.py482def test_comparable_version_keeps_parsed_version_intact():CODE
LOWtests/test_utils.py554def test_convert_to_datetime_when_relative_duration_is_given(monkeypatch, value, expected_datetime):CODE
LOWtests/test_utils.py602def test_atomic_open_for_write_with_bare_filename(tmp_path, monkeypatch, path_type):CODE
LOWtests/test_utils.py613def test_atomic_open_for_write_keeps_the_original_when_the_write_fails(tmp_path, mocker):CODE
LOWtests/test_utils.py628def test_atomic_open_for_write_keeps_the_destination_mode(tmp_path):CODE
LOWtests/test_plugin.py59def test_plugin_replace_command(pdm, mocker, project, core):CODE
LOWtests/test_plugin.py75def test_load_multiple_plugins(pdm, mocker, core):CODE
LOWtests/test_plugin.py91def test_old_entry_point_compatibility(pdm, mocker, core):CODE
LOWtests/test_plugin.py111def test_project_plugin_library(pdm, project, core, monkeypatch):CODE
LOWtests/test_plugin.py134def test_install_local_plugin_without_name(pdm, project, core, monkeypatch, req_str):CODE
LOWtests/test_plugin.py156def test_project_plugin_directory_is_isolated_by_project_root(project, tmp_path):CODE
LOWtests/test_installer.py58def test_install_wheel_with_inconsistent_dist_info(project):CODE
LOWtests/test_installer.py69def test_install_with_file_existing(project):CODE
LOWtests/test_installer.py83def test_uninstall_commit_rollback(project):CODE
LOWtests/test_installer.py101def test_rollback_after_commit(project, caplog):CODE
LOWtests/test_installer.py126def test_uninstall_with_console_scripts(project, use_install_cache):CODE
LOWtests/test_installer.py144def test_install_wheel_with_cache(project, pdm, supports_link):CODE
LOWtests/test_installer.py183def test_can_install_wheel_with_cache_in_multiple_projects(CODE
LOWtests/test_installer.py216def test_url_requirement_is_not_cached(project):CODE
LOWtests/test_installer.py232def test_editable_is_not_cached(project, tmp_path_factory):CODE
LOWtests/test_installer.py262def test_install_wheel_with_data_scripts(project, use_install_cache):STRING
LOWtests/test_installer.py280def test_windows_record_uses_relative_paths_for_data_scripts(tmp_path, mocker):STRING
LOWtests/test_installer.py305def test_compress_file_list_for_rename():STRING
LOWtests/test_signals.py21def test_post_lock_and_install_signals(project, pdm):CODE
LOWtests/test_signals.py36def test_lock_and_install_signals_injection_with_add(project, pdm):CODE
LOWtests/test_signals.py65def test_lock_and_install_signals_injection_with_install(project, pdm):CODE
LOWtests/test_signals.py96def test_lock_signals_injection_with_update(project, pdm):CODE
LOWtests/test_requirements_export_relative.py8def test_export_editable_local_path_as_relative(project):CODE
LOWtests/test_installer_manager.py9def test_install_passes_candidate_options(mocker):CODE
LOWtests/test_installer_manager.py39def test_install_does_not_cache_editable_candidate(mocker):CODE
717 more matches not shown…
Unused Imports146 hits · 146 pts
SeverityFileLineSnippetContext
LOWinstall-pdm.py1CODE
LOWtasks/release.py1CODE
LOWtasks/release.py13CODE
LOWtasks/render_reference_docs.py1CODE
LOWtasks/max_versions.py1CODE
LOWtests/conftest.py1CODE
LOWtests/test_installer.py1CODE
LOWtests/test_installer_manager.py1CODE
LOWtests/test_synchronizer_base.py1CODE
LOWtests/test_project.py1CODE
LOWtests/models/test_candidates.py1CODE
LOWtests/models/test_auth.py1CODE
LOWtests/models/test_session.py1CODE
LOWtests/models/test_locked_repository.py1CODE
LOWtests/models/test_requirements.py1CODE
LOWtests/models/test_working_set.py1CODE
LOWtests/cli/conftest.py1CODE
LOWtests/resolver/test_providers.py1CODE
LOWsrc/pdm/_types.py1CODE
LOWsrc/pdm/compat.py1CODE
LOWsrc/pdm/compat.py15CODE
LOWsrc/pdm/compat.py17CODE
LOWsrc/pdm/core.py9CODE
LOWsrc/pdm/termui.py1CODE
LOWsrc/pdm/pytest.py22CODE
LOWsrc/pdm/utils.py5CODE
LOWsrc/pdm/exceptions.py1CODE
LOWsrc/pdm/formats/setup_py.py1CODE
LOWsrc/pdm/formats/pipfile.py1CODE
LOWsrc/pdm/formats/pylock.py1CODE
LOWsrc/pdm/formats/poetry.py1CODE
LOWsrc/pdm/formats/__init__.py1CODE
LOWsrc/pdm/formats/__init__.py6CODE
LOWsrc/pdm/formats/requirements.py1CODE
LOWsrc/pdm/formats/flit.py1CODE
LOWsrc/pdm/formats/uv.py1CODE
LOWsrc/pdm/formats/base.py1CODE
LOWsrc/pdm/builders/editable.py1CODE
LOWsrc/pdm/builders/__init__.py1CODE
LOWsrc/pdm/builders/__init__.py2CODE
LOWsrc/pdm/builders/__init__.py3CODE
LOWsrc/pdm/builders/sdist.py1CODE
LOWsrc/pdm/builders/base.py1CODE
LOWsrc/pdm/builders/wheel.py1CODE
LOWsrc/pdm/environments/local.py1CODE
LOWsrc/pdm/environments/__init__.py1CODE
LOWsrc/pdm/environments/__init__.py1CODE
LOWsrc/pdm/environments/__init__.py2CODE
LOWsrc/pdm/environments/__init__.py3CODE
LOWsrc/pdm/environments/python.py1CODE
LOWsrc/pdm/environments/base.py1CODE
LOWsrc/pdm/models/auth.py1CODE
LOWsrc/pdm/models/finder.py1CODE
LOWsrc/pdm/models/caches.py1CODE
LOWsrc/pdm/models/reporter.py1CODE
LOWsrc/pdm/models/session.py1CODE
LOWsrc/pdm/models/venv.py1CODE
LOWsrc/pdm/models/project_info.py1CODE
LOWsrc/pdm/models/backends.py1CODE
LOWsrc/pdm/models/setup.py1CODE
86 more matches not shown…
Empty Error Handlers22 hits · 110 pts
SeverityFileLineSnippetContext
HIGHinstall-pdm.py264except SystemExit:CODE
HIGHtests/cli/test_publish.py61except OSError:CODE
HIGHsrc/pdm/core.py381except ModuleNotFoundError:CODE
HIGHsrc/pdm/pytest.py150except KeyError:CODE
HIGHsrc/pdm/formats/base.py69except Unset:CODE
HIGHsrc/pdm/formats/base.py80except KeyError:CODE
HIGHsrc/pdm/environments/local.py34except zipfile.BadZipFile:CODE
HIGHsrc/pdm/models/requirements.py325except ValueError:CODE
HIGHsrc/pdm/models/candidates.py241except InvalidPyVersion:CODE
HIGHsrc/pdm/cli/commands/search.py44except UnicodeEncodeError:CODE
HIGHsrc/pdm/cli/commands/publish/package.py61except ValueError:CODE
HIGHsrc/pdm/cli/commands/publish/package.py65except (TypeError, ValueError):CODE
HIGHsrc/pdm/project/config.py527except KeyError:CODE
HIGHsrc/pdm/project/core.py916except OSError:CODE
HIGHsrc/pdm/project/core.py470except AssertionError:CODE
HIGHsrc/pdm/pep582/sitecustomize.py54except ImportError:CODE
HIGHsrc/pdm/resolver/providers.py491except CandidateNotFound:CODE
HIGHsrc/pdm/resolver/providers.py247except InvalidVersion: # pragma: no coverCODE
HIGHsrc/pdm/resolver/resolvelib.py70except ValueError:CODE
HIGHsrc/pdm/installers/uninstallers.py40except OSError:CODE
HIGHsrc/pdm/installers/uninstallers.py288except FileNotFoundError:CODE
HIGHsrc/pdm/installers/synchronizers.py236except KeyboardInterrupt:CODE
Hallucination Indicators7 hits · 70 pts
SeverityFileLineSnippetContext
CRITICALsrc/pdm/models/repositories/lock.py288 excludes = {normalize_name(k) for k in self.environment.project.pyproject.resolution.get("excludes", [])}CODE
CRITICALsrc/pdm/models/repositories/base.py137 ignore_settings: list[str] = self.environment.project.pyproject.settings.get("ignore_package_warnings", [])CODE
CRITICALsrc/pdm/models/repositories/base.py292 respect_source_order = self.environment.project.pyproject.settings.get("resolution", {}).get(CODE
CRITICALsrc/pdm/resolver/providers.py191 for k, v in self.repository.environment.project.pyproject.resolution.get("overrides", {}).items()CODE
CRITICALsrc/pdm/resolver/uv.py110 for package, dt in self.project.core.state.exclude_newer_overrides.items():CODE
CRITICALsrc/pdm/installers/uv.py36 self.environment.project.core.ui.echo("[warning]uv doesn't support dry run mode, skipping installation")CODE
CRITICALsrc/pdm/installers/uv.py51 self.environment.project.core.ui.echo(f"Running uv sync command: {cmd}", verbosity=Verbosity.DETAIL)CODE
Deep Nesting64 hits · 64 pts
SeverityFileLineSnippetContext
LOWinstall-pdm.py124CODE
LOWtasks/render_reference_docs.py36CODE
LOWsrc/pdm/termui.py227CODE
LOWsrc/pdm/pytest.py105CODE
LOWsrc/pdm/formats/pylock.py33CODE
LOWsrc/pdm/formats/pylock.py111CODE
LOWsrc/pdm/formats/poetry.py81CODE
LOWsrc/pdm/formats/poetry.py210CODE
LOWsrc/pdm/formats/requirements.py33CODE
LOWsrc/pdm/formats/uv.py189CODE
LOWsrc/pdm/formats/uv.py202CODE
LOWsrc/pdm/builders/base.py285CODE
LOWsrc/pdm/models/caches.py278CODE
LOWsrc/pdm/models/session.py105CODE
LOWsrc/pdm/models/venv.py57CODE
LOWsrc/pdm/models/setup.py113CODE
LOWsrc/pdm/models/setup.py273CODE
LOWsrc/pdm/models/setup.py427CODE
LOWsrc/pdm/models/requirements.py261CODE
LOWsrc/pdm/models/versions.py35CODE
LOWsrc/pdm/models/repositories/lock.py92CODE
LOWsrc/pdm/models/repositories/lock.py110CODE
LOWsrc/pdm/models/repositories/lock.py246CODE
LOWsrc/pdm/models/repositories/lock.py301CODE
LOWsrc/pdm/cli/actions.py41CODE
LOWsrc/pdm/cli/actions.py176CODE
LOWsrc/pdm/cli/actions.py428CODE
LOWsrc/pdm/cli/utils.py337CODE
LOWsrc/pdm/cli/utils.py402CODE
LOWsrc/pdm/cli/utils.py530CODE
LOWsrc/pdm/cli/utils.py674CODE
LOWsrc/pdm/cli/completions/__init__.py98CODE
LOWsrc/pdm/cli/completions/__init__.py165CODE
LOWsrc/pdm/cli/completions/__init__.py170CODE
LOWsrc/pdm/cli/templates/__init__.py62CODE
LOWsrc/pdm/cli/commands/update.py99CODE
LOWsrc/pdm/cli/commands/build.py31CODE
LOWsrc/pdm/cli/commands/run.py346CODE
LOWsrc/pdm/cli/commands/config.py105CODE
LOWsrc/pdm/cli/commands/list.py229CODE
LOWsrc/pdm/cli/commands/export.py70CODE
LOWsrc/pdm/cli/commands/python.py68CODE
LOWsrc/pdm/cli/commands/python.py135CODE
LOWsrc/pdm/cli/commands/init.py155CODE
LOWsrc/pdm/cli/commands/info.py30CODE
LOWsrc/pdm/cli/commands/publish/__init__.py125CODE
LOWsrc/pdm/project/project_file.py39CODE
LOWsrc/pdm/project/core.py211CODE
LOWsrc/pdm/project/core.py451CODE
LOWsrc/pdm/project/core.py1003CODE
LOWsrc/pdm/project/core.py461CODE
LOWsrc/pdm/project/lockfile/freshness.py98CODE
LOWsrc/pdm/project/lockfile/pdmlock.py92CODE
LOWsrc/pdm/resolver/providers.py105CODE
LOWsrc/pdm/resolver/providers.py230CODE
LOWsrc/pdm/resolver/resolvelib.py48CODE
LOWsrc/pdm/resolver/reporters.py41CODE
LOWsrc/pdm/resolver/uv.py116CODE
LOWsrc/pdm/installers/uninstallers.py44CODE
LOWsrc/pdm/installers/uninstallers.py157CODE
4 more matches not shown…
Excessive Try-Catch Wrapping25 hits · 26 pts
SeverityFileLineSnippetContext
MEDIUMinstall-pdm.py42 print(f"An error occurred when executing {args}:", file=sys.stderr)CODE
LOWsrc/pdm/core.py287 except Exception:CODE
LOWsrc/pdm/core.py370 except Exception as e:CODE
LOWsrc/pdm/termui.py284 except Exception:CODE
LOWsrc/pdm/pytest.py642 except Exception as e:CODE
LOWsrc/pdm/utils.py47except Exception:CODE
LOWsrc/pdm/utils.py179 except Exception:CODE
LOWsrc/pdm/formats/base.py71 except Exception as e:CODE
LOWsrc/pdm/builders/base.py217 except Exception as e:CODE
LOWsrc/pdm/models/auth.py96 except Exception:CODE
LOWsrc/pdm/models/auth.py109 except Exception:CODE
LOWsrc/pdm/models/auth.py122 except Exception:CODE
LOWsrc/pdm/models/caches.py297 except Exception: # pragma: no coverCODE
LOWsrc/pdm/models/candidates.py573 except Exception:CODE
LOWsrc/pdm/models/candidates.py608 except Exception:CODE
LOWsrc/pdm/cli/actions.py415 except Exception as e:CODE
LOWsrc/pdm/cli/completions/__init__.py153 except Exception:CODE
LOWsrc/pdm/cli/commands/use.py105 except Exception as e:CODE
LOWsrc/pdm/cli/commands/list.py423 except Exception as err:CODE
LOWsrc/pdm/project/core.py708 except Exception: # pragma: no coverCODE
LOWsrc/pdm/project/core.py996 except Exception as e:CODE
LOWsrc/pdm/installers/synchronizers.py40 except Exception:CODE
LOWsrc/pdm/installers/synchronizers.py61 except Exception:CODE
LOWsrc/pdm/installers/synchronizers.py88 except Exception:CODE
LOWsrc/pdm/installers/synchronizers.py207 except Exception:CODE
Self-Referential Comments7 hits · 26 pts
SeverityFileLineSnippetContext
MEDIUM⚡tests/environments/test_shebangs.py53 # Create a fake script under the environment's scripts dirCOMMENT
MEDIUM⚡tests/environments/test_environment.py103 # Create the expected wheel pathCOMMENT
MEDIUM⚡tests/models/test_setup_parsing_extra.py193 # Create a dummy PyProject that raises ProjectError on unwrap()COMMENT
MEDIUM⚡tests/cli/test_info.py86 # Create a venvCOMMENT
MEDIUMsrc/pdm/formats/requirements.py254 lines = ["# This file is @generated by PDM.\n# Please do not edit it manually.\n\n"]CODE
MEDIUMsrc/pdm/models/candidates.py80 # This function is called when a lock file candidate is given or incompatible wheelCOMMENT
MEDIUMsrc/pdm/installers/base.py113 # Create a new candidate with editable=FalseCOMMENT
Modern Structural Boilerplate26 hits · 26 pts
SeverityFileLineSnippetContext
LOWsrc/pdm/compat.py74__all__ = ["CompatibleSequence", "tomllib"]CODE
LOWsrc/pdm/termui.py27logger = logging.getLogger(__name__)CODE
LOWsrc/pdm/termui.py192 def set_verbosity(self, verbosity: int) -> None:CODE
LOWsrc/pdm/termui.py199 def set_theme(self, theme: Theme) -> None:CODE
LOWsrc/pdm/builders/__init__.py5__all__ = ["EditableBuilder", "SdistBuilder", "WheelBuilder"]CODE
LOWsrc/pdm/environments/local.py115 def update_shebangs(self, new_path: str) -> None:CODE
LOWsrc/pdm/environments/__init__.py5__all__ = [CODE
LOWsrc/pdm/cli/utils.py591def set_env_in_reg(env_name: str, value: str) -> None:CODE
LOWsrc/pdm/cli/completions/__init__.py161def _set_completer(action: argparse.Action, completer: Callable[..., object]) -> None:CODE
LOWsrc/pdm/cli/completions/__init__.py196__all__ = ["configure_parser"]CODE
LOWsrc/pdm/cli/commands/config.py97 def _set_config(self, project: Project, options: argparse.Namespace) -> None:CODE
LOWsrc/pdm/cli/commands/init.py135 def set_interactive(self, value: bool) -> None:CODE
LOWsrc/pdm/cli/commands/init.py300 def set_python(self, project: Project, python: str | None, hooks: HookManager) -> None:CODE
LOWsrc/pdm/project/toml_file.py53 def set_data(self, data: dict[str, Any]) -> None:CODE
LOWsrc/pdm/project/__init__.py4__all__ = ["Config", "ConfigItem", "Project"]CODE
LOWsrc/pdm/project/core.py233 def set_lockfile(self, path: str | Path) -> None:CODE
LOWsrc/pdm/project/core.py800 def update_dev_dependencies(deps: list[str]) -> None:CODE
LOWsrc/pdm/project/lockfile/pdmlock.py61 def update_hash(self, hash_value: str, algo: str = "sha256") -> None:CODE
LOWsrc/pdm/project/lockfile/pylock.py25 def update_hash(self, hash_value: str, algo: str = "sha256") -> None:CODE
LOWsrc/pdm/project/lockfile/__init__.py26__all__ = [CODE
LOWsrc/pdm/project/lockfile/base.py51 def update_hash(self, hash_value: str, algo: str = "sha256") -> None:CODE
LOWsrc/pdm/project/lockfile/base.py104 def set_data(self, data: Mapping[str, Any]) -> None:CODE
LOWsrc/pdm/resolver/__init__.py5__all__ = ["RLResolver", "Resolver", "UvResolver"]CODE
LOWsrc/pdm/resolver/uv.py26logger = logging.getLogger(__name__)CODE
LOWsrc/pdm/installers/__init__.py6__all__ = ["BaseSynchronizer", "InstallManager", "Synchronizer", "UvSynchronizer"]CODE
LOWsrc/pdm/installers/synchronizers.py182 def update_progress(future: Future, kind: str, key: str) -> None:CODE
Fake / Example Data26 hits · 23 pts
SeverityFileLineSnippetContext
LOW⚡tests/test_formats.py497 ("Jane Doe <jane@example.com>", {"name": "Jane Doe", "email": "jane@example.com"}),CODE
LOW⚡tests/test_formats.py499 ("Jane Doe", {"name": "Jane Doe"}),CODE
LOWtests/cli/test_run.py437 spaced_dir = tmp_path / "Jane Doe" / "Project"CODE
LOW⚡tests/cli/test_init.py33 return_value=("Testing", "me@example.org"),CODE
LOW⚡tests/cli/test_init.py39 "authors": [{"email": "me@example.org", "name": "Testing"}],CODE
LOW⚡tests/cli/test_init.py109 "Author email": "author@example.org",CODE
LOW⚡tests/cli/test_init.py557 return_value=("Testing", "me@example.org"),CODE
LOWtests/cli/test_init.py89 return_value=("Git User", "git@example.org"),CODE
LOWtests/cli/test_init.py144 return_value=("Testing", "me@example.org"),CODE
LOWtests/cli/test_init.py155 assert data["project"]["authors"] == [{"name": "Existing Author", "email": "author@example.org"}]CODE
LOWtests/cli/test_init.py186 return_value=("Testing", "me@example.org"),CODE
LOWtests/cli/test_init.py250 return_value=("Testing", "me@example.org"),CODE
LOWtests/cli/test_init.py261 "authors": [{"email": "me@example.org", "name": "Testing"}],CODE
LOWtests/cli/test_init.py406 return_value=("Testing", "me@example.org"),CODE
LOWtests/cli/test_init.py417 "authors": [{"email": "me@example.org", "name": "Testing"}],CODE
LOWtests/cli/test_init.py460 return_value=("Testing", "me@example.org"),CODE
LOWtests/cli/test_init.py471 "authors": [{"email": "me@example.org", "name": "Testing"}],CODE
LOWtests/cli/test_init.py490 return_value=("Testing", "me@example.org"),CODE
LOWtests/cli/test_init.py507 "authors": [{"email": "me@example.org", "name": "Testing"}],CODE
LOWtests/cli/test_init.py575 "authors": [{"email": "me@example.org", "name": "Testing"}],CODE
LOWtests/cli/test_init.py594 return_value=("Testing", "me@example.org"),CODE
LOWtests/cli/test_init.py612 "authors": [{"email": "me@example.org", "name": "Testing"}],CODE
LOW⚡tests/cli/test_init.py127 authors = [{name = "Existing Author", email = "author@example.org"}]STRING
LOWtests/cli/test_init.py63 authors = [{name = "Existing Author", email = "author@example.org"}]STRING
LOWdocs/reference/pep621.md19 Lorem ipsum dolor sit amet, consectetur adipiscing elit, \CODE
LOWdocs/reference/pep621.md19 Lorem ipsum dolor sit amet, consectetur adipiscing elit, \CODE
AI Structural Patterns7 hits · 7 pts
SeverityFileLineSnippetContext
LOWsrc/pdm/cli/actions.py41CODE
LOWsrc/pdm/cli/actions.py278CODE
LOWsrc/pdm/cli/filters.py110CODE
LOWsrc/pdm/cli/commands/update.py99CODE
LOWsrc/pdm/cli/commands/use.py138CODE
LOWsrc/pdm/cli/commands/add.py95CODE
LOWsrc/pdm/installers/base.py46CODE
AI Slop Vocabulary2 hits · 4 pts
SeverityFileLineSnippetContext
LOW⚡tests/environments/test_environment.py106 # Avoid network: stub out the download function to just create the fileCOMMENT
LOWsrc/pdm/environments/base.py284 # The pip has already been installed with the executable, just use itCOMMENT
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippetContext
LOWinstall-pdm.sh241 # Check if sha256sum is availableCOMMENT
LOWinstall-pdm.sh288 # Check if already in PATHCOMMENT
Over-Commented Block2 hits · 2 pts
SeverityFileLineSnippetContext
LOWdocs/usage/scripts.md61# /// scriptCOMMENT
LOWsrc/pdm/misc/sysconfig_patcher.py1# Copyright 2024 Ulrik Sverdrup "bluss"COMMENT
Overly Generic Function Names2 hits · 2 pts
SeverityFileLineSnippetContext
LOWsrc/pdm/pytest.py105 def handle_request(self, request: httpx.Request) -> httpx.Response:CODE
LOWsrc/pdm/cli/commands/run.py346 def run_task(CODE
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
LOW.github/workflows/release.yml10 # make sure to work on WindowsCOMMENT