A modern Python package and dependency manager supporting the latest PEP standards
This report presents the forensic synthetic code analysis of pdm-project/pdm, a Python project with 8,673 GitHub stars. SynthScan v2.0 examined 48,962 lines of code across 253 source files, recording 1017 pattern matches distributed across 14 syntactic categories. The overall adjusted score of 21.9 places this repository in the Moderate 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).
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.
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.
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.
The scanner identified 1017 distinct pattern matches across 14 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | install-pdm.py | 54 | def _get_win_folder_with_ctypes(csidl_name: str) -> str: | CODE |
| LOW | install-pdm.py | 80 | def _get_win_folder_from_registry(csidl_name: str) -> str: | CODE |
| LOW | tasks/render_reference_docs.py | 77 | def render_configuration_table() -> str: | CODE |
| LOW | tasks/max_versions.py | 39 | def dump_python_version_module(dest_file) -> None: | CODE |
| LOW⚡ | tests/test_utils.py | 153 | def test_add_ssh_scheme_to_git_uri(given, expected): | CODE |
| LOW⚡ | tests/test_utils.py | 163 | def test_non_windows_non_local_file_url(self): | CODE |
| LOW⚡ | tests/test_utils.py | 168 | def test_non_windows_localhost_local_file_url(self): | CODE |
| LOW⚡ | tests/test_utils.py | 172 | def test_windows_localhost_local_file_url(self): | CODE |
| LOW⚡ | tests/test_utils.py | 496 | def test_validate_project_name(name): | CODE |
| LOW⚡ | tests/test_utils.py | 501 | def test_invalidate_project_name(name): | CODE |
| LOW⚡ | tests/test_utils.py | 509 | def test_sanitize_project_name(given, sanitized): | CODE |
| LOW⚡ | tests/test_utils.py | 530 | def test_fs_supports_link_method_when_method_doesnt_exist(): | CODE |
| LOW⚡ | tests/test_utils.py | 534 | def test_convert_to_datetime_when_uppercase_t_is_present(): | CODE |
| LOW⚡ | tests/test_utils.py | 541 | def test_convert_to_datetime_when_uppercase_t_is_absent(): | CODE |
| LOW⚡ | tests/test_utils.py | 570 | def test_open_for_write_no_symlink_writes_regular_file(tmp_path): | CODE |
| LOW⚡ | tests/test_utils.py | 578 | def test_open_for_write_no_symlink_truncates_existing_file(tmp_path): | CODE |
| LOW⚡ | tests/test_utils.py | 586 | def test_open_for_write_no_symlink_refuses_symlinked_target(tmp_path): | CODE |
| LOW | tests/test_utils.py | 34 | def test_create_tracked_tempdir(mock_tempfile_mkdtemp, mock_os_makedirs, mock_atexit_register, given, dirname): | CODE |
| LOW | tests/test_utils.py | 74 | def test_url_without_fragments(given, expected): | CODE |
| LOW | tests/test_utils.py | 107 | def test_no_git_username_and_email(self, git_patch, no_git_username_and_email_patch): | CODE |
| LOW | tests/test_utils.py | 137 | def test_git_username_and_email(self, git_patch, git_username_and_email_patch): | CODE |
| LOW | tests/test_utils.py | 211 | def test_expand_env_vars_in_auth(given, expected, monkeypatch): | CODE |
| LOW | tests/test_utils.py | 256 | def test_conda_env_with_conda_meta_in_bin(self, tmp_path: Path): | CODE |
| LOW | tests/test_utils.py | 266 | def test_py_env_with_pyvenv_cfg(self, tmp_path: Path): | CODE |
| LOW | tests/test_utils.py | 278 | def test_conda_env_with_conda_meta(self, tmp_path: Path): | CODE |
| LOW | tests/test_utils.py | 373 | def test_not_direct_url_distribution(self, distribution, is_egg_link_patch): | CODE |
| LOW | tests/test_utils.py | 380 | def test_direct_url_distribution(self, distribution, is_egg_link_patch): | CODE |
| LOW | tests/test_utils.py | 442 | def test_dependency_group_selection(project, args, golden): | CODE |
| LOW | tests/test_utils.py | 456 | def test_exclude_optional_groups_from_all(project, args, golden): | CODE |
| LOW | tests/test_utils.py | 462 | def test_prod_should_not_be_with_dev(project): | CODE |
| LOW | tests/test_utils.py | 484 | def test_comparable_version_keeps_parsed_version_intact(): | CODE |
| LOW | tests/test_utils.py | 556 | def test_convert_to_datetime_when_relative_duration_is_given(monkeypatch, value, expected_datetime): | CODE |
| LOW | tests/test_plugin.py | 59 | def test_plugin_replace_command(pdm, mocker, project, core): | CODE |
| LOW | tests/test_plugin.py | 75 | def test_load_multiple_plugins(pdm, mocker, core): | CODE |
| LOW | tests/test_plugin.py | 91 | def test_old_entry_point_compatibility(pdm, mocker, core): | CODE |
| LOW | tests/test_plugin.py | 111 | def test_project_plugin_library(pdm, project, core, monkeypatch): | CODE |
| LOW | tests/test_plugin.py | 134 | def test_install_local_plugin_without_name(pdm, project, core, monkeypatch, req_str): | CODE |
| LOW | tests/test_plugin.py | 156 | def test_project_plugin_directory_is_isolated_by_project_root(project, tmp_path): | CODE |
| LOW | tests/test_installer.py | 58 | def test_install_wheel_with_inconsistent_dist_info(project): | CODE |
| LOW | tests/test_installer.py | 69 | def test_install_with_file_existing(project): | CODE |
| LOW | tests/test_installer.py | 83 | def test_uninstall_commit_rollback(project): | CODE |
| LOW | tests/test_installer.py | 101 | def test_rollback_after_commit(project, caplog): | CODE |
| LOW | tests/test_installer.py | 126 | def test_uninstall_with_console_scripts(project, use_install_cache): | CODE |
| LOW | tests/test_installer.py | 144 | def test_install_wheel_with_cache(project, pdm, supports_link): | CODE |
| LOW | tests/test_installer.py | 183 | def test_can_install_wheel_with_cache_in_multiple_projects( | CODE |
| LOW | tests/test_installer.py | 216 | def test_url_requirement_is_not_cached(project): | CODE |
| LOW | tests/test_installer.py | 232 | def test_editable_is_not_cached(project, tmp_path_factory): | CODE |
| LOW | tests/test_installer.py | 262 | def test_install_wheel_with_data_scripts(project, use_install_cache): | STRING |
| LOW | tests/test_installer.py | 280 | def test_windows_record_uses_relative_paths_for_data_scripts(tmp_path, mocker): | STRING |
| LOW | tests/test_installer.py | 305 | def test_compress_file_list_for_rename(): | STRING |
| LOW | tests/test_signals.py | 21 | def test_post_lock_and_install_signals(project, pdm): | CODE |
| LOW | tests/test_signals.py | 36 | def test_lock_and_install_signals_injection_with_add(project, pdm): | CODE |
| LOW | tests/test_signals.py | 65 | def test_lock_and_install_signals_injection_with_install(project, pdm): | CODE |
| LOW | tests/test_signals.py | 96 | def test_lock_signals_injection_with_update(project, pdm): | CODE |
| LOW | tests/test_installer_manager.py | 9 | def test_install_passes_candidate_options(mocker): | CODE |
| LOW | tests/test_installer_manager.py | 39 | def test_install_does_not_cache_editable_candidate(mocker): | CODE |
| LOW | tests/test_installer_manager.py | 53 | def test_get_paths_to_remove_uses_environment(mocker): | CODE |
| LOW | tests/test_installer_manager.py | 65 | def test_uninstall_commits_removed_paths(mocker): | CODE |
| LOW | tests/test_installer_manager.py | 78 | def test_uninstall_rolls_back_after_remove_error(mocker): | CODE |
| LOW | tests/test_installer_manager.py | 93 | def test_overwrite_preserves_new_distribution_paths(mocker): | CODE |
| 637 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | install-pdm.py | 1 | CODE | |
| LOW | tasks/release.py | 1 | CODE | |
| LOW | tasks/release.py | 13 | CODE | |
| LOW | tasks/render_reference_docs.py | 1 | CODE | |
| LOW | tasks/max_versions.py | 1 | CODE | |
| LOW | tests/conftest.py | 1 | CODE | |
| LOW | tests/test_installer.py | 1 | CODE | |
| LOW | tests/test_installer_manager.py | 1 | CODE | |
| LOW | tests/test_synchronizer_base.py | 1 | CODE | |
| LOW | tests/test_project.py | 1 | CODE | |
| LOW | tests/models/test_candidates.py | 1 | CODE | |
| LOW | tests/models/test_auth.py | 1 | CODE | |
| LOW | tests/models/test_session.py | 1 | CODE | |
| LOW | tests/models/test_locked_repository.py | 1 | CODE | |
| LOW | tests/models/test_requirements.py | 1 | CODE | |
| LOW | tests/models/test_working_set.py | 1 | CODE | |
| LOW | tests/cli/conftest.py | 1 | CODE | |
| LOW | tests/resolver/test_providers.py | 1 | CODE | |
| LOW | src/pdm/_types.py | 1 | CODE | |
| LOW | src/pdm/compat.py | 1 | CODE | |
| LOW | src/pdm/compat.py | 15 | CODE | |
| LOW | src/pdm/compat.py | 17 | CODE | |
| LOW | src/pdm/core.py | 9 | CODE | |
| LOW | src/pdm/termui.py | 1 | CODE | |
| LOW | src/pdm/pytest.py | 22 | CODE | |
| LOW | src/pdm/utils.py | 5 | CODE | |
| LOW | src/pdm/exceptions.py | 1 | CODE | |
| LOW | src/pdm/formats/setup_py.py | 1 | CODE | |
| LOW | src/pdm/formats/pipfile.py | 1 | CODE | |
| LOW | src/pdm/formats/pylock.py | 1 | CODE | |
| LOW | src/pdm/formats/poetry.py | 1 | CODE | |
| LOW | src/pdm/formats/__init__.py | 1 | CODE | |
| LOW | src/pdm/formats/__init__.py | 6 | CODE | |
| LOW | src/pdm/formats/requirements.py | 1 | CODE | |
| LOW | src/pdm/formats/flit.py | 1 | CODE | |
| LOW | src/pdm/formats/uv.py | 1 | CODE | |
| LOW | src/pdm/formats/base.py | 1 | CODE | |
| LOW | src/pdm/builders/editable.py | 1 | CODE | |
| LOW | src/pdm/builders/__init__.py | 1 | CODE | |
| LOW | src/pdm/builders/__init__.py | 2 | CODE | |
| LOW | src/pdm/builders/__init__.py | 3 | CODE | |
| LOW | src/pdm/builders/sdist.py | 1 | CODE | |
| LOW | src/pdm/builders/base.py | 1 | CODE | |
| LOW | src/pdm/builders/wheel.py | 1 | CODE | |
| LOW | src/pdm/environments/local.py | 1 | CODE | |
| LOW | src/pdm/environments/__init__.py | 1 | CODE | |
| LOW | src/pdm/environments/__init__.py | 1 | CODE | |
| LOW | src/pdm/environments/__init__.py | 2 | CODE | |
| LOW | src/pdm/environments/__init__.py | 3 | CODE | |
| LOW | src/pdm/environments/python.py | 1 | CODE | |
| LOW | src/pdm/environments/base.py | 1 | CODE | |
| LOW | src/pdm/models/auth.py | 1 | CODE | |
| LOW | src/pdm/models/finder.py | 1 | CODE | |
| LOW | src/pdm/models/caches.py | 1 | CODE | |
| LOW | src/pdm/models/reporter.py | 1 | CODE | |
| LOW | src/pdm/models/session.py | 1 | CODE | |
| LOW | src/pdm/models/venv.py | 1 | CODE | |
| LOW | src/pdm/models/project_info.py | 1 | CODE | |
| LOW | src/pdm/models/backends.py | 1 | CODE | |
| LOW | src/pdm/models/setup.py | 1 | CODE | |
| 87 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | src/pdm/models/repositories/lock.py | 260 | excludes = {normalize_name(k) for k in self.environment.project.pyproject.resolution.get("excludes", [])} | CODE |
| CRITICAL | src/pdm/models/repositories/pypi.py | 86 | self.environment.project.core.ui.warn( | CODE |
| CRITICAL | src/pdm/models/repositories/base.py | 137 | ignore_settings: list[str] = self.environment.project.pyproject.settings.get("ignore_package_warnings", []) | CODE |
| CRITICAL | src/pdm/models/repositories/base.py | 292 | respect_source_order = self.environment.project.pyproject.settings.get("resolution", {}).get( | CODE |
| CRITICAL | src/pdm/resolver/providers.py | 192 | for k, v in self.repository.environment.project.pyproject.resolution.get("overrides", {}).items() | CODE |
| CRITICAL | src/pdm/installers/uv.py | 36 | self.environment.project.core.ui.echo("[warning]uv doesn't support dry run mode, skipping installation") | CODE |
| CRITICAL | src/pdm/installers/uv.py | 51 | self.environment.project.core.ui.echo(f"Running uv sync command: {cmd}", verbosity=Verbosity.DETAIL) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | install-pdm.py | 122 | CODE | |
| LOW | install-pdm.py | 105 | CODE | |
| LOW | tasks/render_reference_docs.py | 36 | CODE | |
| LOW | src/pdm/termui.py | 227 | CODE | |
| LOW | src/pdm/pytest.py | 105 | CODE | |
| LOW | src/pdm/misc/sysconfig_patcher.py | 191 | CODE | |
| LOW | src/pdm/formats/pylock.py | 33 | CODE | |
| LOW | src/pdm/formats/pylock.py | 111 | CODE | |
| LOW | src/pdm/formats/poetry.py | 47 | CODE | |
| LOW | src/pdm/formats/poetry.py | 163 | CODE | |
| LOW | src/pdm/formats/uv.py | 108 | CODE | |
| LOW | src/pdm/formats/uv.py | 178 | CODE | |
| LOW | src/pdm/formats/uv.py | 191 | CODE | |
| LOW | src/pdm/builders/base.py | 285 | CODE | |
| LOW | src/pdm/models/caches.py | 278 | CODE | |
| LOW | src/pdm/models/session.py | 105 | CODE | |
| LOW | src/pdm/models/venv.py | 57 | CODE | |
| LOW | src/pdm/models/setup.py | 113 | CODE | |
| LOW | src/pdm/models/setup.py | 273 | CODE | |
| LOW | src/pdm/models/setup.py | 427 | CODE | |
| LOW | src/pdm/models/requirements.py | 260 | CODE | |
| LOW | src/pdm/models/search.py | 36 | CODE | |
| LOW | src/pdm/models/versions.py | 35 | CODE | |
| LOW | src/pdm/models/repositories/lock.py | 64 | CODE | |
| LOW | src/pdm/models/repositories/lock.py | 82 | CODE | |
| LOW | src/pdm/models/repositories/lock.py | 218 | CODE | |
| LOW | src/pdm/models/repositories/lock.py | 273 | CODE | |
| LOW | src/pdm/cli/actions.py | 41 | CODE | |
| LOW | src/pdm/cli/actions.py | 176 | CODE | |
| LOW | src/pdm/cli/actions.py | 426 | CODE | |
| LOW | src/pdm/cli/utils.py | 337 | CODE | |
| LOW | src/pdm/cli/utils.py | 402 | CODE | |
| LOW | src/pdm/cli/utils.py | 530 | CODE | |
| LOW | src/pdm/cli/utils.py | 591 | CODE | |
| LOW | src/pdm/cli/utils.py | 668 | CODE | |
| LOW | src/pdm/cli/completions/__init__.py | 98 | CODE | |
| LOW | src/pdm/cli/completions/__init__.py | 165 | CODE | |
| LOW | src/pdm/cli/completions/__init__.py | 170 | CODE | |
| LOW | src/pdm/cli/templates/__init__.py | 62 | CODE | |
| LOW | src/pdm/cli/commands/update.py | 93 | CODE | |
| LOW | src/pdm/cli/commands/build.py | 31 | CODE | |
| LOW | src/pdm/cli/commands/run.py | 312 | CODE | |
| LOW | src/pdm/cli/commands/config.py | 105 | CODE | |
| LOW | src/pdm/cli/commands/list.py | 229 | CODE | |
| LOW | src/pdm/cli/commands/export.py | 69 | CODE | |
| LOW | src/pdm/cli/commands/python.py | 68 | CODE | |
| LOW | src/pdm/cli/commands/python.py | 135 | CODE | |
| LOW | src/pdm/cli/commands/init.py | 155 | CODE | |
| LOW | src/pdm/cli/commands/info.py | 30 | CODE | |
| LOW | src/pdm/cli/commands/publish/__init__.py | 120 | CODE | |
| LOW | src/pdm/project/project_file.py | 38 | CODE | |
| LOW | src/pdm/project/core.py | 211 | CODE | |
| LOW | src/pdm/project/core.py | 449 | CODE | |
| LOW | src/pdm/project/core.py | 1001 | CODE | |
| LOW | src/pdm/project/core.py | 459 | CODE | |
| LOW | src/pdm/project/lockfile/freshness.py | 98 | CODE | |
| LOW | src/pdm/project/lockfile/pdmlock.py | 92 | CODE | |
| LOW | src/pdm/resolver/providers.py | 106 | CODE | |
| LOW | src/pdm/resolver/providers.py | 231 | CODE | |
| LOW | src/pdm/resolver/resolvelib.py | 48 | CODE | |
| 8 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | install-pdm.py | 42 | print(f"An error occurred when executing {args}:", file=sys.stderr) | CODE |
| LOW | src/pdm/core.py | 277 | except Exception: | CODE |
| LOW | src/pdm/core.py | 360 | except Exception as e: | CODE |
| LOW | src/pdm/termui.py | 284 | except Exception: | CODE |
| LOW | src/pdm/pytest.py | 642 | except Exception as e: | CODE |
| LOW | src/pdm/utils.py | 46 | except Exception: | CODE |
| LOW | src/pdm/utils.py | 161 | except Exception: | CODE |
| LOW | src/pdm/formats/base.py | 71 | except Exception as e: | CODE |
| LOW | src/pdm/builders/base.py | 217 | except Exception as e: | CODE |
| LOW | src/pdm/models/auth.py | 96 | except Exception: | CODE |
| LOW | src/pdm/models/auth.py | 109 | except Exception: | CODE |
| LOW | src/pdm/models/auth.py | 122 | except Exception: | CODE |
| LOW | src/pdm/models/caches.py | 297 | except Exception: # pragma: no cover | CODE |
| LOW | src/pdm/models/candidates.py | 574 | except Exception: | CODE |
| LOW | src/pdm/models/candidates.py | 609 | except Exception: | CODE |
| LOW | src/pdm/cli/actions.py | 415 | except Exception as e: | CODE |
| LOW | src/pdm/cli/completions/__init__.py | 153 | except Exception: | CODE |
| LOW | src/pdm/cli/commands/use.py | 105 | except Exception as e: | CODE |
| LOW | src/pdm/cli/commands/list.py | 423 | except Exception as err: | CODE |
| LOW | src/pdm/project/core.py | 706 | except Exception: # pragma: no cover | CODE |
| LOW | src/pdm/project/core.py | 994 | except Exception as e: | CODE |
| LOW | src/pdm/installers/synchronizers.py | 30 | except Exception: | CODE |
| LOW | src/pdm/installers/synchronizers.py | 51 | except Exception: | CODE |
| LOW | src/pdm/installers/synchronizers.py | 78 | except Exception: | CODE |
| LOW | src/pdm/installers/synchronizers.py | 192 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | tests/environments/test_shebangs.py | 53 | # Create a fake script under the environment's scripts dir | COMMENT |
| MEDIUM⚡ | tests/environments/test_environment.py | 99 | # Create the expected wheel path | COMMENT |
| MEDIUM⚡ | tests/models/test_setup_parsing_extra.py | 193 | # Create a dummy PyProject that raises ProjectError on unwrap() | COMMENT |
| MEDIUM⚡ | tests/cli/test_info.py | 86 | # Create a venv | COMMENT |
| MEDIUM | src/pdm/formats/requirements.py | 202 | lines = ["# This file is @generated by PDM.\n# Please do not edit it manually.\n\n"] | CODE |
| MEDIUM | src/pdm/models/candidates.py | 80 | # This function is called when a lock file candidate is given or incompatible wheel | COMMENT |
| MEDIUM | src/pdm/installers/base.py | 113 | # Create a new candidate with editable=False | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/pdm/compat.py | 74 | __all__ = ["CompatibleSequence", "tomllib"] | CODE |
| LOW | src/pdm/termui.py | 27 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/pdm/termui.py | 192 | def set_verbosity(self, verbosity: int) -> None: | CODE |
| LOW | src/pdm/termui.py | 199 | def set_theme(self, theme: Theme) -> None: | CODE |
| LOW | src/pdm/builders/__init__.py | 5 | __all__ = ["EditableBuilder", "SdistBuilder", "WheelBuilder"] | CODE |
| LOW | src/pdm/environments/local.py | 115 | def update_shebangs(self, new_path: str) -> None: | CODE |
| LOW | src/pdm/environments/__init__.py | 5 | __all__ = [ | CODE |
| LOW | src/pdm/cli/utils.py | 591 | def set_env_in_reg(env_name: str, value: str) -> None: | CODE |
| LOW | src/pdm/cli/completions/__init__.py | 161 | def _set_completer(action: argparse.Action, completer: Callable[..., object]) -> None: | CODE |
| LOW | src/pdm/cli/completions/__init__.py | 196 | __all__ = ["configure_parser"] | CODE |
| LOW | src/pdm/cli/commands/config.py | 97 | def _set_config(self, project: Project, options: argparse.Namespace) -> None: | CODE |
| LOW | src/pdm/cli/commands/init.py | 135 | def set_interactive(self, value: bool) -> None: | CODE |
| LOW | src/pdm/cli/commands/init.py | 300 | def set_python(self, project: Project, python: str | None, hooks: HookManager) -> None: | CODE |
| LOW | src/pdm/project/toml_file.py | 51 | def set_data(self, data: dict[str, Any]) -> None: | CODE |
| LOW | src/pdm/project/__init__.py | 4 | __all__ = ["Config", "ConfigItem", "Project"] | CODE |
| LOW | src/pdm/project/core.py | 233 | def set_lockfile(self, path: str | Path) -> None: | CODE |
| LOW | src/pdm/project/core.py | 798 | def update_dev_dependencies(deps: list[str]) -> None: | CODE |
| LOW | src/pdm/project/lockfile/pdmlock.py | 61 | def update_hash(self, hash_value: str, algo: str = "sha256") -> None: | CODE |
| LOW | src/pdm/project/lockfile/pylock.py | 25 | def update_hash(self, hash_value: str, algo: str = "sha256") -> None: | CODE |
| LOW | src/pdm/project/lockfile/__init__.py | 26 | __all__ = [ | CODE |
| LOW | src/pdm/project/lockfile/base.py | 51 | def update_hash(self, hash_value: str, algo: str = "sha256") -> None: | CODE |
| LOW | src/pdm/project/lockfile/base.py | 105 | def set_data(self, data: Mapping[str, Any]) -> None: | CODE |
| LOW | src/pdm/resolver/__init__.py | 5 | __all__ = ["RLResolver", "Resolver", "UvResolver"] | CODE |
| LOW | src/pdm/resolver/uv.py | 26 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/pdm/installers/__init__.py | 6 | __all__ = ["BaseSynchronizer", "InstallManager", "Synchronizer", "UvSynchronizer"] | CODE |
| LOW | src/pdm/installers/synchronizers.py | 172 | def update_progress(future: Future, kind: str, key: str) -> None: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tests/cli/test_init.py | 33 | return_value=("Testing", "me@example.org"), | CODE |
| LOW⚡ | tests/cli/test_init.py | 39 | "authors": [{"email": "me@example.org", "name": "Testing"}], | CODE |
| LOW⚡ | tests/cli/test_init.py | 109 | "Author email": "author@example.org", | CODE |
| LOW⚡ | tests/cli/test_init.py | 557 | return_value=("Testing", "me@example.org"), | CODE |
| LOW | tests/cli/test_init.py | 89 | return_value=("Git User", "git@example.org"), | CODE |
| LOW | tests/cli/test_init.py | 144 | return_value=("Testing", "me@example.org"), | CODE |
| LOW | tests/cli/test_init.py | 155 | assert data["project"]["authors"] == [{"name": "Existing Author", "email": "author@example.org"}] | CODE |
| LOW | tests/cli/test_init.py | 186 | return_value=("Testing", "me@example.org"), | CODE |
| LOW | tests/cli/test_init.py | 250 | return_value=("Testing", "me@example.org"), | CODE |
| LOW | tests/cli/test_init.py | 261 | "authors": [{"email": "me@example.org", "name": "Testing"}], | CODE |
| LOW | tests/cli/test_init.py | 406 | return_value=("Testing", "me@example.org"), | CODE |
| LOW | tests/cli/test_init.py | 417 | "authors": [{"email": "me@example.org", "name": "Testing"}], | CODE |
| LOW | tests/cli/test_init.py | 460 | return_value=("Testing", "me@example.org"), | CODE |
| LOW | tests/cli/test_init.py | 471 | "authors": [{"email": "me@example.org", "name": "Testing"}], | CODE |
| LOW | tests/cli/test_init.py | 490 | return_value=("Testing", "me@example.org"), | CODE |
| LOW | tests/cli/test_init.py | 507 | "authors": [{"email": "me@example.org", "name": "Testing"}], | CODE |
| LOW | tests/cli/test_init.py | 575 | "authors": [{"email": "me@example.org", "name": "Testing"}], | CODE |
| LOW | tests/cli/test_init.py | 594 | return_value=("Testing", "me@example.org"), | CODE |
| LOW | tests/cli/test_init.py | 612 | "authors": [{"email": "me@example.org", "name": "Testing"}], | CODE |
| LOW⚡ | tests/cli/test_init.py | 127 | authors = [{name = "Existing Author", email = "author@example.org"}] | STRING |
| LOW | tests/cli/test_init.py | 63 | authors = [{name = "Existing Author", email = "author@example.org"}] | STRING |
| LOW | docs/reference/pep621.md | 19 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, \ | CODE |
| LOW | docs/reference/pep621.md | 19 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, \ | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/pdm/cli/actions.py | 41 | CODE | |
| LOW | src/pdm/cli/actions.py | 278 | CODE | |
| LOW | src/pdm/cli/filters.py | 111 | CODE | |
| LOW | src/pdm/cli/commands/update.py | 93 | CODE | |
| LOW | src/pdm/cli/commands/use.py | 138 | CODE | |
| LOW | src/pdm/cli/commands/add.py | 89 | CODE | |
| LOW | src/pdm/installers/base.py | 46 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tests/environments/test_environment.py | 102 | # Avoid network: stub out the download function to just create the file | COMMENT |
| LOW | src/pdm/environments/base.py | 241 | # The pip has already been installed with the executable, just use it | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | install-pdm.sh | 241 | # Check if sha256sum is available | COMMENT |
| LOW | install-pdm.sh | 288 | # Check if already in PATH | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/cli/test_run.py | 1001 | result = pdm(["run", "test_script.py"], obj=project) | COMMENT |
| LOW | docs/usage/scripts.md | 61 | # /// script | COMMENT |
| LOW | src/pdm/misc/sysconfig_patcher.py | 1 | # Copyright 2024 Ulrik Sverdrup "bluss" | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/pdm/pytest.py | 105 | def handle_request(self, request: httpx.Request) -> httpx.Response: | CODE |
| LOW | src/pdm/cli/commands/run.py | 312 | def run_task( | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .github/workflows/release.yml | 10 | # make sure to work on Windows | COMMENT |