Files
hate_crack/hate_crack/__init__.py
T
Justin BollingerandClaude a13b573f79 style: apply ruff format to hate_crack
Normalizes formatting across the package so `ruff format --check` (added to
CI in a following commit) passes. No behavioral changes.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-25 13:15:14 -04:00

18 lines
596 B
Python

# hate_crack package
import re as _re
from importlib.metadata import PackageNotFoundError as _PackageNotFoundError
from importlib.metadata import version as _pkg_version
try:
_raw_version = _pkg_version("hate_crack")
except _PackageNotFoundError:
_raw_version = "0.0.0"
# Clean setuptools-scm suffixes for display:
# "2.5.1.post1.dev0" → "2.5.1"
# "2.5.1" → "2.5.1"
__version__ = _re.sub(r"(\.post\d+|\.dev\d+)", "", _raw_version)
__version_tuple__ = tuple(int(x) if x.isdigit() else x for x in __version__.split("."))
__all__ = ["__version__", "__version_tuple__"]