SYMBOL INDEX (612 symbols across 48 files) FILE: docs/conf.py function setup (line 138) | def setup(app: Sphinx) -> dict[str, bool | str]: FILE: piptools/__main__.py function cli (line 9) | def cli() -> None: FILE: piptools/_compat/path_compat.py function relative_to_walk_up (line 15) | def relative_to_walk_up(path: pathlib.Path, start: pathlib.Path) -> path... FILE: piptools/_compat/pip_compat.py function canonicalize_name (line 34) | def canonicalize_name(name: str) -> str: ... class Distribution (line 43) | class Distribution: method from_pip_distribution (line 50) | def from_pip_distribution(cls, dist: BaseDistribution) -> Distribution: method _from_pkg_resources (line 59) | def _from_pkg_resources(cls, dist: _PkgResourcesDist) -> Distribution: method _from_importlib (line 65) | def _from_importlib(cls, dist: _ImportLibDist) -> Distribution: class FileLink (line 81) | class FileLink(Link): # type: ignore[misc] method file_path (line 87) | def file_path(self) -> str: function parse_requirements (line 92) | def parse_requirements( function _rewrite_comes_from_to_hardcoded_stdin_value (line 133) | def _rewrite_comes_from_to_hardcoded_stdin_value(_: str, /) -> str: function _relativize_comes_from_location (line 138) | def _relativize_comes_from_location(original_comes_from: str, /) -> str: function _normalize_comes_from_location (line 170) | def _normalize_comes_from_location(original_comes_from: str, /) -> str: function _is_remote_pip_uri (line 197) | def _is_remote_pip_uri(value: str) -> bool: function create_wheel_cache (line 208) | def create_wheel_cache(cache_dir: str, format_control: str | None = None... function get_dev_pkgs (line 215) | def get_dev_pkgs() -> set[str]: FILE: piptools/_compat/tempfile_compat.py function named_temp_file (line 18) | def named_temp_file(mode: str = "wt") -> _c.Iterator[_t.IO[str]]: FILE: piptools/_internal/_pip_api/cli_options.py function postprocess_cli_options (line 14) | def postprocess_cli_options(options: optparse.Values) -> None: FILE: piptools/_internal/_pip_api/install_requirements.py function create_install_requirement (line 14) | def create_install_requirement( function create_install_requirement_from_line (line 37) | def create_install_requirement_from_line( function copy_install_requirement (line 43) | def copy_install_requirement( FILE: piptools/_internal/_pip_api/package_finder.py function finder_allows_prereleases_of_req (line 16) | def finder_allows_prereleases_of_req( function finder_allows_all_prereleases (line 33) | def finder_allows_all_prereleases(finder: PackageFinder) -> bool: FILE: piptools/_internal/_pip_api/pip_version.py function get_pip_version_for_python_executable (line 16) | def get_pip_version_for_python_executable(python_executable: str) -> Ver... FILE: piptools/_internal/_subprocess.py function run_python_snippet (line 8) | def run_python_snippet(python_executable: str, code_to_run: str) -> str: FILE: piptools/build.py class PackageMetadata (line 34) | class PackageMetadata(_t.Protocol): method get_all (line 36) | def get_all(self, name: str, failobj: None = None) -> list[_t.Any] | N... method get_all (line 39) | def get_all(self, name: str, failobj: _T) -> list[_t.Any] | _T: ... class StaticProjectMetadata (line 43) | class StaticProjectMetadata: class ProjectMetadata (line 49) | class ProjectMetadata: function maybe_statically_parse_project_metadata (line 55) | def maybe_statically_parse_project_metadata( function build_project_metadata (line 117) | def build_project_metadata( function _env_var (line 189) | def _env_var( function _temporary_constraints_file_set_for_pip (line 212) | def _temporary_constraints_file_set_for_pip( function _create_project_builder (line 255) | def _create_project_builder( function _build_project_wheel_metadata (line 284) | def _build_project_wheel_metadata( function _get_name (line 292) | def _get_name(metadata: PackageMetadata) -> str: function _prepare_requirements (line 298) | def _prepare_requirements( function _prepare_build_requirements (line 326) | def _prepare_build_requirements( FILE: piptools/cache.py function _implementation_name (line 23) | def _implementation_name() -> str: class CorruptCacheError (line 35) | class CorruptCacheError(PipToolsError): method __init__ (line 36) | def __init__(self, path: str): method __str__ (line 39) | def __str__(self) -> str: function read_cache_file (line 48) | def read_cache_file(cache_file_path: str) -> CacheDict: class DependencyCache (line 61) | class DependencyCache: method __init__ (line 74) | def __init__(self, cache_dir: str): method cache (line 82) | def cache(self) -> CacheDict: method as_cache_key (line 94) | def as_cache_key(self, ireq: InstallRequirement) -> CacheKey: method write_cache (line 116) | def write_cache(self) -> None: method clear (line 122) | def clear(self) -> None: method __contains__ (line 126) | def __contains__(self, ireq: InstallRequirement) -> bool: method __getitem__ (line 130) | def __getitem__(self, ireq: InstallRequirement) -> list[str]: method __setitem__ (line 134) | def __setitem__(self, ireq: InstallRequirement, values: list[str]) -> ... method reverse_dependencies (line 140) | def reverse_dependencies( method _reverse_dependencies (line 154) | def _reverse_dependencies( FILE: piptools/exceptions.py class PipToolsError (line 14) | class PipToolsError(Exception): class NoCandidateFound (line 18) | class NoCandidateFound(PipToolsError): method __init__ (line 19) | def __init__( method __str__ (line 29) | def __str__(self) -> str: class IncompatibleRequirements (line 76) | class IncompatibleRequirements(PipToolsError): method __init__ (line 77) | def __init__(self, ireq_a: InstallRequirement, ireq_b: InstallRequirem... method __str__ (line 81) | def __str__(self) -> str: FILE: piptools/logging.py class LogContext (line 16) | class LogContext: method __init__ (line 19) | def __init__(self, verbosity: int = 0, indent_width: int = 2): method log (line 24) | def log(self, message: str, *args: _t.Any, **kwargs: _t.Any) -> None: method debug (line 29) | def debug(self, message: str, *args: _t.Any, **kwargs: _t.Any) -> None: method info (line 33) | def info(self, message: str, *args: _t.Any, **kwargs: _t.Any) -> None: method warning (line 37) | def warning(self, message: str, *args: _t.Any, **kwargs: _t.Any) -> None: method error (line 41) | def error(self, message: str, *args: _t.Any, **kwargs: _t.Any) -> None: method _indent (line 45) | def _indent(self) -> None: method _dedent (line 48) | def _dedent(self) -> None: method indentation (line 52) | def indentation(self) -> Iterator[None]: method reset (line 62) | def reset(self) -> None: FILE: piptools/repositories/base.py class BaseRepository (line 15) | class BaseRepository(metaclass=ABCMeta): method clear_caches (line 18) | def clear_caches(self) -> None: method find_best_match (line 22) | def find_best_match( method get_dependencies (line 31) | def get_dependencies(self, ireq: InstallRequirement) -> set[InstallReq... method get_hashes (line 39) | def get_hashes(self, ireq: InstallRequirement) -> set[str]: method allow_all_wheels (line 48) | def allow_all_wheels(self) -> Iterator[None]: method options (line 55) | def options(self) -> optparse.Values: method session (line 60) | def session(self) -> PipSession: method finder (line 65) | def finder(self) -> PackageFinder: method command (line 70) | def command(self) -> InstallCommand: FILE: piptools/repositories/local.py function ireq_satisfied_by_existing_pin (line 21) | def ireq_satisfied_by_existing_pin( class LocalRequirementsRepository (line 35) | class LocalRequirementsRepository(BaseRepository): method __init__ (line 46) | def __init__( method options (line 57) | def options(self) -> optparse.Values: method finder (line 61) | def finder(self) -> PackageFinder: method session (line 65) | def session(self) -> PipSession: method command (line 69) | def command(self) -> InstallCommand: method clear_caches (line 73) | def clear_caches(self) -> None: method find_best_match (line 76) | def find_best_match( method get_dependencies (line 87) | def get_dependencies(self, ireq: InstallRequirement) -> set[InstallReq... method get_hashes (line 90) | def get_hashes(self, ireq: InstallRequirement) -> set[str]: method allow_all_wheels (line 104) | def allow_all_wheels(self) -> Iterator[None]: FILE: piptools/repositories/pypi.py class FileStream (line 49) | class FileStream(_t.NamedTuple): class PyPIRepository (line 54) | class PyPIRepository(BaseRepository): method __init__ (line 64) | def __init__(self, pip_args: list[str], cache_dir: str): method clear_caches (line 106) | def clear_caches(self) -> None: method options (line 110) | def options(self) -> optparse.Values: method session (line 114) | def session(self) -> PipSession: method finder (line 118) | def finder(self) -> PackageFinder: method _clear_finder_cache (line 121) | def _clear_finder_cache(self) -> None: method command (line 136) | def command(self) -> InstallCommand: method find_all_candidates (line 140) | def find_all_candidates(self, req_name: str) -> list[InstallationCandi... method find_best_match (line 146) | def find_best_match( method resolve_reqs (line 181) | def resolve_reqs( method get_dependencies (line 229) | def get_dependencies(self, ireq: InstallRequirement) -> set[InstallReq... method _get_project (line 267) | def _get_project(self, ireq: InstallRequirement) -> _t.Any: method _get_download_path (line 300) | def _get_download_path(self, ireq: InstallRequirement) -> str: method get_hashes (line 315) | def get_hashes(self, ireq: InstallRequirement) -> set[str]: method _get_req_hashes (line 350) | def _get_req_hashes(self, ireq: InstallRequirement) -> set[str]: method _get_hashes_from_pypi (line 369) | def _get_hashes_from_pypi(self, ireq: InstallRequirement) -> dict[str,... method _get_matching_candidates (line 398) | def _get_matching_candidates( method _get_file_hash (line 414) | def _get_file_hash(self, link: Link) -> str: method allow_all_wheels (line 445) | def allow_all_wheels(self) -> Iterator[None]: function open_local_or_remote_file (line 483) | def open_local_or_remote_file(link: Link, session: Session) -> Iterator[... function candidate_version (line 521) | def candidate_version(candidate: InstallationCandidate) -> _BaseVersion: FILE: piptools/resolver.py class RequirementSummary (line 50) | class RequirementSummary: method __init__ (line 55) | def __init__(self, ireq: InstallRequirement) -> None: method __eq__ (line 61) | def __eq__(self, other: object) -> bool: method __hash__ (line 71) | def __hash__(self) -> int: method __str__ (line 74) | def __str__(self) -> str: function combine_install_requirements (line 78) | def combine_install_requirements( class BaseResolver (line 148) | class BaseResolver(metaclass=ABCMeta): method resolve (line 153) | def resolve(self, max_rounds: int) -> set[InstallRequirement]: method resolve_hashes (line 160) | def resolve_hashes( method _filter_out_unsafe_constraints (line 171) | def _filter_out_unsafe_constraints( class LegacyResolver (line 185) | class LegacyResolver(BaseResolver): method __init__ (line 190) | def __init__( method constraints (line 240) | def constraints(self) -> set[InstallRequirement]: method resolve (line 245) | def resolve(self, max_rounds: int = 10) -> set[InstallRequirement]: method _group_constraints (line 297) | def _group_constraints( method _resolve_one_round (line 334) | def _resolve_one_round(self) -> tuple[bool, set[InstallRequirement]]: method get_best_match (line 396) | def get_best_match(self, ireq: InstallRequirement) -> InstallRequirement: method _iter_dependencies (line 440) | def _iter_dependencies( method _ireqs_of_dependencies (line 490) | def _ireqs_of_dependencies( class BacktrackingResolver (line 508) | class BacktrackingResolver(BaseResolver): method __init__ (line 511) | def __init__( method resolve (line 550) | def resolve(self, max_rounds: int = 10) -> set[InstallRequirement]: method _do_resolve (line 664) | def _do_resolve( method _get_install_requirements (line 716) | def _get_install_requirements( method _get_reverse_dependencies (line 753) | def _get_reverse_dependencies( method _get_install_requirement_from_candidate (line 778) | def _get_install_requirement_from_candidate( FILE: piptools/scripts/_deprecations.py function filter_deprecated_pip_args (line 9) | def filter_deprecated_pip_args(args: list[str]) -> list[str]: FILE: piptools/scripts/compile.py function _determine_linesep (line 47) | def _determine_linesep( function cli (line 144) | def cli( FILE: piptools/scripts/options.py function help_option (line 22) | def help_option(*, epilog: str | None = None) -> _t.Callable[[_FC], _FC]: function _get_default_option (line 50) | def _get_default_option(option_name: str) -> _t.Any: FILE: piptools/scripts/sync.py function cli (line 71) | def cli( function _validate_python_executable (line 174) | def _validate_python_executable(python_executable: str) -> None: function _compose_install_flags (line 198) | def _compose_install_flags( function _get_installed_distributions (line 260) | def _get_installed_distributions( FILE: piptools/sync.py function dependency_tree (line 42) | def dependency_tree( function get_dists_to_ignore (line 81) | def get_dists_to_ignore(installed: Iterable[Distribution]) -> list[str]: function merge (line 96) | def merge( function diff_key_from_ireq (line 125) | def diff_key_from_ireq(ireq: InstallRequirement) -> str: function diff_key_from_req (line 146) | def diff_key_from_req(req: Distribution) -> str: function diff (line 159) | def diff( function sync (line 192) | def sync( FILE: piptools/utils.py function key_from_ireq (line 54) | def key_from_ireq(ireq: InstallRequirement) -> str: function key_from_req (line 62) | def key_from_req(req: InstallRequirement | Requirement | PipRequirement)... function comment (line 79) | def comment(text: str) -> str: function is_url_requirement (line 83) | def is_url_requirement(ireq: InstallRequirement) -> bool: function format_requirement (line 92) | def format_requirement( function _build_direct_reference_best_efforts (line 122) | def _build_direct_reference_best_efforts(ireq: InstallRequirement) -> str: function format_specifier (line 157) | def format_specifier(ireq: InstallRequirement) -> str: function is_pinned_requirement (line 170) | def is_pinned_requirement(ireq: InstallRequirement) -> bool: function as_tuple (line 197) | def as_tuple(ireq: InstallRequirement) -> tuple[str, str, tuple[str, ...]]: function flat_map (line 211) | def flat_map( function lookup_table_from_tuples (line 218) | def lookup_table_from_tuples(values: Iterable[tuple[_KT, _VT]]) -> dict[... function lookup_table (line 226) | def lookup_table( function dedup (line 233) | def dedup(iterable: Iterable[_T]) -> Iterable[_T]: function drop_extras (line 241) | def drop_extras(ireq: InstallRequirement) -> None: function _drop_extras (line 250) | def _drop_extras(markers: list[_T]) -> list[_T]: function get_hashes_from_ireq (line 292) | def get_hashes_from_ireq(ireq: InstallRequirement) -> set[str]: function get_compile_command (line 305) | def get_compile_command(click_ctx: click.Context) -> str: function get_required_pip_specification (line 404) | def get_required_pip_specification() -> SpecifierSet: function get_sys_path_for_python_executable (line 418) | def get_sys_path_for_python_executable(python_executable: str) -> list[s... function omit_list_value (line 432) | def omit_list_value(lst: list[_T], value: _T) -> list[_T]: function strip_extras (line 440) | def strip_extras(name: str) -> str: function override_defaults_from_config_file (line 445) | def override_defaults_from_config_file( function _assign_config_to_cli_context (line 478) | def _assign_config_to_cli_context( function _validate_config (line 488) | def _validate_config( function select_config_file (line 544) | def select_config_file(src_files: tuple[str, ...]) -> Path | None: function get_cli_options (line 576) | def get_cli_options(ctx: click.Context) -> dict[str, click.Parameter]: function parse_config_file (line 586) | def parse_config_file( function _normalize_keys_in_config (line 622) | def _normalize_keys_in_config(config: dict[str, _t.Any]) -> dict[str, _t... function _invert_negative_bool_options_in_config (line 626) | def _invert_negative_bool_options_in_config( function _normalize_config_key (line 657) | def _normalize_config_key(key: str) -> str: function _convert_to_long_option (line 662) | def _convert_to_long_option(key: str) -> str: FILE: piptools/writer.py function _comes_from_as_string (line 62) | def _comes_from_as_string(comes_from: str | InstallRequirement) -> str: function annotation_style_split (line 68) | def annotation_style_split(required_by: set[str]) -> str: function annotation_style_line (line 81) | def annotation_style_line(required_by: set[str]) -> str: class OutputWriter (line 85) | class OutputWriter: method __init__ (line 86) | def __init__( method _sort_key (line 128) | def _sort_key(self, ireq: InstallRequirement) -> tuple[bool, str]: method write_header (line 131) | def write_header(self) -> Iterator[str]: method write_index_options (line 146) | def write_index_options(self) -> Iterator[str]: method write_trusted_hosts (line 154) | def write_trusted_hosts(self) -> Iterator[str]: method write_format_controls (line 159) | def write_format_controls(self) -> Iterator[str]: method write_find_links (line 183) | def write_find_links(self) -> Iterator[str]: method write_flags (line 188) | def write_flags(self) -> Iterator[str]: method _iter_lines (line 203) | def _iter_lines( method write (line 271) | def write( method _format_requirement (line 291) | def _format_requirement( class _LineWriter (line 342) | class _LineWriter(_t.Protocol): method __call__ (line 343) | def __call__(self, line: str) -> None: ... function _dry_run_line_writer (line 346) | def _dry_run_line_writer(line: str) -> None: class _FileLineWriter (line 350) | class _FileLineWriter: method __init__ (line 351) | def __init__(self, dst_file: _t.BinaryIO, linesep: str) -> None: method __call__ (line 359) | def __call__(self, line: str) -> None: method __enter__ (line 364) | def __enter__(self) -> _t_Self: method __exit__ (line 367) | def __exit__( FILE: tests/conftest.py class FakeOptions (line 53) | class FakeOptions: class FakeRepository (line 59) | class FakeRepository(BaseRepository): method __init__ (line 60) | def __init__(self, options: FakeOptions): method get_hashes (line 69) | def get_hashes(self, ireq): method find_best_match (line 76) | def find_best_match(self, ireq, prereleases=False): method get_dependencies (line 96) | def get_dependencies(self, ireq): method allow_all_wheels (line 112) | def allow_all_wheels(self): method options (line 117) | def options(self): method session (line 121) | def session(self) -> PipSession: method finder (line 125) | def finder(self) -> PackageFinder: method command (line 129) | def command(self) -> InstallCommand: function pytest_collection_modifyitems (line 133) | def pytest_collection_modifyitems(config, items): function fake_dist (line 141) | def fake_dist(): function repository (line 161) | def repository(): function pypi_repository (line 168) | def pypi_repository(tmpdir): function depcache (line 181) | def depcache(tmpdir): function resolver (line 186) | def resolver(depcache, repository): function backtracking_resolver (line 196) | def backtracking_resolver(depcache): function base_resolver (line 209) | def base_resolver(depcache): function from_line (line 214) | def from_line(): function from_editable (line 227) | def from_editable(): function runner (line 232) | def runner(): function tmpdir_cwd (line 242) | def tmpdir_cwd(tmpdir): function make_pip_conf (line 248) | def make_pip_conf(tmpdir, monkeypatch): function pip_conf (line 271) | def pip_conf(make_pip_conf, minimal_wheels_path): function pip_with_index_conf (line 280) | def pip_with_index_conf(make_pip_conf, minimal_wheels_path): function make_package (line 289) | def make_package(tmp_path_factory): function run_setup_file (line 348) | def run_setup_file(): function make_wheel (line 366) | def make_wheel(run_setup_file): function make_sdist (line 380) | def make_sdist(run_setup_file): function make_module (line 392) | def make_module(tmpdir): function fake_dists (line 424) | def fake_dists(tmp_path_factory, make_package, make_wheel): function fake_dists_with_build_deps (line 440) | def fake_dists_with_build_deps(tmp_path_factory, make_package, make_wheel): function venv (line 465) | def venv(tmp_path): function _reset_log (line 475) | def _reset_log(): function make_config_file (line 485) | def make_config_file(tmpdir_cwd): function setuptools_wheel_path (line 516) | def setuptools_wheel_path(tmp_path_factory): function minimal_wheels_path (line 536) | def minimal_wheels_path(setuptools_wheel_path): FILE: tests/test_build.py function test_build_project_metadata_resolved_correct_build_dependencies (line 20) | def test_build_project_metadata_resolved_correct_build_dependencies( function test_build_project_metadata_static (line 48) | def test_build_project_metadata_static(tmp_path): function test_build_project_metadata_raises_error (line 66) | def test_build_project_metadata_raises_error(tmp_path): function test_build_project_metadata_upgrading_raises_error (line 82) | def test_build_project_metadata_upgrading_raises_error(tmp_path): function test_static_parse_valid (line 110) | def test_static_parse_valid(tmp_path): function test_static_parse_of_self_referential_extra (line 133) | def test_static_parse_of_self_referential_extra( function test_static_parse_invalid (line 168) | def test_static_parse_invalid(tmp_path): function test_build_metadata_from_dynamic_dependencies (line 212) | def test_build_metadata_from_dynamic_dependencies(tmp_path): FILE: tests/test_cache.py function _read_cache_file_helper (line 15) | def _read_cache_file_helper(to_write): function test_read_cache_file_not_json (line 37) | def test_read_cache_file_not_json(): function test_read_cache_file_wrong_format (line 49) | def test_read_cache_file_wrong_format(): function test_read_cache_file_successful (line 58) | def test_read_cache_file_successful(): function test_read_cache_does_not_exist (line 68) | def test_read_cache_does_not_exist(tmpdir): function test_read_cache_permission_error (line 76) | def test_read_cache_permission_error(tmpdir): function test_reverse_dependencies (line 84) | def test_reverse_dependencies(from_line, tmpdir): FILE: tests/test_circular_imports.py function _find_all_importables (line 30) | def _find_all_importables(pkg: ModuleType) -> list[str]: function _discover_path_importables (line 44) | def _discover_path_importables(pkg_pth: Path, pkg_name: str) -> Iterator... function _allowed_deprecation_warning_filters (line 66) | def _allowed_deprecation_warning_filters() -> list[str]: function test_no_warnings (line 99) | def test_no_warnings(import_path: str) -> None: FILE: tests/test_cli_compile.py function pip_produces_absolute_paths (line 52) | def pip_produces_absolute_paths(): class FileCollectionParam (line 59) | class FileCollectionParam: method __str__ (line 75) | def __str__(self) -> str: method populate (line 78) | def populate(self, tmp_path: pathlib.Path) -> None: method get_path_to (line 88) | def get_path_to(self, filename: str) -> str: class PackageVersionParam (line 98) | class PackageVersionParam: method __str__ (line 112) | def __str__(self) -> str: method as_req (line 115) | def as_req(self) -> str: function current_resolver (line 126) | def current_resolver(request, monkeypatch): function _temp_dep_cache (line 139) | def _temp_dep_cache(tmpdir, monkeypatch): function test_default_pip_conf_read (line 143) | def test_default_pip_conf_read(pip_with_index_conf, runner): function test_command_line_overrides_pip_conf (line 154) | def test_command_line_overrides_pip_conf(pip_with_index_conf, runner): function test_command_line_setuptools_read (line 190) | def test_command_line_setuptools_read( function test_command_line_setuptools_output_file (line 233) | def test_command_line_setuptools_output_file(runner, options, expected_o... function test_command_line_setuptools_nested_output_file (line 250) | def test_command_line_setuptools_nested_output_file(tmpdir, runner): function test_setuptools_preserves_environment_markers (line 268) | def test_setuptools_preserves_environment_markers( function test_no_index_option (line 303) | def test_no_index_option(runner, tmp_path): function test_find_links_option (line 313) | def test_find_links_option(runner): function test_find_links_envvar (line 330) | def test_find_links_envvar(monkeypatch, runner): function test_extra_index_option (line 348) | def test_extra_index_option(pip_with_index_conf, runner): function test_extra_index_envvar (line 374) | def test_extra_index_envvar(monkeypatch, runner): function test_redacted_urls_in_verbose_output (line 397) | def test_redacted_urls_in_verbose_output(runner, option): function test_trusted_host_option (line 420) | def test_trusted_host_option(pip_conf, runner): function test_trusted_host_envvar (line 429) | def test_trusted_host_envvar(monkeypatch, pip_conf, runner): function test_all_no_emit_options (line 452) | def test_all_no_emit_options(runner, options): function test_emit_index_url_option (line 470) | def test_emit_index_url_option(runner, option, expected_output): function test_realistic_complex_sub_dependencies (line 491) | def test_realistic_complex_sub_dependencies(runner, tmp_path): function test_run_as_module_compile (line 516) | def test_run_as_module_compile(): function test_compile_help_opt_supports_short_and_long_flag (line 530) | def test_compile_help_opt_supports_short_and_long_flag(runner): function test_compile_help_opt_shows_examples_section (line 541) | def test_compile_help_opt_shows_examples_section(runner): function test_editable_package (line 551) | def test_editable_package(pip_conf, runner): function test_editable_package_without_non_editable_duplicate (line 565) | def test_editable_package_without_non_editable_duplicate(pip_conf, runner): function test_editable_package_constraint_without_non_editable_duplicate (line 590) | def test_editable_package_constraint_without_non_editable_duplicate(pip_... function test_editable_package_in_constraints (line 617) | def test_editable_package_in_constraints(pip_conf, runner, req_editable): function test_editable_package_vcs (line 640) | def test_editable_package_vcs(runner): function test_compile_cached_vcs_package (line 655) | def test_compile_cached_vcs_package(runner, venv): function test_locally_available_editable_package_is_not_archived_in_cache_dir (line 710) | def test_locally_available_editable_package_is_not_archived_in_cache_dir( function test_url_package (line 770) | def test_url_package(runner, line, dependency, generate_hashes): function test_local_file_uri_package (line 845) | def test_local_file_uri_package( function test_relative_file_uri_package (line 860) | def test_relative_file_uri_package(pip_conf, runner): function test_direct_reference_with_extras (line 875) | def test_direct_reference_with_extras(runner): function test_input_file_without_extension (line 890) | def test_input_file_without_extension(pip_conf, runner): function test_ignore_incompatible_existing_pins (line 905) | def test_ignore_incompatible_existing_pins(pip_conf, runner): function test_upgrade_packages_option (line 919) | def test_upgrade_packages_option(pip_conf, runner): function test_upgrade_packages_option_irrelevant (line 935) | def test_upgrade_packages_option_irrelevant(pip_conf, runner): function test_upgrade_packages_option_no_existing_file (line 951) | def test_upgrade_packages_option_no_existing_file(pip_conf, runner): function test_upgrade_packages_empty_target_file_warning (line 970) | def test_upgrade_packages_empty_target_file_warning(pip_conf, runner): function test_upgrade_packages_version_option (line 994) | def test_upgrade_packages_version_option( function test_upgrade_packages_version_option_no_existing_file (line 1013) | def test_upgrade_packages_version_option_no_existing_file(pip_conf, runn... function test_upgrade_packages_version_option_and_upgrade (line 1034) | def test_upgrade_packages_version_option_and_upgrade(pip_conf, runner, r... function test_upgrade_packages_version_option_and_upgrade_no_existing_file (line 1051) | def test_upgrade_packages_version_option_and_upgrade_no_existing_file(pi... function test_upgrade_package_with_extra (line 1066) | def test_upgrade_package_with_extra(runner, make_package, make_sdist, tm... function test_quiet_option (line 1111) | def test_quiet_option(pip_conf, runner): function test_dry_run_noisy_option (line 1120) | def test_dry_run_noisy_option(runner): function test_dry_run_quiet_option (line 1128) | def test_dry_run_quiet_option(runner): function test_generate_hashes_with_editable (line 1140) | def test_generate_hashes_with_editable(pip_conf, runner): function test_generate_hashes_with_url (line 1160) | def test_generate_hashes_with_url(runner): function test_generate_hashes_verbose (line 1177) | def test_generate_hashes_verbose(pip_conf, runner): function test_generate_hashes_with_annotations (line 1190) | def test_generate_hashes_with_annotations(runner): function test_override_newline (line 1235) | def test_override_newline( function test_preserve_newline_from_input (line 1289) | def test_preserve_newline_from_input(runner, linesep, must_exclude): function test_generate_hashes_with_split_style_annotations (line 1304) | def test_generate_hashes_with_split_style_annotations(pip_conf, runner, ... function test_generate_hashes_with_line_style_annotations (line 1337) | def test_generate_hashes_with_line_style_annotations(pip_conf, runner, t... function test_generate_hashes_with_mixed_sources (line 1369) | def test_generate_hashes_with_mixed_sources( function test_filter_pip_markers (line 1424) | def test_filter_pip_markers(pip_conf, runner): function test_bad_setup_file (line 1438) | def test_bad_setup_file(runner): function test_no_candidates (line 1449) | def test_no_candidates(pip_conf, runner): function test_no_candidates_pre (line 1460) | def test_no_candidates_pre(pip_conf, runner): function test_default_index_url (line 1481) | def test_default_index_url(make_pip_conf, url, expected_url): function test_stdin_without_output_file (line 1499) | def test_stdin_without_output_file(runner): function test_stdin (line 1509) | def test_stdin(pip_conf, runner): function test_tmpfile_for_stdin_is_cleaned_up (line 1525) | def test_tmpfile_for_stdin_is_cleaned_up(pip_conf, runner): function test_multiple_input_files_without_output_file (line 1573) | def test_multiple_input_files_without_output_file(runner): function test_annotate_option (line 1624) | def test_annotate_option(pip_conf, runner, options, expected): function test_allow_unsafe_option (line 1681) | def test_allow_unsafe_option(pip_conf, monkeypatch, runner, option, expe... function test_unsafe_package_option (line 1732) | def test_unsafe_package_option(pip_conf, monkeypatch, runner, unsafe_pac... function test_unsafe_package_option_normalizes (line 1764) | def test_unsafe_package_option_normalizes(pip_conf, runner, unsafe_packa... function test_cert_option (line 1806) | def test_cert_option(parse_requirements, runner, option, attr, expected): function test_parse_requirements_build_isolation_option (line 1825) | def test_parse_requirements_build_isolation_option( function test_build_project_metadata_isolation_option (line 1847) | def test_build_project_metadata_isolation_option( function test_forwarded_args (line 1869) | def test_forwarded_args(PyPIRepository, runner): function test_forwarded_args_filter_deprecated (line 1897) | def test_forwarded_args_filter_deprecated(PyPIRepository, runner, pip_ar... function test_pre_option (line 1926) | def test_pre_option(pip_conf, runner, cli_option, infile_option, expecte... function test_dry_run_option (line 1954) | def test_dry_run_option(pip_conf, runner, add_options): function test_dry_run_doesnt_touch_output_file (line 1982) | def test_dry_run_doesnt_touch_output_file( function test_empty_input_file_no_header (line 2019) | def test_empty_input_file_no_header(runner, empty_input_pkg, prior_outpu... function test_upgrade_package_doesnt_remove_annotation (line 2036) | def test_upgrade_package_doesnt_remove_annotation(pip_conf, runner): function test_many_inputs_includes_all_annotations (line 2064) | def test_many_inputs_includes_all_annotations(pip_conf, runner, tmp_path... function test_options_in_requirements_file (line 2110) | def test_options_in_requirements_file(runner, options): function test_unreachable_index_urls (line 2145) | def test_unreachable_index_urls(runner, cli_options, expected_message): function test_upgrade_packages_option_subdependency (line 2169) | def test_upgrade_packages_option_subdependency( function test_remove_outdated_options (line 2236) | def test_remove_outdated_options(runner, input_opts, output_opts): function test_sub_dependencies_with_constraints (line 2252) | def test_sub_dependencies_with_constraints(pip_conf, runner): function test_preserve_compiled_prerelease_version (line 2276) | def test_preserve_compiled_prerelease_version(pip_conf, runner): function test_ignore_compiled_unavailable_version (line 2290) | def test_ignore_compiled_unavailable_version(pip_conf, runner, current_r... function test_prefer_binary_dist (line 2310) | def test_prefer_binary_dist( function test_prefer_binary_dist_even_there_is_source_dists (line 2348) | def test_prefer_binary_dist_even_there_is_source_dists( function test_duplicate_reqs_combined (line 2383) | def test_duplicate_reqs_combined( function test_local_duplicate_subdependency_combined (line 2417) | def test_local_duplicate_subdependency_combined(runner, make_package): function test_combine_extras (line 2445) | def test_combine_extras(pip_conf, runner, make_package): function test_combine_different_extras_of_the_same_package (line 2477) | def test_combine_different_extras_of_the_same_package( function test_canonicalize_extras (line 2548) | def test_canonicalize_extras(pip_conf, runner, tmp_path, make_package, m... function test_triple_equal_pinned_dependency_is_used (line 2626) | def test_triple_equal_pinned_dependency_is_used( function test_not_specified_input_file (line 2749) | def test_not_specified_input_file( function test_not_specified_input_file_without_allowed_files (line 2776) | def test_not_specified_input_file_without_allowed_files(runner): function test_input_formats (line 2792) | def test_input_formats(fake_dists, runner, make_module, fname, content): function test_error_in_pyproject_toml (line 2808) | def test_error_in_pyproject_toml( function test_one_extra (line 2841) | def test_one_extra(fake_dists, runner, make_module, fname, content): function test_multiple_extras (line 2873) | def test_multiple_extras(fake_dists, runner, make_module, fname, content... function test_all_extras (line 2897) | def test_all_extras(fake_dists, runner, make_module, fname, content): function test_all_extras_fail_with_extra (line 2928) | def test_all_extras_fail_with_extra(fake_dists, runner, make_module, fna... function _mock_resolver_cls (line 2954) | def _mock_resolver_cls(monkeypatch: pytest.MonkeyPatch) -> MagicMock: function _mock_build_project_metadata (line 2966) | def _mock_build_project_metadata(monkeypatch: pytest.MonkeyPatch) -> Mag... function test_all_extras_and_all_build_deps (line 2985) | def test_all_extras_and_all_build_deps( function test_all_build_deps (line 3052) | def test_all_build_deps(runner, tmp_path, monkeypatch): function test_only_build_deps (line 3079) | def test_only_build_deps(runner, tmp_path, monkeypatch): function test_all_build_deps_fail_with_build_target (line 3102) | def test_all_build_deps_fail_with_build_target(runner): function test_only_build_deps_fails_without_any_build_deps (line 3120) | def test_only_build_deps_fails_without_any_build_deps(runner): function test_only_build_deps_fails_with_conflicting_options (line 3136) | def test_only_build_deps_fails_with_conflicting_options(runner, option): function test_build_deps_fail_without_setup_file (line 3155) | def test_build_deps_fail_without_setup_file(runner, tmpdir, option): function test_extras_fail_with_requirements_in (line 3171) | def test_extras_fail_with_requirements_in(runner, tmpdir): function test_cli_compile_strip_extras (line 3183) | def test_cli_compile_strip_extras(runner, make_package, make_sdist, tmpd... function test_cli_compile_all_extras_with_multiple_packages (line 3209) | def test_cli_compile_all_extras_with_multiple_packages( function test_resolver_drops_existing_conflicting_constraint (line 3336) | def test_resolver_drops_existing_conflicting_constraint( function test_resolution_failure (line 3376) | def test_resolution_failure(runner): function test_resolver_reaches_max_rounds (line 3386) | def test_resolver_reaches_max_rounds(runner): function test_preserve_via_requirements_constrained_dependencies_when_run_twice (line 3396) | def test_preserve_via_requirements_constrained_dependencies_when_run_twice( function test_failure_of_legacy_resolver_prompts_for_backtracking (line 3437) | def test_failure_of_legacy_resolver_prompts_for_backtracking( function test_print_deprecation_warning_if_using_legacy_resolver (line 3470) | def test_print_deprecation_warning_if_using_legacy_resolver(runner, curr... function test_raise_error_when_input_and_output_filenames_are_matched (line 3491) | def test_raise_error_when_input_and_output_filenames_are_matched( function test_pass_pip_cache_to_pip_args (line 3514) | def test_pass_pip_cache_to_pip_args(tmpdir, runner, current_resolver): function test_compile_recursive_extras_static (line 3533) | def test_compile_recursive_extras_static( function test_compile_recursive_extras_build_targets (line 3586) | def test_compile_recursive_extras_build_targets( function test_compile_build_targets_setuptools_no_wheel_dep (line 3643) | def test_compile_build_targets_setuptools_no_wheel_dep( function test_config_option (line 3709) | def test_config_option(pip_conf, runner, tmp_path, make_config_file): function test_default_config_option (line 3721) | def test_default_config_option(pip_conf, runner, make_config_file, tmpdi... function test_no_config_option_overrides_config_with_defaults (line 3733) | def test_no_config_option_overrides_config_with_defaults( function test_raise_error_on_unknown_config_option (line 3749) | def test_raise_error_on_unknown_config_option( function test_raise_error_on_invalid_config_option (line 3763) | def test_raise_error_on_invalid_config_option( function test_constraint_option (line 3778) | def test_constraint_option(pip_conf, runner, tmpdir_cwd, make_config_fil... function test_allow_in_config_pip_sync_option (line 3807) | def test_allow_in_config_pip_sync_option(pip_conf, runner, tmp_path, mak... function test_use_src_files_from_config_if_option_is_not_specified_from_cli (line 3821) | def test_use_src_files_from_config_if_option_is_not_specified_from_cli( function test_use_src_files_from_cli_if_option_is_specified_in_both_config_and_cli (line 3839) | def test_use_src_files_from_cli_if_option_is_specified_in_both_config_an... function test_cli_boolean_flag_config_option_has_valid_context (line 3857) | def test_cli_boolean_flag_config_option_has_valid_context( function test_invalid_cli_boolean_flag_config_option_captured (line 3880) | def test_invalid_cli_boolean_flag_config_option_captured( function test_show_warning_on_default_strip_extras_option (line 3899) | def test_show_warning_on_default_strip_extras_option( function test_do_not_show_warning_on_explicit_strip_extras_option (line 3912) | def test_do_not_show_warning_on_explicit_strip_extras_option( function test_origin_of_extra_requirement_not_written_to_annotations (line 3924) | def test_origin_of_extra_requirement_not_written_to_annotations( function test_tool_specific_config_option (line 3969) | def test_tool_specific_config_option(pip_conf, runner, tmp_path, make_co... function test_stdout_should_not_be_read_when_stdin_is_not_a_plain_file (line 3985) | def test_stdout_should_not_be_read_when_stdin_is_not_a_plain_file( function test_second_order_requirements_path_handling (line 4029) | def test_second_order_requirements_path_handling( function test_second_order_requirements_relative_path_in_separate_dir (line 4103) | def test_second_order_requirements_relative_path_in_separate_dir( function test_second_order_requirements_can_be_in_parent_of_cwd (line 4155) | def test_second_order_requirements_can_be_in_parent_of_cwd( function test_url_constraints_are_not_treated_as_file_paths (line 4200) | def test_url_constraints_are_not_treated_as_file_paths( function test_that_self_referential_pyproject_toml_extra_can_be_compiled (line 4274) | def test_that_self_referential_pyproject_toml_extra_can_be_compiled( function test_compile_with_generate_hashes_preserves_extra_index_url (line 4327) | def test_compile_with_generate_hashes_preserves_extra_index_url( FILE: tests/test_cli_sync.py function _temp_default_reqs (line 16) | def _temp_default_reqs(tmp_path, monkeypatch): function test_run_as_module_sync (line 22) | def test_run_as_module_sync(): function test_sync_help_opt_supports_short_and_long_flag (line 36) | def test_sync_help_opt_supports_short_and_long_flag(runner): function test_sync_help_opt_shows_examples_section (line 47) | def test_sync_help_opt_shows_examples_section(runner): function test_quiet_option (line 58) | def test_quiet_option(run, runner): function test_quiet_option_when_up_to_date (line 75) | def test_quiet_option_when_up_to_date(run, runner): function test_no_requirements_file (line 90) | def test_no_requirements_file(runner): function test_input_files_with_dot_in_extension (line 101) | def test_input_files_with_dot_in_extension(runner, tmp_path): function test_force_files_with_dot_in_extension (line 114) | def test_force_files_with_dot_in_extension(runner, tmp_path): function test_merge_error (line 139) | def test_merge_error(req_lines, should_raise, runner): function test_merge_no_name_urls (line 167) | def test_merge_no_name_urls(run, req_line, runner, tmp_path): function test_pip_install_flags (line 218) | def test_pip_install_flags(run, cli_flags, expected_install_flags, runner): function test_pip_install_flags_in_requirements_file (line 247) | def test_pip_install_flags_in_requirements_file(run, runner, install_fla... function test_sync_ask_declined (line 265) | def test_sync_ask_declined(run, runner): function test_sync_ask_accepted (line 278) | def test_sync_ask_accepted(run, runner): function test_sync_dry_run_returns_non_zero_exit_code (line 291) | def test_sync_dry_run_returns_non_zero_exit_code(runner): function test_python_executable_option (line 304) | def test_python_executable_option( function test_invalid_python_executable (line 340) | def test_invalid_python_executable(runner, python_executable): function test_invalid_pip_version_in_python_executable (line 351) | def test_invalid_pip_version_in_python_executable( function test_default_python_executable_option (line 376) | def test_default_python_executable_option(run, runner): function test_default_config_option (line 401) | def test_default_config_option(run, runner, make_config_file, tmpdir_cwd): function test_config_option (line 414) | def test_config_option(run, runner, make_config_file): function test_no_config_option_overrides_config_with_defaults (line 427) | def test_no_config_option_overrides_config_with_defaults(run, runner, ma... function test_raise_error_on_unknown_config_option (line 440) | def test_raise_error_on_unknown_config_option(run, runner, tmp_path, mak... function test_raise_error_on_invalid_config_option (line 453) | def test_raise_error_on_invalid_config_option(run, runner, tmp_path, mak... function test_allow_in_config_pip_compile_option (line 466) | def test_allow_in_config_pip_compile_option(run, runner, tmp_path, make_... function test_tool_specific_config_option (line 479) | def test_tool_specific_config_option(run, runner, make_config_file): FILE: tests/test_data/packages/small_fake_with_build_deps/backend/backend.py function get_requires_for_build_sdist (line 15) | def get_requires_for_build_sdist(config_settings=None): function get_requires_for_build_wheel (line 23) | def get_requires_for_build_wheel(config_settings=None): function get_requires_for_build_editable (line 31) | def get_requires_for_build_editable(config_settings=None): FILE: tests/test_fake_index.py function test_find_best_match (line 6) | def test_find_best_match(from_line, repository): function test_find_best_match_incl_prereleases (line 22) | def test_find_best_match_incl_prereleases(from_line, repository): function test_find_best_match_for_editable (line 32) | def test_find_best_match_for_editable(from_editable, repository): function test_get_dependencies (line 37) | def test_get_dependencies(from_line, repository): function test_get_dependencies_for_editable (line 74) | def test_get_dependencies_for_editable(from_editable, repository): function test_get_dependencies_rejects_non_pinned_requirements (line 79) | def test_get_dependencies_rejects_non_pinned_requirements(from_line, rep... function test_get_hashes (line 85) | def test_get_hashes(from_line, repository): FILE: tests/test_logging.py function test_indentation (line 6) | def test_indentation(runner): FILE: tests/test_minimal_upgrade.py function test_no_upgrades (line 37) | def test_no_upgrades(base_resolver, repository, from_line, input, pins, ... FILE: tests/test_pip_compat.py function test_parse_requirements_preserve_editable_relative_path (line 10) | def test_parse_requirements_preserve_editable_relative_path(tmp_path, re... FILE: tests/test_repository_local.py function test_get_hashes_local_repository_cache_miss (line 11) | def test_get_hashes_local_repository_cache_miss( function test_get_hashes_local_repository_cache_hit (line 24) | def test_get_hashes_local_repository_cache_hit(from_line, repository): function test_toggle_reuse_hashes_local_repository (line 43) | def test_toggle_reuse_hashes_local_repository( FILE: tests/test_repository_pypi.py function test_generate_hashes_all_platforms (line 16) | def test_generate_hashes_all_platforms(capsys, pip_conf, from_line, pypi... function test_get_file_hash_without_interfering_with_each_other (line 39) | def test_get_file_hash_without_interfering_with_each_other(from_line, py... function test_get_hashes_editable_empty_set (line 71) | def test_get_hashes_editable_empty_set(from_editable, pypi_repository): function test_get_hashes_unpinned_raises (line 76) | def test_get_hashes_unpinned_raises(from_line, pypi_repository): function test_open_local_or_remote_file__local_file (line 85) | def test_open_local_or_remote_file__local_file(tmp_path, content, conten... function test_open_local_or_remote_file__directory (line 101) | def test_open_local_or_remote_file__directory(tmpdir): function test_open_local_or_remote_file__remote_file (line 120) | def test_open_local_or_remote_file__remote_file( function test_relative_path_cache_dir_is_normalized (line 146) | def test_relative_path_cache_dir_is_normalized(from_line): function test_relative_path_pip_cache_dir_is_normalized (line 154) | def test_relative_path_pip_cache_dir_is_normalized(from_line, tmpdir): function test_pip_cache_dir_is_empty (line 164) | def test_pip_cache_dir_is_empty(from_line, tmpdir): function test_get_hashes_from_pypi (line 273) | def test_get_hashes_from_pypi(from_line, tmpdir, project_data, expected_... function test_get_hashes_from_mixed (line 291) | def test_get_hashes_from_mixed(pip_conf, from_line, tmpdir): function test_get_project__returns_data (line 349) | def test_get_project__returns_data(from_line, tmpdir, monkeypatch, pypi_... function test_get_project__handles_http_error (line 372) | def test_get_project__handles_http_error( function test_get_project__handles_json_decode_error (line 389) | def test_get_project__handles_json_decode_error( function test_get_project__handles_404 (line 413) | def test_get_project__handles_404(from_line, tmpdir, monkeypatch, pypi_r... function test_name_collision (line 432) | def test_name_collision(from_line, pypi_repository, make_package, make_s... FILE: tests/test_resolver.py function test_resolver (line 197) | def test_resolver( function test_resolver__allows_unsafe_deps (line 243) | def test_resolver__allows_unsafe_deps( function test_resolver__custom_unsafe_deps (line 281) | def test_resolver__custom_unsafe_deps( function test_resolver__max_number_rounds_reached (line 302) | def test_resolver__max_number_rounds_reached(resolver, from_line): function test_iter_dependencies (line 311) | def test_iter_dependencies(resolver, from_line): function test_iter_dependencies_results (line 324) | def test_iter_dependencies_results(resolver, from_line): function test_iter_dependencies_ignores_constraints (line 330) | def test_iter_dependencies_ignores_constraints(resolver, from_line): function test_iter_dependencies_after_combine_install_requirements (line 337) | def test_iter_dependencies_after_combine_install_requirements( function test_iter_dependencies_after_combine_install_requirements_extras (line 354) | def test_iter_dependencies_after_combine_install_requirements_extras( function test_combine_install_requirements (line 377) | def test_combine_install_requirements(from_line): function _test_combine_install_requirements_extras (line 393) | def _test_combine_install_requirements_extras(with_extra, without_extra): function test_combine_install_requirements_extras_req (line 403) | def test_combine_install_requirements_extras_req(from_line, make_package): function test_combine_install_requirements_extras_no_req (line 416) | def test_combine_install_requirements_extras_no_req(from_line, make_pack... function test_combine_install_requirements_with_paths (line 432) | def test_combine_install_requirements_with_paths(from_line, make_package): function test_combine_install_requirements_for_one_package_with_multiple_extras (line 448) | def test_combine_install_requirements_for_one_package_with_multiple_extras( function test_compile_failure_shows_provenance (line 459) | def test_compile_failure_shows_provenance(resolver, from_line): function test_RequirementSummary_equality (line 503) | def test_RequirementSummary_equality(from_line, left_hand, right_hand, e... function test_RequirementSummary_hash_equality (line 537) | def test_RequirementSummary_hash_equality(from_line, left_hand, right_ha... function test_requirement_summary_with_other_objects (line 546) | def test_requirement_summary_with_other_objects(from_line): function test_catch_distribution_not_found_error (line 562) | def test_catch_distribution_not_found_error(backtracking_resolver, excep... FILE: tests/test_sync.py function mocked_tmp_file (line 20) | def mocked_tmp_file(): function mocked_tmp_req_file (line 26) | def mocked_tmp_req_file(mocked_tmp_file): function test_dependency_tree (line 69) | def test_dependency_tree(fake_dist, installed, root, expected): function test_merge_detect_conflicts (line 79) | def test_merge_detect_conflicts(from_line): function test_merge_ignore_conflicts (line 86) | def test_merge_ignore_conflicts(from_line): function test_merge (line 94) | def test_merge(from_line): function test_merge_urls (line 106) | def test_merge_urls(from_line): function test_merge_no_name_urls (line 125) | def test_merge_no_name_urls(install_req, request): function test_diff_should_do_nothing (line 138) | def test_diff_should_do_nothing(): function test_diff_should_install (line 147) | def test_diff_should_install(from_line): function test_diff_should_uninstall (line 156) | def test_diff_should_uninstall(fake_dist): function test_diff_should_not_uninstall (line 165) | def test_diff_should_not_uninstall(fake_dist): function test_diff_should_update (line 191) | def test_diff_should_update(fake_dist, from_line): function test_diff_should_install_with_markers (line 200) | def test_diff_should_install_with_markers(from_line): function test_diff_should_uninstall_with_markers (line 209) | def test_diff_should_uninstall_with_markers(fake_dist, from_line): function test_diff_leave_packaging_packages_alone (line 218) | def test_diff_leave_packaging_packages_alone(fake_dist, from_line): function test_diff_leave_piptools_and_its_dependencies_alone (line 235) | def test_diff_leave_piptools_and_its_dependencies_alone(fake_dist, from_... function test_diff_with_editable (line 258) | def test_diff_with_editable(fake_dist, from_editable): function test_diff_with_matching_url_hash (line 274) | def test_diff_with_matching_url_hash(fake_dist, from_line): function test_diff_respects_canonical_package_names (line 296) | def test_diff_respects_canonical_package_names( function test_diff_with_no_url_hash (line 306) | def test_diff_with_no_url_hash(fake_dist, from_line): function test_diff_with_unequal_url_hash (line 318) | def test_diff_with_unequal_url_hash(fake_dist, from_line): function test_sync_install_temporary_requirement_file (line 330) | def test_sync_install_temporary_requirement_file( function test_temporary_requirement_file_deleted (line 342) | def test_temporary_requirement_file_deleted(from_line, from_editable, mo... function test_sync_requirement_file (line 352) | def test_sync_requirement_file(from_line, from_editable, mocked_tmp_req_... function test_sync_requirement_file_with_hashes (line 374) | def test_sync_requirement_file_with_hashes( function test_sync_up_to_date (line 428) | def test_sync_up_to_date(capsys, runner): function test_sync_verbose (line 439) | def test_sync_verbose(run, from_line): function test_sync_dry_run (line 457) | def test_sync_dry_run( function test_sync_ask_declined (line 482) | def test_sync_ask_declined( function test_sync_ask_accepted (line 506) | def test_sync_ask_accepted(run, monkeypatch, capsys, from_line, dry_run): function test_sync_uninstall_pip_command (line 531) | def test_sync_uninstall_pip_command(run): FILE: tests/test_utils.py function test_format_requirement (line 40) | def test_format_requirement(from_line): function test_format_requirement_url (line 139) | def test_format_requirement_url(from_line, line, expected): function test_format_requirement_editable_vcs (line 144) | def test_format_requirement_editable_vcs(from_editable): function test_format_requirement_editable_vcs_with_password (line 149) | def test_format_requirement_editable_vcs_with_password(from_editable): function test_format_requirement_editable_local_path (line 156) | def test_format_requirement_editable_local_path(from_editable): function test_format_requirement_ireq_with_hashes (line 161) | def test_format_requirement_ireq_with_hashes(from_line): function test_format_requirement_ireq_with_hashes_and_markers (line 178) | def test_format_requirement_ireq_with_hashes_and_markers(from_line): function test_format_specifier (line 196) | def test_format_specifier(from_line, from_editable): function test_as_tuple (line 214) | def test_as_tuple(from_line): function test_flat_map (line 235) | def test_flat_map(): function test_dedup (line 239) | def test_dedup(): function test_get_hashes_from_ireq (line 243) | def test_get_hashes_from_ireq(from_line): function test_is_pinned_requirement (line 272) | def test_is_pinned_requirement(from_line, line, expected): function test_is_pinned_requirement_editable (line 277) | def test_is_pinned_requirement_editable(from_editable): function test_key_from_ireq_normalization (line 282) | def test_key_from_ireq_normalization(from_line): function test_key_from_req_on_install_requirement (line 298) | def test_key_from_req_on_install_requirement( function test_key_from_req_on_specifier_requirement (line 318) | def test_key_from_req_on_specifier_requirement( function test_is_url_requirement (line 340) | def test_is_url_requirement(caplog, from_line, line, expected): function test_is_url_requirement_filename (line 346) | def test_is_url_requirement_filename(caplog, from_line, line): function test_get_compile_command (line 431) | def test_get_compile_command(tmpdir_cwd, cli_args, expected_command): function test_get_compile_command_with_config (line 455) | def test_get_compile_command_with_config(tmpdir_cwd, config_file, expect... function test_get_compile_command_does_not_include_default_config_if_reqs_file_in_subdir (line 472) | def test_get_compile_command_does_not_include_default_config_if_reqs_fil... function test_get_compile_command_escaped_filenames (line 493) | def test_get_compile_command_escaped_filenames(tmpdir_cwd): function test_get_compile_command_with_files (line 506) | def test_get_compile_command_with_files(tmpdir_cwd, filename): function test_get_compile_command_sort_args (line 525) | def test_get_compile_command_sort_args(tmpdir_cwd): function test_lookup_table_from_tuples (line 560) | def test_lookup_table_from_tuples(tuples): function test_lookup_table (line 572) | def test_lookup_table(values, key): function test_lookup_table_from_tuples_with_empty_values (line 577) | def test_lookup_table_from_tuples_with_empty_values(): function test_lookup_table_with_empty_values (line 581) | def test_lookup_table_with_empty_values(): function test_drop_extras (line 631) | def test_drop_extras(from_line, given, expected): function test_get_sys_path_for_python_executable (line 640) | def test_get_sys_path_for_python_executable(): function test_callback_config_file_defaults (line 688) | def test_callback_config_file_defaults(pyproject_param, new_default, mak... function test_callback_config_file_defaults_multi_validate_value (line 715) | def test_callback_config_file_defaults_multi_validate_value( function test_callback_config_file_defaults_bad_toml (line 725) | def test_callback_config_file_defaults_bad_toml(make_config_file): function test_callback_config_file_defaults_precedence (line 737) | def test_callback_config_file_defaults_precedence(make_config_file): function test_callback_config_file_defaults_unreadable_toml (line 748) | def test_callback_config_file_defaults_unreadable_toml(make_config_file): function test_select_config_file_no_files (line 758) | def test_select_config_file_no_files(tmpdir_cwd): function test_select_config_file_returns_config_in_cwd (line 763) | def test_select_config_file_returns_config_in_cwd(make_config_file, file... function test_select_config_file_returns_empty_config_file_in_cwd (line 768) | def test_select_config_file_returns_empty_config_file_in_cwd(tmpdir_cwd): function test_select_config_file_cannot_find_config_in_cwd (line 775) | def test_select_config_file_cannot_find_config_in_cwd(tmpdir_cwd, make_c... function test_select_config_file_with_config_file_in_subdir (line 780) | def test_select_config_file_with_config_file_in_subdir(tmpdir_cwd, make_... function test_select_config_file_prefers_pip_tools_toml_over_pyproject_toml (line 789) | def test_select_config_file_prefers_pip_tools_toml_over_pyproject_toml(t... FILE: tests/test_writer.py function writer (line 20) | def writer(tmpdir_cwd): function test_format_requirement_annotation_editable (line 57) | def test_format_requirement_annotation_editable(from_editable, writer): function test_format_requirement_annotation (line 67) | def test_format_requirement_annotation(from_line, writer): function test_format_requirement_annotation_lower_case (line 74) | def test_format_requirement_annotation_lower_case(from_line, writer): function test_format_requirement_for_primary (line 81) | def test_format_requirement_for_primary(from_line, writer): function test_format_requirement_for_primary_lower_case (line 89) | def test_format_requirement_for_primary_lower_case(from_line, writer): function test_format_requirement_environment_marker (line 97) | def test_format_requirement_environment_marker(from_line, writer): function test_iter_lines__unsafe_dependencies (line 111) | def test_iter_lines__unsafe_dependencies(writer, from_line, allow_unsafe): function test_iter_lines__unsafe_with_hashes (line 131) | def test_iter_lines__unsafe_with_hashes(capsys, writer, from_line): function test_iter_lines__hash_missing (line 154) | def test_iter_lines__hash_missing(capsys, writer, from_line): function test_iter_lines__no_warn_if_only_unhashable_packages (line 179) | def test_iter_lines__no_warn_if_only_unhashable_packages(writer, from_li... function test_write_header (line 207) | def test_write_header(writer): function test_write_header_custom_compile_command (line 225) | def test_write_header_custom_compile_command(writer, monkeypatch): function test_write_header_no_emit_header (line 242) | def test_write_header_no_emit_header(writer): function test_write_flags_emit_options (line 270) | def test_write_flags_emit_options(writer, emit_options, expected_flags): function test_write_format_controls (line 283) | def test_write_format_controls(writer): function test_write_format_controls_all (line 325) | def test_write_format_controls_all(writer, no_binary, only_binary, expec... function test_write_index_options (line 402) | def test_write_index_options(writer, index_urls, expected_lines): function test_write_index_options_no_emit_index (line 411) | def test_write_index_options_no_emit_index(writer): function test_write_find_links (line 429) | def test_write_find_links(writer, find_links, expected_lines): function test_write_order (line 437) | def test_write_order(writer, from_line): FILE: tests/unit/_internal/pip_api/test_cli_options.py function test_postprocess_cli_options_pre_adds_all_to_release_control_all_releases (line 12) | def test_postprocess_cli_options_pre_adds_all_to_release_control_all_rel... FILE: tests/unit/_internal/pip_api/test_install_requirements.py function test_copy_install_requirement_removes_pip_25_3_unsupported_opts (line 12) | def test_copy_install_requirement_removes_pip_25_3_unsupported_opts(use_... function test_copy_install_requirement_preserves_pip_25_3_unsupported_opts (line 23) | def test_copy_install_requirement_preserves_pip_25_3_unsupported_opts(us... FILE: tests/unit/_internal/pip_api/test_package_finder.py function finder_with_pre (line 10) | def finder_with_pre(tmp_path): function test_finder_with_pre_allows_all_prereleases (line 17) | def test_finder_with_pre_allows_all_prereleases(finder_with_pre): function test_finder_with_pre_allows_specific_package_prereleases (line 21) | def test_finder_with_pre_allows_specific_package_prereleases(finder_with... FILE: tests/unit/_internal/pip_api/test_pip_version.py function test_get_pip_version_for_python_executable (line 11) | def test_get_pip_version_for_python_executable(): FILE: tests/unit/_internal/test_subprocess.py function test_run_python_snippet_returns_multilne (line 8) | def test_run_python_snippet_returns_multilne(): FILE: tests/utils.py function looks_like_ci (line 9) | def looks_like_ci():