A modern Python package and dependency manager supporting the latest PEP standards
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.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 864 finding(s).
Are imports declared and package/API names verified? 179 finding(s).
Are wrappers, guards, and repeated structures necessary? 857 finding(s).
Which changes need focused human review? 1116 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 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.
| 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 | 80 | 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 | 151 | def test_add_ssh_scheme_to_git_uri(given, expected): | CODE |
| LOW⚡ | tests/test_utils.py | 161 | def test_non_windows_non_local_file_url(self): | CODE |
| LOW⚡ | tests/test_utils.py | 166 | def test_non_windows_localhost_local_file_url(self): | CODE |
| LOW⚡ | tests/test_utils.py | 170 | def test_windows_localhost_local_file_url(self): | CODE |
| LOW⚡ | tests/test_utils.py | 494 | def test_validate_project_name(name): | CODE |
| LOW⚡ | tests/test_utils.py | 499 | def test_invalidate_project_name(name): | CODE |
| LOW⚡ | tests/test_utils.py | 507 | def test_sanitize_project_name(given, sanitized): | CODE |
| LOW⚡ | tests/test_utils.py | 528 | def test_fs_supports_link_method_when_method_doesnt_exist(): | CODE |
| LOW⚡ | tests/test_utils.py | 532 | def test_convert_to_datetime_when_uppercase_t_is_present(): | CODE |
| LOW⚡ | tests/test_utils.py | 539 | def test_convert_to_datetime_when_uppercase_t_is_absent(): | CODE |
| LOW⚡ | tests/test_utils.py | 568 | def test_open_for_write_no_symlink_writes_regular_file(tmp_path): | CODE |
| LOW⚡ | tests/test_utils.py | 576 | def test_open_for_write_no_symlink_truncates_existing_file(tmp_path): | CODE |
| LOW⚡ | tests/test_utils.py | 584 | def test_open_for_write_no_symlink_refuses_symlinked_target(tmp_path): | CODE |
| LOW | tests/test_utils.py | 36 | def test_create_tracked_tempdir(mock_tempfile_mkdtemp, mock_os_makedirs, mock_atexit_register, given, dirname): | CODE |
| LOW | tests/test_utils.py | 76 | def test_url_without_fragments(given, expected): | CODE |
| LOW | tests/test_utils.py | 109 | def test_no_git_username_and_email(self, git_patch, no_git_username_and_email_patch): | CODE |
| LOW | tests/test_utils.py | 136 | def test_git_username_and_email(self, git_patch, git_username_and_email_patch): | CODE |
| LOW | tests/test_utils.py | 209 | def test_expand_env_vars_in_auth(given, expected, monkeypatch): | CODE |
| LOW | tests/test_utils.py | 254 | def test_conda_env_with_conda_meta_in_bin(self, tmp_path: Path): | CODE |
| LOW | tests/test_utils.py | 264 | def test_py_env_with_pyvenv_cfg(self, tmp_path: Path): | CODE |
| LOW | tests/test_utils.py | 276 | def test_conda_env_with_conda_meta(self, tmp_path: Path): | CODE |
| LOW | tests/test_utils.py | 371 | def test_not_direct_url_distribution(self, distribution, is_egg_link_patch): | CODE |
| LOW | tests/test_utils.py | 378 | def test_direct_url_distribution(self, distribution, is_egg_link_patch): | CODE |
| LOW | tests/test_utils.py | 440 | def test_dependency_group_selection(project, args, golden): | CODE |
| LOW | tests/test_utils.py | 454 | def test_exclude_optional_groups_from_all(project, args, golden): | CODE |
| LOW | tests/test_utils.py | 460 | def test_prod_should_not_be_with_dev(project): | CODE |
| LOW | tests/test_utils.py | 482 | def test_comparable_version_keeps_parsed_version_intact(): | CODE |
| LOW | tests/test_utils.py | 554 | def test_convert_to_datetime_when_relative_duration_is_given(monkeypatch, value, expected_datetime): | CODE |
| LOW | tests/test_utils.py | 602 | def test_atomic_open_for_write_with_bare_filename(tmp_path, monkeypatch, path_type): | CODE |
| LOW | tests/test_utils.py | 613 | def test_atomic_open_for_write_keeps_the_original_when_the_write_fails(tmp_path, mocker): | CODE |
| LOW | tests/test_utils.py | 628 | def test_atomic_open_for_write_keeps_the_destination_mode(tmp_path): | 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_requirements_export_relative.py | 8 | def test_export_editable_local_path_as_relative(project): | 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 |
| 717 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 | |
| 86 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | install-pdm.py | 264 | except SystemExit: | CODE |
| HIGH | tests/cli/test_publish.py | 61 | except OSError: | CODE |
| HIGH | src/pdm/core.py | 381 | except ModuleNotFoundError: | CODE |
| HIGH | src/pdm/pytest.py | 150 | except KeyError: | CODE |
| HIGH | src/pdm/formats/base.py | 69 | except Unset: | CODE |
| HIGH | src/pdm/formats/base.py | 80 | except KeyError: | CODE |
| HIGH | src/pdm/environments/local.py | 34 | except zipfile.BadZipFile: | CODE |
| HIGH | src/pdm/models/requirements.py | 325 | except ValueError: | CODE |
| HIGH | src/pdm/models/candidates.py | 241 | except InvalidPyVersion: | CODE |
| HIGH | src/pdm/cli/commands/search.py | 44 | except UnicodeEncodeError: | CODE |
| HIGH | src/pdm/cli/commands/publish/package.py | 61 | except ValueError: | CODE |
| HIGH | src/pdm/cli/commands/publish/package.py | 65 | except (TypeError, ValueError): | CODE |
| HIGH | src/pdm/project/config.py | 527 | except KeyError: | CODE |
| HIGH | src/pdm/project/core.py | 916 | except OSError: | CODE |
| HIGH | src/pdm/project/core.py | 470 | except AssertionError: | CODE |
| HIGH | src/pdm/pep582/sitecustomize.py | 54 | except ImportError: | CODE |
| HIGH | src/pdm/resolver/providers.py | 491 | except CandidateNotFound: | CODE |
| HIGH | src/pdm/resolver/providers.py | 247 | except InvalidVersion: # pragma: no cover | CODE |
| HIGH | src/pdm/resolver/resolvelib.py | 70 | except ValueError: | CODE |
| HIGH | src/pdm/installers/uninstallers.py | 40 | except OSError: | CODE |
| HIGH | src/pdm/installers/uninstallers.py | 288 | except FileNotFoundError: | CODE |
| HIGH | src/pdm/installers/synchronizers.py | 236 | except KeyboardInterrupt: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | src/pdm/models/repositories/lock.py | 288 | excludes = {normalize_name(k) for k in self.environment.project.pyproject.resolution.get("excludes", [])} | 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 | 191 | for k, v in self.repository.environment.project.pyproject.resolution.get("overrides", {}).items() | CODE |
| CRITICAL | src/pdm/resolver/uv.py | 110 | for package, dt in self.project.core.state.exclude_newer_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 | 124 | 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/formats/pylock.py | 33 | CODE | |
| LOW | src/pdm/formats/pylock.py | 111 | CODE | |
| LOW | src/pdm/formats/poetry.py | 81 | CODE | |
| LOW | src/pdm/formats/poetry.py | 210 | CODE | |
| LOW | src/pdm/formats/requirements.py | 33 | CODE | |
| LOW | src/pdm/formats/uv.py | 189 | CODE | |
| LOW | src/pdm/formats/uv.py | 202 | 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 | 261 | CODE | |
| LOW | src/pdm/models/versions.py | 35 | CODE | |
| LOW | src/pdm/models/repositories/lock.py | 92 | CODE | |
| LOW | src/pdm/models/repositories/lock.py | 110 | CODE | |
| LOW | src/pdm/models/repositories/lock.py | 246 | CODE | |
| LOW | src/pdm/models/repositories/lock.py | 301 | CODE | |
| LOW | src/pdm/cli/actions.py | 41 | CODE | |
| LOW | src/pdm/cli/actions.py | 176 | CODE | |
| LOW | src/pdm/cli/actions.py | 428 | 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 | 674 | 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 | 99 | CODE | |
| LOW | src/pdm/cli/commands/build.py | 31 | CODE | |
| LOW | src/pdm/cli/commands/run.py | 346 | 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 | 70 | 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 | 125 | CODE | |
| LOW | src/pdm/project/project_file.py | 39 | CODE | |
| LOW | src/pdm/project/core.py | 211 | CODE | |
| LOW | src/pdm/project/core.py | 451 | CODE | |
| LOW | src/pdm/project/core.py | 1003 | CODE | |
| LOW | src/pdm/project/core.py | 461 | 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 | 105 | CODE | |
| LOW | src/pdm/resolver/providers.py | 230 | CODE | |
| LOW | src/pdm/resolver/resolvelib.py | 48 | CODE | |
| LOW | src/pdm/resolver/reporters.py | 41 | CODE | |
| LOW | src/pdm/resolver/uv.py | 116 | CODE | |
| LOW | src/pdm/installers/uninstallers.py | 44 | CODE | |
| LOW | src/pdm/installers/uninstallers.py | 157 | CODE | |
| 4 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 | 287 | except Exception: | CODE |
| LOW | src/pdm/core.py | 370 | 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 | 47 | except Exception: | CODE |
| LOW | src/pdm/utils.py | 179 | 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 | 573 | except Exception: | CODE |
| LOW | src/pdm/models/candidates.py | 608 | 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 | 708 | except Exception: # pragma: no cover | CODE |
| LOW | src/pdm/project/core.py | 996 | except Exception as e: | CODE |
| LOW | src/pdm/installers/synchronizers.py | 40 | except Exception: | CODE |
| LOW | src/pdm/installers/synchronizers.py | 61 | except Exception: | CODE |
| LOW | src/pdm/installers/synchronizers.py | 88 | except Exception: | CODE |
| LOW | src/pdm/installers/synchronizers.py | 207 | 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 | 103 | # 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 | 254 | 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 | 53 | 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 | 800 | 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 | 104 | 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 | 182 | def update_progress(future: Future, kind: str, key: str) -> None: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tests/test_formats.py | 497 | ("Jane Doe <jane@example.com>", {"name": "Jane Doe", "email": "jane@example.com"}), | CODE |
| LOW⚡ | tests/test_formats.py | 499 | ("Jane Doe", {"name": "Jane Doe"}), | CODE |
| LOW | tests/cli/test_run.py | 437 | spaced_dir = tmp_path / "Jane Doe" / "Project" | CODE |
| 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 | 110 | CODE | |
| LOW | src/pdm/cli/commands/update.py | 99 | CODE | |
| LOW | src/pdm/cli/commands/use.py | 138 | CODE | |
| LOW | src/pdm/cli/commands/add.py | 95 | CODE | |
| LOW | src/pdm/installers/base.py | 46 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tests/environments/test_environment.py | 106 | # Avoid network: stub out the download function to just create the file | COMMENT |
| LOW | src/pdm/environments/base.py | 284 | # 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 | 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 | 346 | def run_task( | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .github/workflows/release.yml | 10 | # make sure to work on Windows | COMMENT |