Browse Source

🎨 [pre-commit.ci] Auto format from pre-commit.com hooks

pull/13575/head
pre-commit-ci[bot] 4 days ago
parent
commit
febd798586
  1. 5
      pdm_build.py

5
pdm_build.py

@ -7,15 +7,12 @@ TIANGOLO_BUILD_PACKAGE = os.getenv("TIANGOLO_BUILD_PACKAGE", "fastapi")
def pdm_build_initialize(context: Context) -> None: def pdm_build_initialize(context: Context) -> None:
metadata = context.config.metadata metadata = context.config.metadata
# Get custom config for the current package, from the env var # Get custom config for the current package, from the env var
config: Dict[str, Any] = context.config.data["tool"]["tiangolo"][ config: Dict[str, Any] = context.config.data["tool"]["tiangolo"][
"_internal-slim-build" "_internal-slim-build"
]["packages"].get( ]["packages"].get(TIANGOLO_BUILD_PACKAGE)
TIANGOLO_BUILD_PACKAGE
)
if not config: if not config:
return return

Loading…
Cancel
Save