Type of feature
📝 Documentation
Current behavior
E.g. Generated swagger does not have up-to-date information on project name/description/version.
Suggested solution
Example:
def get_version() -> str:
pyproject_path = "path/to/pyproject.toml"
with open(pyproject_path, "rb") as f:
pyproject = tomllib.load(f)
return pyproject.get("tool", {}).get("poetry", {}).get("version", "0.1.0")
Additional context
No response
Code of Conduct
Contributing Docs