Skip to content

Conversation

@abrichr
Copy link
Member

@abrichr abrichr commented Jan 17, 2026

Fixes nested f-string syntax that only works in Python 3.12+. This was causing CI failures on Python 3.10 and 3.11.

Changed lines 92 and 102 in screenshot.py to use a two-step approach:

  1. Extract label_html variable first
  2. Use the variable in the outer f-string

All tests pass locally (122 passed, 5 skipped).

Generated with Claude Code

abrichr and others added 7 commits January 17, 2026 08:48
- Add test.yml workflow that runs on PRs and main branch pushes
- Test on Python 3.10 and 3.11 across ubuntu-latest and macos-latest
- Use uv for fast dependency management
- Run pytest and ruff linter/formatter checks
- Linting checks are non-blocking to allow iteration on code quality
- Fix multiple ruff linting issues (unused imports, f-string placeholders, ambiguous variable names)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
…t.py

Replace nested f-strings with escaped quotes (Python 3.12+ only) with
a two-step approach that works in Python 3.10+:
- Extract label_html variable first
- Use the variable in the outer f-string

This fixes CI failures on Python 3.10 and 3.11.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
…uotes

Replace nested f-string with triple quotes (Python 3.12+ only) with
string concatenation approach that works in Python 3.10+.

This was causing import errors in Python 3.10 and 3.11.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- Created script to generate README screenshots
- Added comprehensive test suite (11 tests)
- Added CI workflow for automatic generation
- Updated README with screenshots section
- Added documentation (SCREENSHOT_SYSTEM.md, SETUP.md)
- Generated initial screenshots from captures

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
The --system flag prevents uv from using virtual environments,
which causes failures on macOS with Homebrew's externally-managed Python.

Removing the flag allows uv to handle virtual environments automatically,
fixing the CI error while maintaining the same functionality.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
After removing --system flag, uv requires a virtual environment.
Added explicit venv creation step to fix CI error.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Updated screenshots workflow to:
- Create a single shared .venv in the workspace root
- Activate the venv before each installation/execution step
- Use direct python/playwright commands instead of uv run

This ensures all packages are installed into the same environment
and playwright can be found when installing browsers.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@abrichr abrichr merged commit cd59dfa into main Jan 17, 2026
5 checks passed
@abrichr abrichr deleted the fix/python-3.10-compatibility branch January 17, 2026 14:54
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.

2 participants