Skip to content

Conversation

@dosumis
Copy link
Collaborator

@dosumis dosumis commented Dec 14, 2025

add

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds the missing citeproc-py and citeproc-py-styles dependencies and introduces comprehensive test coverage for bibliography rendering functionality with multiple citation styles.

  • Added citeproc-py>=0.9.0 and citeproc-py-styles>=0.1.5 to project dependencies
  • Added 6 new test cases covering vancouver, APA, and chicago styles, multiple citations, empty citations, and locale handling

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 6 comments.

File Description
pyproject.toml Added citeproc-py and citeproc-py-styles as project dependencies with minimum version requirements
uv.lock Updated lock file with new dependency entries including citeproc-py v0.9.0 and citeproc-py-styles v0.1.5
tests/unit/test_rendering.py Added 6 new test cases for bibliography rendering with various styles and edge cases

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


rendered, meta = render_bibliography_to_strings(result, style="vancouver")

assert meta["renderer"] == "citeproc"
Copy link

Copilot AI Dec 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The assertion checks for meta["renderer"] == "citeproc", but the actual value returned by render_bibliography_to_strings is "citeproc-py". This test will fail. The assertion should be changed to check for "citeproc-py" instead of "citeproc".

Copilot uses AI. Check for mistakes.
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot open a new pull request to apply changes based on this feedback

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot open a new pull request to apply changes based on this feedback


rendered, meta = render_bibliography_to_strings(result, style="apa")

assert meta["renderer"] == "citeproc", (
Copy link

Copilot AI Dec 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The assertion checks for meta["renderer"] == "citeproc", but the actual value returned by render_bibliography_to_strings is "citeproc-py". This test will fail. The assertion should be changed to check for "citeproc-py" instead of "citeproc".

Copilot uses AI. Check for mistakes.
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot open a new pull request to apply changes based on this feedback

Copy link
Contributor

Copilot AI commented Dec 14, 2025

@dosumis I've opened a new pull request, #10, to work on those changes. Once the pull request is ready, I'll request review from you.

Copy link
Contributor

Copilot AI commented Dec 14, 2025

@dosumis I've opened a new pull request, #11, to work on those changes. Once the pull request is ready, I'll request review from you.

Copy link
Contributor

Copilot AI commented Dec 14, 2025

@dosumis I've opened a new pull request, #12, to work on those changes. Once the pull request is ready, I'll request review from you.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 4 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@dosumis
Copy link
Collaborator Author

dosumis commented Dec 14, 2025

@copilot can you please revert cyteproc --> cyteproc-py changes. Causing fails

Copy link
Contributor

Copilot AI commented Dec 14, 2025

@dosumis I've opened a new pull request, #13, to work on those changes. Once the pull request is ready, I'll request review from you.

@dosumis dosumis merged commit fd2b892 into main Dec 14, 2025
3 of 4 checks passed
@dosumis dosumis deleted the ID_lookup_fix branch December 14, 2025 16: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