Skip to content

Commit 458e6c9

Browse files
committed
chore: plain punctuation in the codegen notes and the drift message
1 parent 612a20f commit 458e6c9

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

codegen.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
public SDK namespaces:
1111
1212
1. Most tags derive their snake_case attribute and PascalCase class name
13-
automatically e.g. "Vedic Astrology" -> vedic_astrology / VedicAstrologyDomain,
13+
automatically, e.g. "Vedic Astrology" -> vedic_astrology / VedicAstrologyDomain,
1414
"Numerology" -> numerology / NumerologyDomain, "Languages" -> languages /
1515
LanguagesDomain. New tags need NO change here.
16-
2. A handful of tags use a curated short-form for branding the public SDK
16+
2. A handful of tags use a curated short-form for branding: the public SDK
1717
exposes ``roxy.astrology``, not ``roxy.western_astrology``. Those overrides
1818
live in NAMESPACE_ALIASES below.
1919
@@ -283,13 +283,13 @@ def main() -> None:
283283
tag_objects = tag_index(spec)
284284
domains = group_by_tag(spec)
285285

286-
# Warn on stale NAMESPACE_ALIASES aliases pointing at tags no longer in
286+
# Warn on stale NAMESPACE_ALIASES: aliases pointing at tags no longer in
287287
# the spec. New tags are fine; they auto-derive via tag_to_attr / tag_to_class.
288288
spec_tag_names = set(tag_objects) | set(domains)
289289
for alias_tag in NAMESPACE_ALIASES:
290290
if alias_tag not in spec_tag_names:
291291
print(
292-
f"WARNING: NAMESPACE_ALIASES entry '{alias_tag}' is stale "
292+
f"WARNING: NAMESPACE_ALIASES entry '{alias_tag}' is stale: "
293293
"no such tag in the OpenAPI spec. Remove it from codegen.py."
294294
)
295295

lefthook.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ pre-push:
2828
type-check:
2929
run: uv run mypy src/roxy_sdk/__init__.py
3030
docs-drift:
31-
run: uv run python sync_docs.py && git diff --exit-code -- README.md AGENTS.md || { echo "✗ README.md/AGENTS.md drifted from spec commit the sync output"; exit 1; }
31+
run: uv run python sync_docs.py && git diff --exit-code -- README.md AGENTS.md || { echo "✗ README.md/AGENTS.md drifted from spec, commit the sync output"; exit 1; }
3232
pytest:
3333
run: uv run pytest tests/test_factory.py -q

0 commit comments

Comments
 (0)