Skip to content

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

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 flake8 lint is clean on the changed files.

Left alone: the vendored test corpus under tests/vendor/, and tests/support/ulab/numpy.py, which says it is ported from ulab.

@bdbarnett
bdbarnett merged commit e5b00ee into main Nov 3, 2026
35 checks passed
@bdbarnett
bdbarnett deleted the style-sweep branch November 3, 2026 22:30
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