Skip to content

Version string is hardcoded in multiple places #14

Description

@jtdub

Problem

The version "0.1.0" is hardcoded as a string literal in two places in main.py:

  • Line 11: version="0.1.0" (FastAPI app)
  • Line 39: "version": "0.1.0" (root endpoint response)

These will drift from the canonical version in pyproject.toml.

Suggested Fix

Use importlib.metadata.version("hier-config-api") to read the version from the installed package metadata, or use a single __version__ constant in __init__.py.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions