File: hooks.py

package info (click to toggle)
hatch-sphinx 0.0.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 120 kB
  • sloc: python: 438; sh: 7; makefile: 2
file content (13 lines) | stat: -rw-r--r-- 404 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
"""Register hooks for the plugin."""

from hatchling.plugin import hookimpl
from hatchling.builders.hooks.plugin.interface import BuildHookInterface
from hatchling.builders.config import BuilderConfig

from hatch_sphinx.plugin import SphinxBuildHook


@hookimpl
def hatch_register_build_hook() -> type[BuildHookInterface[BuilderConfig]]:
    """Get the hook implementation."""
    return SphinxBuildHook