Skip to content

Commit

Permalink
add docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
colin-rogers-dbt committed Apr 1, 2024
1 parent 26fed54 commit 0817ce3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions hatch_build.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import logging
import os
import sys
from typing import Any

from hatchling.builders.config import BuilderConfig
Expand Down Expand Up @@ -37,6 +35,10 @@ def _dbt_psycopg2_name():


class CustomBuildHook(BuildHookInterface[BuilderConfig]):
"""
Custom build hook to install psycopg2 instead of psycopg2-binary based on the presence of `DBT_PSYCOPG2_NAME` env
var. This is necessary as psycopg2-binary is better for local development, but psycopg2 is better for production.
"""

def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
Expand Down

0 comments on commit 0817ce3

Please sign in to comment.