Skip to content

Make stat exit status indicate translation health - #143

Merged
shimizukawa merged 2 commits into
masterfrom
issue-128-stat-exit-code
Aug 30, 2026
Merged

Make stat exit status indicate translation health#143
shimizukawa merged 2 commits into
masterfrom
issue-128-stat-exit-code

Conversation

@shimizukawa

Copy link
Copy Markdown
Member

Closes #128

Summary

  • return exit status 1 from sphinx-intl stat when fuzzy or untranslated messages exist
  • keep exit status 0 when all messages are translated and non-fuzzy
  • document the exit status behavior

Tests

  • uv run pytest -q
  • uv run ruff check sphinx_intl/commands.py tests/test_cmd_pot.py
  • uv run --with-requirements doc/requirements.txt sphinx-build -E -W --keep-going -b html doc /tmp/sphinx-intl-doc-issue128
  • uv run --with-requirements doc/requirements.txt sphinx-lint doc/refs.rst

@shimizukawa shimizukawa self-assigned this Aug 30, 2026
@shimizukawa
shimizukawa merged commit 508e623 into master Aug 30, 2026
12 checks passed
@shimizukawa
shimizukawa deleted the issue-128-stat-exit-code branch August 30, 2026 03:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[brainstroming] Exit code from stat command to indicate translation health

1 participant