Skip to content

Docstrings: Google sections and cross-references; licence headers on every file - #249

Merged
bdbarnett merged 2 commits into
mainfrom
style-sweep
Nov 3, 2026
Merged

bdbarnett merged 2 commits into
mainfrom
style-sweep

Conversation

@bdbarnett

Copy link
Copy Markdown
Contributor

Every Python file we wrote now starts with the three licence lines, and every docstring that used Sphinx roles or fields now uses Google sections and single-backtick cross-references. :class:~pkg.Foois now Foo <pkg.Foo> ``, and :param: and `:return:` became `Args` and `Returns` sections with the same words.

Only comments and docstrings changed, in two commits: one for the docstrings, one for the headers. For every changed file, the code parses to an identical syntax tree before and after, with docstrings and comments stripped, and no changed docstring is read back as __doc__. The docs build, with warnings as errors, passes.

Left alone: lib-overrides/mip/, which is a copy of upstream MicroPython code that keeps its own holder.

@bdbarnett
bdbarnett merged commit e269562 into main Nov 3, 2026
32 checks passed
@bdbarnett
bdbarnett deleted the style-sweep branch November 3, 2026 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant