Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ repos:
- id: ruff
args: ['--fix']
- id: ruff-format
- repo: local
hooks:
- id: mypy
name: mypy
entry: mypy
language: system
types: [python]
pass_filenames: false
args: ["src"]
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.44.0
hooks:
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# firebase-utils-python

Altissimo Python client for firebase-utils-python.
Shared Firebase utility helpers for Altissimo services.

This package is scaffolding only — no implementation yet.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[project]
name = "firebase-utils-python"
version = "0.1.0"
description = "Altissimo Python client for firebase-utils-python"
description = "Shared Firebase utility helpers for Altissimo services (scaffolding — not yet implemented)"
readme = "README.md"
license = "Apache-2.0"
requires-python = ">=3.11"
Expand Down
9 changes: 8 additions & 1 deletion src/altissimo/firebase_utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,11 @@

from __future__ import annotations

__all__: list[str] = []
from importlib.metadata import PackageNotFoundError, version

try:
__version__ = version("firebase-utils-python")
except PackageNotFoundError: # pragma: no cover — editable install without metadata
__version__ = "0.1.0"

__all__: list[str] = ["__version__"]
19 changes: 19 additions & 0 deletions tests/test_init.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
"""Tests for the altissimo.firebase_utils public API surface."""

from __future__ import annotations


class TestPublicAPI:
"""Verify that the public API is importable and consistent."""

def test_version_exists(self) -> None:
from altissimo.firebase_utils import __version__

assert isinstance(__version__, str)
assert len(__version__) > 0

def test_all_is_accurate(self) -> None:
import altissimo.firebase_utils as mod

for name in mod.__all__:
assert hasattr(mod, name), f"__all__ lists '{name}' but it is not defined"
8 changes: 0 additions & 8 deletions tests/test_placeholder.py

This file was deleted.

Loading