Skip to content

Zensical#4

Merged
egenn merged 2 commits into
mainfrom
zensical
Mar 31, 2026
Merged

Zensical#4
egenn merged 2 commits into
mainfrom
zensical

Conversation

@egenn
Copy link
Copy Markdown
Member

@egenn egenn commented Mar 31, 2026

No description provided.

Copilot AI review requested due to automatic review settings March 31, 2026 03:25
@egenn egenn merged commit 3d1c4fd into main Mar 31, 2026
3 checks passed
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds build-docs.sh to the .gitignore and simplifies the A3ParseError docstring. Feedback indicates that the build script should be tracked if used in CI/CD or by others, and suggests restoring the detailed docstring for better API documentation.

Comment thread python/.gitignore
Comment on lines +41 to +42
# custom docs building
build-docs.sh
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Ignoring build-docs.sh prevents the script from being committed to the repository. If this script is intended for use by other contributors or in CI/CD pipelines to build documentation, it should be tracked. If it is a local-only script, it is better to keep it out of the repository's .gitignore and use a local exclude file instead.

message : str
Human-readable description of the failure.
"""
"""Raised when JSON parsing or file I/O fails."""
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The removal of the Parameters section from the docstring reduces the clarity of the exception's API. While A3ParseError is a simple exception, explicitly documenting the expected message parameter is helpful for users of the library, especially since it is used with a message throughout the codebase.

Suggested change
"""Raised when JSON parsing or file I/O fails."""
"""Raised when JSON parsing or file I/O fails.
Parameters
----------
message : str
Human-readable description of the failure.
"""

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR makes small maintenance-oriented tweaks in the Python portion of the repo: it simplifies an exception docstring and updates the Python .gitignore for a local docs build script.

Changes:

  • Shorten A3ParseError’s docstring in errors.py.
  • Ignore build-docs.sh in python/.gitignore.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
python/rtemis_a3/src/rtemis/a3/errors.py Simplifies the A3ParseError class docstring.
python/.gitignore Adds an ignore entry for a local docs build script.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

message : str
Human-readable description of the failure.
"""
"""Raised when JSON parsing or file I/O fails."""
Copy link

Copilot AI Mar 31, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The A3ParseError docstring was shortened to a one-liner, but the rest of this package (e.g., A3ValidationError in this file and public functions in api.py/io.py) uses NumPy-style docstrings with Parameters/Raises sections. Consider restoring the structured docstring (or documenting message via an __init__) to keep generated API docs consistent.

Suggested change
"""Raised when JSON parsing or file I/O fails."""
"""Raised when JSON parsing or file I/O fails.
Parameters
----------
message : str
Human-readable description of the parsing or I/O failure.
"""

Copilot uses AI. Check for mistakes.
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.

2 participants