Skip to content

fix: clear the black advisory and make the PORTING custom-fields snippet pass lint - #2

Merged
SnowboardTechie merged 2 commits into
mainfrom
bryan/porting-snippet-docstrings
Oct 22, 2026
Merged

SnowboardTechie merged 2 commits into
mainfrom
bryan/porting-snippet-docstrings

Conversation

@SnowboardTechie

@SnowboardTechie SnowboardTechie commented Oct 22, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

CI passes again, and the custom-fields example in PORTING.md now passes make ci when copied in as written.

Changes proposed

  • Bump black to 26.10.1 in poetry.lock. make audit started failing on CVE-2026-114134 in 26.5.1. Black is dev-only, and no other package changed.
  • Add the two docstrings Ruff requires to the PORTING section 6 example: the module docstring from opportunity.py, and one on LegacyId.

Context for reviewers

Copying the current example over opportunity.py fails make ci with Ruff D100 and D101. With this change the example passes, and make ci and make audit are clean on Python 3.11.

The example now matches the one in the website's "Using Python" guide.

Additional information

N/A

@SnowboardTechie SnowboardTechie changed the title docs: make the PORTING custom-fields snippet pass lint fix: clear the black advisory and make the PORTING custom-fields snippet pass lint Oct 22, 2026
@SnowboardTechie
SnowboardTechie marked this pull request as ready for review October 22, 2026 20:36
@SnowboardTechie
SnowboardTechie merged commit c5e11ca into main Oct 22, 2026
2 checks passed
@SnowboardTechie
SnowboardTechie deleted the bryan/porting-snippet-docstrings branch October 22, 2026 20:36
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.

1 participant