Skip to content

Conversation

@msch-nutrient
Copy link
Collaborator

No description provided.

msch-nutrient and others added 13 commits June 19, 2025 16:54
- Add integration_config.py template for API key configuration
- Create test_live_api.py with basic connectivity tests and fixtures
- Add conftest.py for integration test pytest configuration
- Update .gitignore to exclude integration_config.py

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
Move inline PDF content from test_live_api.py to separate file to improve code readability and fix long line issue. Also fix unused variable warning.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@msch-nutrient msch-nutrient merged commit f2a7c4b into PSPDFKit:main Jun 19, 2025
6 checks passed
msch-nutrient added a commit that referenced this pull request Jun 23, 2025
* feat: add split_pdf method for PDF document splitting

- Add split_pdf method to DirectAPIMixin with flexible page range support
- Support custom page ranges with start/end parameters (0-based indexing)
- Allow saving to multiple output files or returning bytes list
- Include comprehensive integration tests with live API verification
- Update documentation and remove PDF splitting from limitations
- Add implementation patterns to CLAUDE.md for future tool development

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>

* test: improve split_pdf integration tests with PDF validation

- Add assert_is_pdf helper to validate output files are valid PDFs
- Update tests to expect exactly 2 parts from multi-page sample PDF
- Remove conditional checks since sample PDF now guaranteed to have multiple pages
- Add PDF magic number validation for both bytes and file outputs

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>

* fix: address linting issues in integration tests

- Fix trailing whitespace and line length issues
- Improve docstring formatting in assert_is_pdf helper

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>

* fix: resolve mypy type checking errors in integration tests

- Add proper type annotations to assert_is_pdf function
- Use !r format specifier for bytes to fix str-bytes-safe warning
- Fix import ordering to satisfy ruff

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>

* fix: format code with ruff formatter

- Apply ruff formatting to resolve CI format check failures

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>
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