Skip to content

Fix Python examples and update the pyproject.toml example - #99

Draft
mmaclay wants to merge 3 commits into
91-contributor-docsfrom
python-example-fixes
Draft

mmaclay wants to merge 3 commits into
91-contributor-docsfrom
python-example-fixes

Conversation

@mmaclay

@mmaclay mmaclay commented Dec 4, 2026

Copy link
Copy Markdown
Member

Change Summary

Stack 7 of 8 (base: 91-contributor-docs).

  • Every Python code block now parses (8 did not): missing colons, a string split across lines, import Exception, except ... is.
  • Error-handling examples raise instead of logging and continuing: the CSV example reports every bad record, then raises; the retry example retries only transient errors and chains the last one.
  • The Poetry example uses [project], dependency groups and a supplemental private index; publishing uses POETRY_PYPI_TOKEN_PYPI.
  • setup.cfg and shell blocks are tagged with their language.

Issue ticket number

Closes #59

🤖 Generated with Claude Code

mmaclay and others added 3 commits December 4, 2026 17:52
- Every Python code block now parses: missing colons, a string split
  across lines, a stray `import Exception` and an `except ... is` typo.
- Error-handling examples raise instead of logging and continuing: the
  CSV example raises after reporting every bad record, and the retry
  example retries only transient errors and chains the last one.
- The Poetry example uses the current [project] table, dependency
  groups and a supplemental private index; the publish steps use
  Poetry's token variable.
- setup.cfg and shell blocks are tagged with their language.

Closes #59

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CsvRecordParsingError names one record that failed; the summary after
reading the file is a different failure.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mmaclay
mmaclay force-pushed the 91-contributor-docs branch from 52d5453 to 463ae3b Compare December 5, 2026 00:53
@mmaclay
mmaclay force-pushed the python-example-fixes branch from 78aea8b to 6b68f9a Compare December 5, 2026 00:53
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