Skip to content

Fix and improve project docstrings#170

Merged
llucax merged 6 commits into
v1.x.xfrom
copilot/check-fix-improve-docstrings
Jun 30, 2026
Merged

Fix and improve project docstrings#170
llucax merged 6 commits into
v1.x.xfrom
copilot/check-fix-improve-docstrings

Conversation

Copilot AI commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Sweep of docstring violations and missing tooling configuration per Frequenz Python docstring conventions.

Copilot AI requested a review from llucax June 29, 2026 13:21
@github-actions github-actions Bot added part:tooling Affects the development tooling (CI, deployment, dependency management, etc.) part:typing Affects the typing module part:math Affects the math module part:id Affects the id module part:enum Affects the enum module labels Jun 29, 2026
@llucax llucax added the cmd:skip-release-notes It is not necessary to update release notes for this PR label Jun 29, 2026
@llucax llucax added this to the v1.2.0 milestone Jun 29, 2026
@llucax llucax force-pushed the copilot/check-fix-improve-docstrings branch from 7e3df90 to 2f0043c Compare June 29, 2026 13:37
@llucax llucax marked this pull request as ready for review June 29, 2026 13:37
@llucax llucax requested a review from a team as a code owner June 29, 2026 13:37
@llucax llucax enabled auto-merge June 29, 2026 13:37
@llucax llucax force-pushed the copilot/check-fix-improve-docstrings branch 2 times, most recently from 06eab6a to 7f9e2f5 Compare June 29, 2026 15:07
@llucax llucax requested review from a team and daniel-zullo-frequenz and removed request for a team June 30, 2026 07:11
@llucax

llucax commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Super weird that this is failing the build step, it didn't fail in other PRs and this PR only touches docstrings (and config files parts that should not be involved in package building at all). 🤔 😒

@daniel-zullo-frequenz

Copy link
Copy Markdown

It could be related to setuptools_scm, updating it to the latest version might solve this problem

@llucax

llucax commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

It would be weird, but possible if it is a cache thing, because many dependabot PRs were created and merged after this PR was created.

Copilot AI and others added 5 commits June 30, 2026 14:03
Add missing pydoclint options to `[tool.flake8]` in `pyproject.toml`:
- `check-class-attributes = true`
- `check-style-mismatch = true`
- `require-inline-class-var-docs = true`
- `skip-checking-short-docstrings = true`

Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
Add `relative_crossrefs: true` to `mkdocs.yml` `mkdocstrings` options.

Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
- `Interval` class: fix typo "limites" → "limits", add cross-references
  for `.start` and `.end` attributes in the class body docstring
- `Interval.__contains__`: move summary to the opening line, remove type
  hint from the `Returns:` section (DOC111 equivalent)

Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
- Module docstring: correct the `Note:` admonition that incorrectly
  stated a `ValueError` would be raised for duplicate `str_prefix`
  registrations; the code only logs a warning
- `BaseId.__eq__`, `__lt__`: add missing `Args:` and `Returns:` sections
- `BaseId.__hash__`: add missing `Returns:` section

Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
- `DeprecatingEnumType.__new__`: add cross-reference for
  `DeprecatedMember`
- `DeprecatingEnumType` class docstring: add cross-references for
  `DeprecatedMember` and `deprecated_member()` in the Behavior block

Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
Fix typo `metaclas` → `metaclass` in `NoInitConstructibleMeta`
docstring example.

Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
@llucax llucax force-pushed the copilot/check-fix-improve-docstrings branch from 7f9e2f5 to 3016f80 Compare June 30, 2026 12:04
@llucax llucax added this pull request to the merge queue Jun 30, 2026
@llucax

llucax commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

At the end you were right. I rebased on top of the merged dependabot bumps and that fixed it, probably depeandbot upgraded setuptools_scm and it got fixed.

Merged via the queue into v1.x.x with commit 198e54c Jun 30, 2026
32 checks passed
@llucax llucax deleted the copilot/check-fix-improve-docstrings branch June 30, 2026 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cmd:skip-release-notes It is not necessary to update release notes for this PR part:enum Affects the enum module part:id Affects the id module part:math Affects the math module part:tooling Affects the development tooling (CI, deployment, dependency management, etc.) part:typing Affects the typing module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants