Skip to content

docs: modify rest style comments with doc convert to follow google style.#993

Draft
martynia wants to merge 1 commit into
DIRACGrid:mainfrom
martynia:janusz_rest2_googledocs_927
Draft

docs: modify rest style comments with doc convert to follow google style.#993
martynia wants to merge 1 commit into
DIRACGrid:mainfrom
martynia:janusz_rest2_googledocs_927

Conversation

@martynia

@martynia martynia commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

A minimal change, only convert rest style comments to google style comments. Don't modify comments themselves, when possible. Fixes #927

@aldbr
aldbr requested a review from devlink42 July 16, 2026 08:08

:raises:
Raises:
NoResultFound if no such user code currently Pending

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
NoResultFound if no such user code currently Pending
NoResultFound: if no such user code currently Pending

"""Return code, redirect_uri.

:raises: AuthorizationError if no such uuid or status not pending.
Raises: AuthorizationError if no such uuid or status not pending.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
Raises: AuthorizationError if no such uuid or status not pending.
Raises:
AuthorizationError: if no such uuid or status not pending.

Comment on lines +207 to 209
Returns:
rowcount

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
Returns:
rowcount
Returns:
rowcount


:raises: JobNotFound if the job is not found in one of the DBs
Raises:
JobNotFound if the job is not found in one of the DBs

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
JobNotFound if the job is not found in one of the DBs
JobNotFound if the job is not found in one of the DBs


:raises:
Raises:
* ValueError in case the scope isn't valid

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
* ValueError in case the scope isn't valid
ValueError in case the scope isn't valid

Comment on lines -85 to -86
:raises: diracx.core.exceptions.NotReadyError if the source is being loaded still
:raises: git.exc.BadName if version does not exist

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Raises have been deleted, is that expected?

Comment on lines -96 to -97
:raises: diracx.core.exceptions.NotReadyError if the source is being loaded still
:raises: git.exc.BadName if version does not exist

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Same here, they have been deleted

@DIRACGridBot
DIRACGridBot marked this pull request as draft July 17, 2026 08:50
@martynia

martynia commented Jul 17, 2026 via email

Copy link
Copy Markdown
Contributor Author

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.

Enhancement: Harmonize Docstring convention to Google Style (Native MkDocs Support & CI Enforcement)

3 participants