/
niceSOFT
/
python3-hatchling
Обзор
Документация
Войти
/
niceSOFT
/
python3-hatchling
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
backend/src/hatchling/builders/hooks/plugin/hooks.py
16 строк
545 B
Philipp A.
fix: take metadata hooks from project (#2351)
23 июл 2026, 04:42
Не верифицирован
23 июл 2026, 04:42
af5339a
Код
Авторство
О чём код?
from __future__ import annotations import typing from hatchling.builders.hooks.custom import CustomBuildHook from hatchling.builders.hooks.version import VersionBuildHook from hatchling.plugin import hookimpl if typing.TYPE_CHECKING: from hatchling.builders.hooks.plugin.interface import BuildHookInterface @hookimpl def hatch_register_build_hook() -> list[type[BuildHookInterface]]: # CustomBuildHook fakes its type via `__new__`; it is not a real subclass return [CustomBuildHook, VersionBuildHook] # type: ignore[list-item]