mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-06 20:16:53 +00:00
24 lines
658 B
Python
24 lines
658 B
Python
from __future__ import annotations
|
|
|
|
from typing import Callable
|
|
from typing import List
|
|
from typing import Optional
|
|
|
|
from pip._internal.req.req_install import InstallRequirement
|
|
from pip._internal.req.req_set import RequirementSet
|
|
|
|
InstallRequirementProvider = Callable[
|
|
[str, Optional[InstallRequirement]], InstallRequirement,
|
|
]
|
|
|
|
|
|
class BaseResolver:
|
|
def resolve(
|
|
self, root_reqs: list[InstallRequirement], check_supported_wheels: bool,
|
|
) -> RequirementSet:
|
|
raise NotImplementedError()
|
|
|
|
def get_installation_order(
|
|
self, req_set: RequirementSet,
|
|
) -> list[InstallRequirement]:
|
|
raise NotImplementedError()
|