Skip to content

[DOCS] Clear pydocstyle errors in codegen and pyspark - #582

Merged
Victor Schappert (vcschapp) merged 1 commit into
mainfrom
docformat-codegen-pyspark
Jul 22, 2026
Merged

[DOCS] Clear pydocstyle errors in codegen and pyspark#582
Victor Schappert (vcschapp) merged 1 commit into
mainfrom
docformat-codegen-pyspark

Conversation

@sethfitz

Copy link
Copy Markdown
Collaborator

Summary

make docformat (pydocstyle, numpy convention) flagged eight docstrings across overture-schema-codegen and overture-schema-pyspark. This clears all of them. Docstring text only, no runtime behavior change.

Fixes

  • D301 (raw string for backslashes)_bare_map_side_name, normalize_anchor, check_pattern: switch to r""" and drop the doubled backslashes so the rendered text (\|, \z, \d \s \w \S) is unchanged.
  • D401 (imperative mood)_condition_value, absent_column: reword the summary to lead with a verb.
  • D401 on check_string_min_length / check_string_max_length — pydocstyle's stemmer trips on a leading "String"; the summaries now read "Minimum/Maximum character length check for strings", parallel to the sibling check_array_* docstrings.
  • D403 on map_runtime_helper — the check lowercases the proper noun "PySpark" to "Pyspark"; reworded so PySpark is no longer the first word.

Scope

Limited to the two named packages. Other packages (annex, common, system, transportation-theme) have separate missing-docstring errors (D100/D101) not addressed here.

Closes #581

`make docformat` (pydocstyle, numpy convention) flagged eight docstrings
across overture-schema-codegen and overture-schema-pyspark:

- D301 (raw string for backslashes): `_bare_map_side_name`,
  `normalize_anchor`, and `check_pattern` move to `r"""` and drop the
  doubled backslashes, so the rendered text is unchanged.
- D401 (imperative mood): `_condition_value` and `absent_column` reword
  the summary to lead with a verb.
- D401 on `check_string_min_length` / `check_string_max_length`:
  pydocstyle's stemmer trips on a leading "String", so the summary now
  reads "Minimum/Maximum character length check for strings", matching
  the sibling `check_array_*` docstrings.
- D403 on `map_runtime_helper`: the check lowercases the proper noun
  "PySpark" to "Pyspark", so the summary is reworded to keep PySpark out
  of first position.

Docstring text only, no behavior change.

Refs #581

Signed-off-by: Seth Fitzsimmons <seth@mojodna.net>
@github-actions

Copy link
Copy Markdown

🗺️ Schema reference docs preview is live!

🌍 Preview https://staging.overturemaps.org/schema/pr/582/schema/index.html
🕐 Updated Jul 21, 2026 19:13 UTC
📝 Commit a42ddf5
🔧 env SCHEMA_PREVIEW true

Note

♻️ This preview updates automatically with each push to this PR.

@vcschapp
Victor Schappert (vcschapp) merged commit 56e8401 into main Jul 22, 2026
23 of 27 checks passed
@vcschapp
Victor Schappert (vcschapp) deleted the docformat-codegen-pyspark branch July 22, 2026 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[DOCS] Clear pydocstyle errors in codegen and pyspark

3 participants