Repository navigation
[TEST] Add pyOpenMS docstring format validation tests - #8674
Conversation
Add comprehensive test suite for validating pyOpenMS documentation: - Checks wrap-doc annotations in .pxd files for RST compatibility - Validates code blocks have language specifiers - Detects common typos (warp-doc, wrapdoc, etc.) - Checks for tabs vs spaces and balanced backticks - Tests run without requiring built pyopenms Also fixes typo: warp-doc -> wrap-doc in EnzymaticDigestion.pxd Co-Authored-By: Claude Opus 4.5 <[email protected]>
📝 WalkthroughWalkthroughAdds a comprehensive docstring/RST/wrap-doc validation test module for pyOpenMS and applies numerous non-functional formatting and wrap-doc comment edits across many Changes
Sequence Diagram(s)(omitted — changes are tests and documentation/wrap-doc formatting; no new multi-component runtime control flow introduced) Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧹 Recent nitpick comments
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (4)src/pyOpenMS/tests/**/*.py📄 CodeRabbit inference engine (.github/copilot-instructions.md)
Files:
src/pyOpenMS/**/*.py📄 CodeRabbit inference engine (CLAUDE.md)
Files:
**/*.py📄 CodeRabbit inference engine (AGENTS.md)
Files:
**📄 CodeRabbit inference engine (AGENTS.md)
Files:
🧠 Learnings (12)📓 Common learnings📚 Learning: 2025-08-05T12:43:11.681ZApplied to files:
📚 Learning: 2026-01-14T18:51:46.097ZApplied to files:
📚 Learning: 2025-08-05T12:43:11.681ZApplied to files:
📚 Learning: 2026-01-15T17:33:37.767ZApplied to files:
📚 Learning: 2025-08-05T12:43:11.681ZApplied to files:
📚 Learning: 2026-01-14T18:51:46.097ZApplied to files:
📚 Learning: 2026-01-15T17:33:37.767ZApplied to files:
📚 Learning: 2026-01-15T17:33:37.767ZApplied to files:
📚 Learning: 2026-01-14T18:51:46.097ZApplied to files:
📚 Learning: 2026-01-15T17:33:37.767ZApplied to files:
📚 Learning: 2026-01-04T21:35:37.785ZApplied to files:
🪛 GitHub Check: CodeFactorsrc/pyOpenMS/tests/unittests/test_docstring_format.py[notice] 441-558: src/pyOpenMS/tests/unittests/test_docstring_format.py#L441-L558 🪛 Ruff (0.14.11)src/pyOpenMS/tests/unittests/test_docstring_format.py259-259: Do not catch blind exception: (BLE001) 1371-1371: Use explicit conversion flag Replace with conversion flag (RUF010) ⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (10)
✏️ Tip: You can disable this entire section by setting Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
- Remove unused import (inspect) - Remove unused function (check_wrap_doc_in_class_context) - Add explicit encoding='utf-8' to all file open() calls Co-Authored-By: Claude Opus 4.5 <[email protected]>
|
@jpfeuffer maybe a practical approach to catching main errors in doc and docstring? |
|
Yes. I think it might be hard to check it really correctly but if it helps to catch the most obvious ones, fine with me |
|
================================== FAILURES =================================== tests/unittests/test_dataframe_columns.py::TestBackwardsCompatibleFunctions::test_update_scores_from_df_wrapper tests/unittests/test_dataframe_columns.py::TestBackwardsCompatibleFunctions::test_update_scores_from_df_wrapper tests/unittests/test_docstring_format.py::test_docutils_availability -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html |
The test_pxd_directory_exists test was failing in CI because it runs from the build directory where the relative path to source files doesn't work. Changed to skip (consistent with other tests in the class) instead of fail. Co-Authored-By: Claude Opus 4.5 <[email protected]>
|
not sure if they are copied to the build directory. |
|
You can actually just check the generated files from autowrap. Then you dont even need to check for wrap-doc. You just need to check if there are docstrings and if they follow rst. |
- Add functions to find and parse autowrap-generated .pyx files - Add TestGeneratedDocstrings class for CI validation - Validate all class and method docstrings for RST compliance - Add unit tests for the new extraction functions - Fix linting issues (stacklevel, unused variables, f-strings) - Fix RST issues in DecoyGenerator.pxd (@PARAM -> inline code) - Fix RST issues in PeakWidthEstimator.pxd (remove erroneous text) This addresses the CI failure where pxd source files weren't available in the build directory. Generated files ARE available and represent what users actually see. Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Fix all issues with AI agents
In `@src/pyOpenMS/tests/unittests/test_docstring_format.py`:
- Around line 404-425: The wrap-doc parser currently accepts lines starting with
"# " (single space) which is too permissive; update the loop that builds
doc_lines (the while loop using variables stripped, doc_lines, doc_start and
next_line) to only accept continuation lines that are exactly '#' (blank line)
or that match a hash followed by two spaces. Replace the existing conditions and
regex (currently allowing r'\s*#\s?(.*)') with a strict check like
next_line.lstrip().startswith('# ') || next_line.strip() == '#' and use a regex
r'\s*#\s{2}(.*)' (or equivalent) to extract content; remove the elif branch that
permits '# ' single-space continuations. Apply the same change to the other
occurrences handling wrap-doc at the later blocks referenced.
- Around line 934-939: Replace the "if len(empty_docs) > 50: assert False,
(...)" pattern with a direct boolean assertion using the empty_docs variable:
change it to "assert len(empty_docs) <= 50, (f'...')" (or equivalently "assert
not (len(empty_docs) > 50), (f'...')") so the test keeps the same message while
removing the assert False B011 pattern; update the assertion in the test that
checks empty_docs accordingly.
🧹 Nitpick comments (2)
src/pyOpenMS/tests/unittests/test_docstring_format.py (2)
356-367: Use or drop the unusednameparameter invalidate_docstring.
This triggers lint (ARG001); either remove it or incorporate it into error messages.♻️ Suggested tweak
- if not isinstance(docstring, str): - return False, [f"Docstring is not a string: {type(docstring)}"] + if not isinstance(docstring, str): + prefix = f"{name}: " if name else "" + return False, [f"{prefix}Docstring is not a string: {type(docstring)}"]
843-914: Rename unused loop variables to satisfy lint.
Several loops bind variables that aren’t used; renaming to_docstring,_doc_type,_line_numkeeps intent clear and avoids B007 warnings.♻️ Suggested cleanup
- for name, doc_type, docstring, _ in docstrings: + for name, doc_type, _docstring, _ in docstrings: - for name, doc_type, docstring, line_num in docstrings: + for name, _doc_type, docstring, line_num in docstrings: - for name, doc_type, docstring, line_num in docstrings: + for name, _doc_type, docstring, line_num in docstrings: - for name, doc_type, docstring, line_num in docstrings: - assert isinstance(docstring, str), ( + for name, _doc_type, docstring, _line_num in docstrings: + assert isinstance(docstring, str), (
📜 Review details
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
src/pyOpenMS/pxds/DecoyGenerator.pxdsrc/pyOpenMS/pxds/PeakWidthEstimator.pxdsrc/pyOpenMS/tests/unittests/test_docstring_format.py
✅ Files skipped from review due to trivial changes (1)
- src/pyOpenMS/pxds/PeakWidthEstimator.pxd
🧰 Additional context used
📓 Path-based instructions (7)
src/pyOpenMS/pxds/**/*.pxd
📄 CodeRabbit inference engine (CLAUDE.md)
src/pyOpenMS/pxds/**/*.pxd: Do not add Python-only method declarations to.pxdfiles - they attempt to wrap non-existent C++ methods
Ensure autowrap annotation format like# wrap-doc:is properly indented inside the class block with strict whitespace parsing
src/pyOpenMS/pxds/**/*.pxd: Declare default and copy constructors in.pxdfiles; usecimportnot Pythonimportfor Cython imports
Use exactly#(hash + 2 spaces) for allwrap-doc:documentation continuation lines; deviation causes parsing failure in autowrap
Use snake_case for Python-facing method and variable names in.pxdfiles and DataFrame columns
Files:
src/pyOpenMS/pxds/DecoyGenerator.pxd
src/pyOpenMS/**/*.{pyx,pxd}
📄 CodeRabbit inference engine (AGENTS.md)
Always declare default and copy constructors in
.pxdfiles; mark appropriate methods withexcept +for exception handling andnogilfor thread safety when applicable
Files:
src/pyOpenMS/pxds/DecoyGenerator.pxd
**/*.{cpp,h,hpp,pyx,pxd}
📄 CodeRabbit inference engine (AGENTS.md)
Add comments in plain English describing the next few lines; maintain at least ~5% of code as comments
Files:
src/pyOpenMS/pxds/DecoyGenerator.pxd
**
📄 CodeRabbit inference engine (AGENTS.md)
**: Do not commit secrets, credentials, or.envfiles to the repository
Never build the project unless explicitly asked, as it is extremely resource-intensive
Do not modify the contrib tree or third-party dependencies without explicit approval from the maintainers
Always run and extend tests when making code changes; do not skip tests
Follow Gitflow workflow: develop features on forks, open PRs againstdevelopbranch, use commit message format[TAG1,TAG2] summarywith tags like NOP, DOC, COMMENT, API, INTERNAL, FEATURE, FIX, TEST, FORMAT, PARAM, IO, LOG, GUI, RESOURCE, BUILD
UpdateAUTHORSandCHANGELOGfiles when making significant contributions; addFixes#Nor `Closes `#Nto commit messages for issue tracking
When changing C++ APIs, update corresponding.pxdfiles and pyOpenMS addons; when adding TOPP tools, register insrc/topp/executables.cmakeandToolHandler.cpp; when changing file formats, updateFileHandler::NamesOfTypes[]and schemas
Files:
src/pyOpenMS/pxds/DecoyGenerator.pxdsrc/pyOpenMS/tests/unittests/test_docstring_format.py
src/pyOpenMS/tests/**/*.py
📄 CodeRabbit inference engine (.github/copilot-instructions.md)
Write pyOpenMS tests for new Python bindings
Files:
src/pyOpenMS/tests/unittests/test_docstring_format.py
src/pyOpenMS/**/*.py
📄 CodeRabbit inference engine (CLAUDE.md)
src/pyOpenMS/**/*.py: UsePeptideIdentificationListtype (not Python list) when callingsetPeptideIdentifications()in pyOpenMS
Only use valid amino acid letters (A-Z except B, J, O, U, X, Z) withAASequence.fromString()in pyOpenMS - numbers and special characters will fail
Files:
src/pyOpenMS/tests/unittests/test_docstring_format.py
**/*.py
📄 CodeRabbit inference engine (AGENTS.md)
**/*.py: Use 4-space indentation for Python and Cython files (PEP 8); use Unix line endings (LF)
Use snake_case for Python module names, function names, and variable names per PEP 8
Files:
src/pyOpenMS/tests/unittests/test_docstring_format.py
🧠 Learnings (9)
📓 Common learnings
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-01-14T18:51:46.097Z
Learning: Applies to src/pyOpenMS/pxds/**/*.pxd : Ensure autowrap annotation format like `# wrap-doc:` is properly indented inside the class block with strict whitespace parsing
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/pyOpenMS/tests/**/*.py : Write pyOpenMS tests for new Python bindings
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/pyOpenMS/**/*.h : Add Doxygen comments for new public methods and classes in pyOpenMS bindings
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-15T17:33:37.767Z
Learning: Applies to src/pyOpenMS/pxds/**/*.pxd : Use exactly `# ` (hash + 2 spaces) for all `wrap-doc:` documentation continuation lines; deviation causes parsing failure in autowrap
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-01-14T18:51:46.097Z
Learning: Applies to src/pyOpenMS/pxds/**/*.pxd : Do not add Python-only method declarations to `.pxd` files - they attempt to wrap non-existent C++ methods
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-01-14T18:51:46.097Z
Learning: Applies to src/pyOpenMS/addons/**/*.pyx : Keep pyOpenMS addons minimal - only add methods that cannot be auto-generated (like `__repr__`, `__str__`), not redundant aliases
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/openms/include/OpenMS/**/*.h : Add Doxygen comments for new public methods and classes
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/tests/class_tests/openms/**/*.cpp : Write unit tests for new functionality
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-15T17:33:37.767Z
Learning: Applies to src/pyOpenMS/addons/**/*.pyx : Do not define new `cdef class` in addon files; only define Python-only methods with proper indentation; keep addons minimal
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-15T17:33:37.767Z
Learning: Applies to src/pyOpenMS/**/*.{pyx,pxd} : Always declare default and copy constructors in `.pxd` files; mark appropriate methods with `except +` for exception handling and `nogil` for thread safety when applicable
📚 Learning: 2026-01-14T18:51:46.097Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-01-14T18:51:46.097Z
Learning: Applies to src/pyOpenMS/pxds/**/*.pxd : Ensure autowrap annotation format like `# wrap-doc:` is properly indented inside the class block with strict whitespace parsing
Applied to files:
src/pyOpenMS/pxds/DecoyGenerator.pxdsrc/pyOpenMS/tests/unittests/test_docstring_format.py
📚 Learning: 2026-01-15T17:33:37.767Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-15T17:33:37.767Z
Learning: Applies to src/pyOpenMS/pxds/**/*.pxd : Use exactly `# ` (hash + 2 spaces) for all `wrap-doc:` documentation continuation lines; deviation causes parsing failure in autowrap
Applied to files:
src/pyOpenMS/pxds/DecoyGenerator.pxdsrc/pyOpenMS/tests/unittests/test_docstring_format.py
📚 Learning: 2026-01-14T18:51:46.097Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-01-14T18:51:46.097Z
Learning: Applies to src/pyOpenMS/pxds/**/*.pxd : Do not add Python-only method declarations to `.pxd` files - they attempt to wrap non-existent C++ methods
Applied to files:
src/pyOpenMS/pxds/DecoyGenerator.pxdsrc/pyOpenMS/tests/unittests/test_docstring_format.py
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/pyOpenMS/**/*.h : Add Doxygen comments for new public methods and classes in pyOpenMS bindings
Applied to files:
src/pyOpenMS/pxds/DecoyGenerator.pxdsrc/pyOpenMS/tests/unittests/test_docstring_format.py
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/pyOpenMS/tests/**/*.py : Write pyOpenMS tests for new Python bindings
Applied to files:
src/pyOpenMS/tests/unittests/test_docstring_format.py
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/tests/class_tests/openms/**/*.cpp : Write unit tests for new functionality
Applied to files:
src/pyOpenMS/tests/unittests/test_docstring_format.py
📚 Learning: 2026-01-15T17:33:37.767Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-15T17:33:37.767Z
Learning: Applies to src/pyOpenMS/**/*.{pyx,pxd} : Always declare default and copy constructors in `.pxd` files; mark appropriate methods with `except +` for exception handling and `nogil` for thread safety when applicable
Applied to files:
src/pyOpenMS/tests/unittests/test_docstring_format.py
📚 Learning: 2026-01-04T21:35:37.785Z
Learnt from: timosachsenberg
Repo: OpenMS/OpenMS PR: 8588
File: src/pyOpenMS/tests/unittests/test_TargetedQuantitation.py:1-456
Timestamp: 2026-01-04T21:35:37.785Z
Learning: For Python files in the repository, follow PEP 8: use 4-space indentation, avoid tabs, and ensure Unix LF line endings. The 2-space indentation and Unix line endings guideline applies to C/Cython in their respective languages; Python files should adhere to Python style (PEP 8) regardless of other language rules.
Applied to files:
src/pyOpenMS/tests/unittests/test_docstring_format.py
🪛 Ruff (0.14.11)
src/pyOpenMS/tests/unittests/test_docstring_format.py
257-257: Do not catch blind exception: Exception
(BLE001)
356-356: Unused function argument: name
(ARG001)
438-438: Unused function argument: filename
(ARG001)
846-846: Loop control variable docstring not used within loop body
Rename unused docstring to _docstring
(B007)
866-866: Loop control variable doc_type not used within loop body
Rename unused doc_type to _doc_type
(B007)
896-896: Loop control variable doc_type not used within loop body
Rename unused doc_type to _doc_type
(B007)
911-911: Loop control variable doc_type not used within loop body
Rename unused doc_type to _doc_type
(B007)
911-911: Loop control variable line_num not used within loop body
Rename unused line_num to _line_num
(B007)
936-936: Do not assert False (python -O removes these calls), raise AssertionError()
Replace assert False
(B011)
1329-1329: Use explicit conversion flag
Replace with conversion flag
(RUF010)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (11)
- GitHub Check: build-wheels-linux-arm
- GitHub Check: build-wheels-windows
- GitHub Check: build-wheels-linux
- GitHub Check: build-wheels-macos
- GitHub Check: build-and-test (ubuntu-24.04-arm, g++, 13)
- GitHub Check: build-and-test (ubuntu-24.04, clang++, 17)
- GitHub Check: build-and-test (windows-2025, cl.exe, 14.44)
- GitHub Check: build-and-test (macos-14, xcode, 15.4)
- GitHub Check: build-and-test (ubuntu-24.04, g++, 13)
- GitHub Check: claude-review
- GitHub Check: cppcheck-test
🔇 Additional comments (2)
src/pyOpenMS/pxds/DecoyGenerator.pxd (1)
20-20: Docstring polish looks good.
The revised wording and inline code formatting improve clarity without changing semantics.src/pyOpenMS/tests/unittests/test_docstring_format.py (1)
50-218: Helper utilities look solid.
The path discovery and .pyx docstring extraction helpers are clear and test-friendly.
✏️ Tip: You can disable this entire section by setting review_details to false in your review settings.
- Add explanatory comment to empty except block - Replace assert False with direct boolean assertion - Use doc_type and line_num in error messages for better debugging - Enforce strict '# ' (hash + two spaces) for wrap-doc continuation - Add test_single_space_after_hash to verify strict validation - Make test_wrap_doc_structure_valid fail instead of warn - Make test_wrap_doc_continuation_format check all pxd files - Use name parameter in validate_docstring error messages - Mark intentionally unused _filename parameter Note: Tests will fail until 42 pxd files are fixed to use proper wrap-doc format (hash + two spaces for continuation lines). Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
Changes to pxd files: - Fix wrap-doc continuation lines to use '# ' (hash + two spaces) - Fix indentation in multi-line wrap-doc blocks - Convert commented-out code from '# ' to '##' format to avoid confusion with wrap-doc continuations Changes to test_docstring_format.py: - Improve wrap-doc block detection to end block when: - '##' comment is encountered (commented-out code) - Indentation drops by more than 4 spaces (likely separate comment) - Still flag slight indentation inconsistencies (1-4 spaces) - Still flag '#text' (no space) and '# text' (single space) as errors Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Fix all issues with AI agents
In `@src/pyOpenMS/pxds/MassDecomposer.pxd`:
- Around line 20-21: The commented-out method declarations after the wrap-doc
block for exist() (the lines referencing getDecomposition and
getAllDecompositions) can be misparsed as wrap-doc content; update those comment
lines in MassDecomposer.pxd to clearly mark them as non-documentation by
prefixing them with "##" or inserting a blank line/explicit terminator after
exist()'s wrap-doc block so the autowrap parser stops treating them as
documentation for exist() — locate the commented lines mentioning
getDecomposition and getAllDecompositions and change their leading comment
marker accordingly.
In `@src/pyOpenMS/pxds/ProtXMLFile.pxd`:
- Around line 47-48: The comment "# Not implemented" is ambiguously placed and
may be parsed as wrap-doc for load(); move or reformat it so it clearly belongs
to store(): either relocate the comment to immediately after the declaration of
store(String filename, ProteinIdentification & protein_ids,
PeptideIdentification & peptide_ids, String document_id) except + nogil, or
change its prefix to "##" (or another clear non-wrap-doc marker) so it is not
treated as part of load()'s wrap-doc; ensure the comment sits at the same
indentation level as the store() declaration and refers to store() to avoid
parser misassociation.
🧹 Nitpick comments (2)
src/pyOpenMS/tests/unittests/test_docstring_format.py (2)
493-517: Remove unused variableis_valid_continuation.The variable
is_valid_continuationis assigned but never used. It appears to be vestigial from refactoring—onlyis_single_spaceandis_no_spaceare used for the error check.🧹 Suggested cleanup
- # Check for valid continuation formats - is_valid_continuation = ( - next_stripped == '#' or - next_stripped.startswith('# ') or - next_stripped.startswith('# wrap-') - ) - is_single_space = (
1354-1359: Minor: Use f-string conversion flag forrepr().Per Ruff RUF010, you can use the
!rconversion flag instead of callingrepr()directly.🧹 Suggested cleanup
- assert not line.startswith(' '), ( - f"Docstring not properly dedented: {repr(doc)}" - ) + assert not line.startswith(' '), ( + f"Docstring not properly dedented: {doc!r}" + )
📜 Review details
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (43)
src/pyOpenMS/pxds/AbsoluteQuantitation.pxdsrc/pyOpenMS/pxds/ArrowExport.pxdsrc/pyOpenMS/pxds/ChromatogramExtractorAlgorithm.pxdsrc/pyOpenMS/pxds/DeconvolvedSpectrum.pxdsrc/pyOpenMS/pxds/FASTAFile.pxdsrc/pyOpenMS/pxds/FIAMSDataProcessor.pxdsrc/pyOpenMS/pxds/FLASHDeconvAlgorithm.pxdsrc/pyOpenMS/pxds/FLASHHelperClasses.pxdsrc/pyOpenMS/pxds/IDMapper.pxdsrc/pyOpenMS/pxds/IntegerMassDecomposer.pxdsrc/pyOpenMS/pxds/IsotopeDistribution.pxdsrc/pyOpenMS/pxds/IsotopeLabelingMDVs.pxdsrc/pyOpenMS/pxds/IsotopeModel.pxdsrc/pyOpenMS/pxds/ItraqConstants.pxdsrc/pyOpenMS/pxds/KDTreeFeatureNode.pxdsrc/pyOpenMS/pxds/LogConfigHandler.pxdsrc/pyOpenMS/pxds/MRMBatchFeatureSelector.pxdsrc/pyOpenMS/pxds/MRMFeatureFinderScoring.pxdsrc/pyOpenMS/pxds/MRMFeatureQCFile.pxdsrc/pyOpenMS/pxds/MRMIonSeries.pxdsrc/pyOpenMS/pxds/MapAlignmentAlgorithmKD.pxdsrc/pyOpenMS/pxds/MascotXMLFile.pxdsrc/pyOpenMS/pxds/MassDecomposer.pxdsrc/pyOpenMS/pxds/MasstraceCorrelator.pxdsrc/pyOpenMS/pxds/Math.pxdsrc/pyOpenMS/pxds/MetaboTargetedAssay.pxdsrc/pyOpenMS/pxds/OnDiscMSExperiment.pxdsrc/pyOpenMS/pxds/OpenSwathHelper.pxdsrc/pyOpenMS/pxds/OpenSwathScoring.pxdsrc/pyOpenMS/pxds/PScore.pxdsrc/pyOpenMS/pxds/PeakGroup.pxdsrc/pyOpenMS/pxds/PeakWidthEstimator.pxdsrc/pyOpenMS/pxds/PeptideProteinResolution.pxdsrc/pyOpenMS/pxds/ProtXMLFile.pxdsrc/pyOpenMS/pxds/RNaseDigestion.pxdsrc/pyOpenMS/pxds/SimpleTSGXLMS.pxdsrc/pyOpenMS/pxds/SpectraSTSimilarityScore.pxdsrc/pyOpenMS/pxds/SpectralDeconvolution.pxdsrc/pyOpenMS/pxds/SpectrumLookup.pxdsrc/pyOpenMS/pxds/SpectrumMetaDataLookup.pxdsrc/pyOpenMS/pxds/TargetedSpectraExtractor.pxdsrc/pyOpenMS/pxds/TransitionPQPFile.pxdsrc/pyOpenMS/tests/unittests/test_docstring_format.py
✅ Files skipped from review due to trivial changes (31)
- src/pyOpenMS/pxds/ItraqConstants.pxd
- src/pyOpenMS/pxds/MRMBatchFeatureSelector.pxd
- src/pyOpenMS/pxds/SpectraSTSimilarityScore.pxd
- src/pyOpenMS/pxds/MRMFeatureFinderScoring.pxd
- src/pyOpenMS/pxds/ArrowExport.pxd
- src/pyOpenMS/pxds/FASTAFile.pxd
- src/pyOpenMS/pxds/MascotXMLFile.pxd
- src/pyOpenMS/pxds/PScore.pxd
- src/pyOpenMS/pxds/IsotopeModel.pxd
- src/pyOpenMS/pxds/SpectrumMetaDataLookup.pxd
- src/pyOpenMS/pxds/DeconvolvedSpectrum.pxd
- src/pyOpenMS/pxds/AbsoluteQuantitation.pxd
- src/pyOpenMS/pxds/MRMIonSeries.pxd
- src/pyOpenMS/pxds/ChromatogramExtractorAlgorithm.pxd
- src/pyOpenMS/pxds/RNaseDigestion.pxd
- src/pyOpenMS/pxds/IntegerMassDecomposer.pxd
- src/pyOpenMS/pxds/TransitionPQPFile.pxd
- src/pyOpenMS/pxds/KDTreeFeatureNode.pxd
- src/pyOpenMS/pxds/OnDiscMSExperiment.pxd
- src/pyOpenMS/pxds/SpectralDeconvolution.pxd
- src/pyOpenMS/pxds/IsotopeLabelingMDVs.pxd
- src/pyOpenMS/pxds/Math.pxd
- src/pyOpenMS/pxds/FLASHDeconvAlgorithm.pxd
- src/pyOpenMS/pxds/OpenSwathScoring.pxd
- src/pyOpenMS/pxds/MRMFeatureQCFile.pxd
- src/pyOpenMS/pxds/TargetedSpectraExtractor.pxd
- src/pyOpenMS/pxds/IsotopeDistribution.pxd
- src/pyOpenMS/pxds/FIAMSDataProcessor.pxd
- src/pyOpenMS/pxds/MapAlignmentAlgorithmKD.pxd
- src/pyOpenMS/pxds/MasstraceCorrelator.pxd
- src/pyOpenMS/pxds/OpenSwathHelper.pxd
🚧 Files skipped from review as they are similar to previous changes (1)
- src/pyOpenMS/pxds/PeakWidthEstimator.pxd
🧰 Additional context used
📓 Path-based instructions (7)
src/pyOpenMS/pxds/**/*.pxd
📄 CodeRabbit inference engine (CLAUDE.md)
src/pyOpenMS/pxds/**/*.pxd: Do not add Python-only method declarations to.pxdfiles - they attempt to wrap non-existent C++ methods
Ensure autowrap annotation format like# wrap-doc:is properly indented inside the class block with strict whitespace parsing
src/pyOpenMS/pxds/**/*.pxd: Declare default and copy constructors in.pxdfiles; usecimportnot Pythonimportfor Cython imports
Use exactly#(hash + 2 spaces) for allwrap-doc:documentation continuation lines; deviation causes parsing failure in autowrap
Use snake_case for Python-facing method and variable names in.pxdfiles and DataFrame columns
Files:
src/pyOpenMS/pxds/SpectrumLookup.pxdsrc/pyOpenMS/pxds/MassDecomposer.pxdsrc/pyOpenMS/pxds/MetaboTargetedAssay.pxdsrc/pyOpenMS/pxds/IDMapper.pxdsrc/pyOpenMS/pxds/PeakGroup.pxdsrc/pyOpenMS/pxds/LogConfigHandler.pxdsrc/pyOpenMS/pxds/FLASHHelperClasses.pxdsrc/pyOpenMS/pxds/ProtXMLFile.pxdsrc/pyOpenMS/pxds/PeptideProteinResolution.pxdsrc/pyOpenMS/pxds/SimpleTSGXLMS.pxd
src/pyOpenMS/**/*.{pyx,pxd}
📄 CodeRabbit inference engine (AGENTS.md)
Always declare default and copy constructors in
.pxdfiles; mark appropriate methods withexcept +for exception handling andnogilfor thread safety when applicable
Files:
src/pyOpenMS/pxds/SpectrumLookup.pxdsrc/pyOpenMS/pxds/MassDecomposer.pxdsrc/pyOpenMS/pxds/MetaboTargetedAssay.pxdsrc/pyOpenMS/pxds/IDMapper.pxdsrc/pyOpenMS/pxds/PeakGroup.pxdsrc/pyOpenMS/pxds/LogConfigHandler.pxdsrc/pyOpenMS/pxds/FLASHHelperClasses.pxdsrc/pyOpenMS/pxds/ProtXMLFile.pxdsrc/pyOpenMS/pxds/PeptideProteinResolution.pxdsrc/pyOpenMS/pxds/SimpleTSGXLMS.pxd
**/*.{cpp,h,hpp,pyx,pxd}
📄 CodeRabbit inference engine (AGENTS.md)
Add comments in plain English describing the next few lines; maintain at least ~5% of code as comments
Files:
src/pyOpenMS/pxds/SpectrumLookup.pxdsrc/pyOpenMS/pxds/MassDecomposer.pxdsrc/pyOpenMS/pxds/MetaboTargetedAssay.pxdsrc/pyOpenMS/pxds/IDMapper.pxdsrc/pyOpenMS/pxds/PeakGroup.pxdsrc/pyOpenMS/pxds/LogConfigHandler.pxdsrc/pyOpenMS/pxds/FLASHHelperClasses.pxdsrc/pyOpenMS/pxds/ProtXMLFile.pxdsrc/pyOpenMS/pxds/PeptideProteinResolution.pxdsrc/pyOpenMS/pxds/SimpleTSGXLMS.pxd
**
📄 CodeRabbit inference engine (AGENTS.md)
**: Do not commit secrets, credentials, or.envfiles to the repository
Never build the project unless explicitly asked, as it is extremely resource-intensive
Do not modify the contrib tree or third-party dependencies without explicit approval from the maintainers
Always run and extend tests when making code changes; do not skip tests
Follow Gitflow workflow: develop features on forks, open PRs againstdevelopbranch, use commit message format[TAG1,TAG2] summarywith tags like NOP, DOC, COMMENT, API, INTERNAL, FEATURE, FIX, TEST, FORMAT, PARAM, IO, LOG, GUI, RESOURCE, BUILD
UpdateAUTHORSandCHANGELOGfiles when making significant contributions; addFixes#Nor `Closes `#Nto commit messages for issue tracking
When changing C++ APIs, update corresponding.pxdfiles and pyOpenMS addons; when adding TOPP tools, register insrc/topp/executables.cmakeandToolHandler.cpp; when changing file formats, updateFileHandler::NamesOfTypes[]and schemas
Files:
src/pyOpenMS/pxds/SpectrumLookup.pxdsrc/pyOpenMS/pxds/MassDecomposer.pxdsrc/pyOpenMS/pxds/MetaboTargetedAssay.pxdsrc/pyOpenMS/pxds/IDMapper.pxdsrc/pyOpenMS/pxds/PeakGroup.pxdsrc/pyOpenMS/pxds/LogConfigHandler.pxdsrc/pyOpenMS/pxds/FLASHHelperClasses.pxdsrc/pyOpenMS/pxds/ProtXMLFile.pxdsrc/pyOpenMS/pxds/PeptideProteinResolution.pxdsrc/pyOpenMS/tests/unittests/test_docstring_format.pysrc/pyOpenMS/pxds/SimpleTSGXLMS.pxd
src/pyOpenMS/tests/**/*.py
📄 CodeRabbit inference engine (.github/copilot-instructions.md)
Write pyOpenMS tests for new Python bindings
Files:
src/pyOpenMS/tests/unittests/test_docstring_format.py
src/pyOpenMS/**/*.py
📄 CodeRabbit inference engine (CLAUDE.md)
src/pyOpenMS/**/*.py: UsePeptideIdentificationListtype (not Python list) when callingsetPeptideIdentifications()in pyOpenMS
Only use valid amino acid letters (A-Z except B, J, O, U, X, Z) withAASequence.fromString()in pyOpenMS - numbers and special characters will fail
Files:
src/pyOpenMS/tests/unittests/test_docstring_format.py
**/*.py
📄 CodeRabbit inference engine (AGENTS.md)
**/*.py: Use 4-space indentation for Python and Cython files (PEP 8); use Unix line endings (LF)
Use snake_case for Python module names, function names, and variable names per PEP 8
Files:
src/pyOpenMS/tests/unittests/test_docstring_format.py
🧠 Learnings (23)
📓 Common learnings
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-01-14T18:51:46.097Z
Learning: Applies to src/pyOpenMS/pxds/**/*.pxd : Ensure autowrap annotation format like `# wrap-doc:` is properly indented inside the class block with strict whitespace parsing
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-15T17:33:37.767Z
Learning: Applies to src/pyOpenMS/pxds/**/*.pxd : Use exactly `# ` (hash + 2 spaces) for all `wrap-doc:` documentation continuation lines; deviation causes parsing failure in autowrap
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/pyOpenMS/**/*.h : Add Doxygen comments for new public methods and classes in pyOpenMS bindings
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/pyOpenMS/tests/**/*.py : Write pyOpenMS tests for new Python bindings
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-01-14T18:51:46.097Z
Learning: Applies to src/pyOpenMS/pxds/**/*.pxd : Do not add Python-only method declarations to `.pxd` files - they attempt to wrap non-existent C++ methods
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-01-14T18:51:46.097Z
Learning: Applies to src/pyOpenMS/addons/**/*.pyx : Keep pyOpenMS addons minimal - only add methods that cannot be auto-generated (like `__repr__`, `__str__`), not redundant aliases
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/openms/include/OpenMS/**/*.h : Add Doxygen comments for new public methods and classes
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-15T17:33:37.767Z
Learning: Applies to src/pyOpenMS/**/*.{pyx,pxd} : Always declare default and copy constructors in `.pxd` files; mark appropriate methods with `except +` for exception handling and `nogil` for thread safety when applicable
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-15T17:33:37.767Z
Learning: Applies to src/pyOpenMS/addons/**/*.pyx : Do not define new `cdef class` in addon files; only define Python-only methods with proper indentation; keep addons minimal
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-15T17:33:37.767Z
Learning: Applies to ** : When changing C++ APIs, update corresponding `.pxd` files and pyOpenMS addons; when adding TOPP tools, register in `src/topp/executables.cmake` and `ToolHandler.cpp`; when changing file formats, update `FileHandler::NamesOfTypes[]` and schemas
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/pyOpenMS/**/*.h : Add Doxygen comments for new public methods and classes in pyOpenMS bindings
Applied to files:
src/pyOpenMS/pxds/SpectrumLookup.pxdsrc/pyOpenMS/pxds/MassDecomposer.pxdsrc/pyOpenMS/pxds/MetaboTargetedAssay.pxdsrc/pyOpenMS/pxds/IDMapper.pxdsrc/pyOpenMS/pxds/PeakGroup.pxdsrc/pyOpenMS/pxds/LogConfigHandler.pxdsrc/pyOpenMS/pxds/FLASHHelperClasses.pxdsrc/pyOpenMS/pxds/ProtXMLFile.pxdsrc/pyOpenMS/pxds/PeptideProteinResolution.pxdsrc/pyOpenMS/tests/unittests/test_docstring_format.pysrc/pyOpenMS/pxds/SimpleTSGXLMS.pxd
📚 Learning: 2026-01-14T18:51:46.097Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-01-14T18:51:46.097Z
Learning: Applies to src/pyOpenMS/pxds/**/*.pxd : Ensure autowrap annotation format like `# wrap-doc:` is properly indented inside the class block with strict whitespace parsing
Applied to files:
src/pyOpenMS/pxds/SpectrumLookup.pxdsrc/pyOpenMS/pxds/MassDecomposer.pxdsrc/pyOpenMS/pxds/MetaboTargetedAssay.pxdsrc/pyOpenMS/pxds/IDMapper.pxdsrc/pyOpenMS/pxds/PeakGroup.pxdsrc/pyOpenMS/pxds/LogConfigHandler.pxdsrc/pyOpenMS/pxds/FLASHHelperClasses.pxdsrc/pyOpenMS/pxds/ProtXMLFile.pxdsrc/pyOpenMS/pxds/PeptideProteinResolution.pxdsrc/pyOpenMS/tests/unittests/test_docstring_format.pysrc/pyOpenMS/pxds/SimpleTSGXLMS.pxd
📚 Learning: 2026-01-15T17:33:37.767Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-15T17:33:37.767Z
Learning: Applies to src/pyOpenMS/pxds/**/*.pxd : Declare default and copy constructors in `.pxd` files; use `cimport` not Python `import` for Cython imports
Applied to files:
src/pyOpenMS/pxds/SpectrumLookup.pxdsrc/pyOpenMS/pxds/MassDecomposer.pxdsrc/pyOpenMS/pxds/MetaboTargetedAssay.pxdsrc/pyOpenMS/pxds/PeakGroup.pxdsrc/pyOpenMS/pxds/FLASHHelperClasses.pxdsrc/pyOpenMS/pxds/ProtXMLFile.pxdsrc/pyOpenMS/pxds/PeptideProteinResolution.pxdsrc/pyOpenMS/pxds/SimpleTSGXLMS.pxd
📚 Learning: 2026-01-14T18:51:46.097Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-01-14T18:51:46.097Z
Learning: Applies to src/pyOpenMS/pxds/**/*.pxd : Do not add Python-only method declarations to `.pxd` files - they attempt to wrap non-existent C++ methods
Applied to files:
src/pyOpenMS/pxds/SpectrumLookup.pxdsrc/pyOpenMS/pxds/MassDecomposer.pxdsrc/pyOpenMS/pxds/MetaboTargetedAssay.pxdsrc/pyOpenMS/pxds/IDMapper.pxdsrc/pyOpenMS/pxds/PeakGroup.pxdsrc/pyOpenMS/pxds/LogConfigHandler.pxdsrc/pyOpenMS/pxds/FLASHHelperClasses.pxdsrc/pyOpenMS/pxds/ProtXMLFile.pxdsrc/pyOpenMS/pxds/PeptideProteinResolution.pxdsrc/pyOpenMS/tests/unittests/test_docstring_format.pysrc/pyOpenMS/pxds/SimpleTSGXLMS.pxd
📚 Learning: 2026-01-15T17:33:37.767Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-15T17:33:37.767Z
Learning: Applies to src/pyOpenMS/pxds/**/*.pxd : Use exactly `# ` (hash + 2 spaces) for all `wrap-doc:` documentation continuation lines; deviation causes parsing failure in autowrap
Applied to files:
src/pyOpenMS/pxds/SpectrumLookup.pxdsrc/pyOpenMS/pxds/MassDecomposer.pxdsrc/pyOpenMS/pxds/MetaboTargetedAssay.pxdsrc/pyOpenMS/pxds/IDMapper.pxdsrc/pyOpenMS/pxds/PeakGroup.pxdsrc/pyOpenMS/pxds/LogConfigHandler.pxdsrc/pyOpenMS/pxds/FLASHHelperClasses.pxdsrc/pyOpenMS/pxds/ProtXMLFile.pxdsrc/pyOpenMS/pxds/PeptideProteinResolution.pxdsrc/pyOpenMS/tests/unittests/test_docstring_format.pysrc/pyOpenMS/pxds/SimpleTSGXLMS.pxd
📚 Learning: 2026-01-15T17:33:37.767Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-15T17:33:37.767Z
Learning: Applies to src/pyOpenMS/**/*.{pyx,pxd} : Always declare default and copy constructors in `.pxd` files; mark appropriate methods with `except +` for exception handling and `nogil` for thread safety when applicable
Applied to files:
src/pyOpenMS/pxds/SpectrumLookup.pxdsrc/pyOpenMS/pxds/MassDecomposer.pxdsrc/pyOpenMS/pxds/MetaboTargetedAssay.pxdsrc/pyOpenMS/pxds/IDMapper.pxdsrc/pyOpenMS/pxds/PeakGroup.pxdsrc/pyOpenMS/pxds/FLASHHelperClasses.pxdsrc/pyOpenMS/pxds/ProtXMLFile.pxdsrc/pyOpenMS/pxds/PeptideProteinResolution.pxdsrc/pyOpenMS/pxds/SimpleTSGXLMS.pxd
📚 Learning: 2025-06-16T15:48:09.667Z
Learnt from: FreezB11
Repo: OpenMS/OpenMS PR: 7969
File: src/pyOpenMS/pxds/TMTThirtyTwoPlexQuantitationMethod.pxd:4-4
Timestamp: 2025-06-16T15:48:09.667Z
Learning: In OpenMS .pxd files, the established pattern for extern from statements is to include angle brackets inside the string literal, like `cdef extern from "<OpenMS/PATH/TO/FILE.h>" namespace "OpenMS":`. This is consistent across all existing quantitation method .pxd files and other .pxd files in the OpenMS codebase.
Applied to files:
src/pyOpenMS/pxds/SpectrumLookup.pxd
📚 Learning: 2026-01-15T17:33:37.767Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-15T17:33:37.767Z
Learning: Applies to src/pyOpenMS/addons/**/*.pyx : Do not define new `cdef class` in addon files; only define Python-only methods with proper indentation; keep addons minimal
Applied to files:
src/pyOpenMS/pxds/SpectrumLookup.pxdsrc/pyOpenMS/pxds/MassDecomposer.pxdsrc/pyOpenMS/pxds/PeakGroup.pxdsrc/pyOpenMS/pxds/FLASHHelperClasses.pxdsrc/pyOpenMS/pxds/ProtXMLFile.pxdsrc/pyOpenMS/pxds/PeptideProteinResolution.pxdsrc/pyOpenMS/pxds/SimpleTSGXLMS.pxd
📚 Learning: 2026-01-15T17:33:37.767Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-15T17:33:37.767Z
Learning: Applies to src/pyOpenMS/pxds/**/*.pxd : Use snake_case for Python-facing method and variable names in `.pxd` files and DataFrame columns
Applied to files:
src/pyOpenMS/pxds/SpectrumLookup.pxdsrc/pyOpenMS/pxds/MetaboTargetedAssay.pxdsrc/pyOpenMS/pxds/LogConfigHandler.pxdsrc/pyOpenMS/pxds/ProtXMLFile.pxdsrc/pyOpenMS/pxds/PeptideProteinResolution.pxdsrc/pyOpenMS/pxds/SimpleTSGXLMS.pxd
📚 Learning: 2026-01-15T17:33:37.767Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-15T17:33:37.767Z
Learning: Applies to ** : When changing C++ APIs, update corresponding `.pxd` files and pyOpenMS addons; when adding TOPP tools, register in `src/topp/executables.cmake` and `ToolHandler.cpp`; when changing file formats, update `FileHandler::NamesOfTypes[]` and schemas
Applied to files:
src/pyOpenMS/pxds/SpectrumLookup.pxdsrc/pyOpenMS/pxds/MetaboTargetedAssay.pxdsrc/pyOpenMS/pxds/IDMapper.pxdsrc/pyOpenMS/pxds/ProtXMLFile.pxdsrc/pyOpenMS/pxds/PeptideProteinResolution.pxdsrc/pyOpenMS/tests/unittests/test_docstring_format.pysrc/pyOpenMS/pxds/SimpleTSGXLMS.pxd
📚 Learning: 2026-01-14T18:51:46.097Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-01-14T18:51:46.097Z
Learning: Applies to src/pyOpenMS/addons/**/*.pyx : Keep pyOpenMS addons minimal - only add methods that cannot be auto-generated (like `__repr__`, `__str__`), not redundant aliases
Applied to files:
src/pyOpenMS/pxds/MassDecomposer.pxdsrc/pyOpenMS/pxds/MetaboTargetedAssay.pxdsrc/pyOpenMS/pxds/IDMapper.pxdsrc/pyOpenMS/pxds/PeptideProteinResolution.pxdsrc/pyOpenMS/pxds/SimpleTSGXLMS.pxd
📚 Learning: 2026-01-14T18:51:46.097Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-01-14T18:51:46.097Z
Learning: Applies to src/pyOpenMS/addons/**/*.pyx : In pyOpenMS addon files, indent custom methods with 4 spaces without declaring a class - methods are injected into the generated class
Applied to files:
src/pyOpenMS/pxds/MassDecomposer.pxd
📚 Learning: 2026-01-14T18:51:46.097Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-01-14T18:51:46.097Z
Learning: Applies to src/pyOpenMS/addons/**/*.pyx : Do not declare `cdef class ClassName:` in pyOpenMS addon files - methods are injected as indented code into the generated class
Applied to files:
src/pyOpenMS/pxds/MassDecomposer.pxdsrc/pyOpenMS/pxds/PeakGroup.pxd
📚 Learning: 2025-06-16T15:49:26.504Z
Learnt from: FreezB11
Repo: OpenMS/OpenMS PR: 7969
File: src/pyOpenMS/pxds/TMTThirtyTwoPlexQuantitationMethod.pxd:1-3
Timestamp: 2025-06-16T15:49:26.504Z
Learning: In OpenMS Python bindings (.pxd files), derived quantitation method classes like TMTThirtyTwoPlexQuantitationMethod only need to declare their constructors. All other public methods (getName, getChannelInformation, getNumberOfChannels, getIsotopeCorrectionMatrix, getReferenceChannel) are inherited from the base IsobaricQuantitationMethod class and don't need to be redeclared explicitly.
Applied to files:
src/pyOpenMS/pxds/MetaboTargetedAssay.pxdsrc/pyOpenMS/pxds/PeakGroup.pxdsrc/pyOpenMS/pxds/FLASHHelperClasses.pxd
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/openms/include/OpenMS/**/*.h : Add Doxygen comments for new public methods and classes
Applied to files:
src/pyOpenMS/pxds/IDMapper.pxdsrc/pyOpenMS/pxds/FLASHHelperClasses.pxd
📚 Learning: 2026-01-14T18:51:46.097Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-01-14T18:51:46.097Z
Learning: Applies to src/pyOpenMS/**/*.py : Use `PeptideIdentificationList` type (not Python list) when calling `setPeptideIdentifications()` in pyOpenMS
Applied to files:
src/pyOpenMS/pxds/IDMapper.pxd
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/openms/**/*.{cpp,h,hpp,cc,cxx} : Use OpenMS data structures (e.g., MSExperiment, FeatureMap, PeptideIdentification)
Applied to files:
src/pyOpenMS/pxds/IDMapper.pxd
📚 Learning: 2025-11-18T20:08:08.900Z
Learnt from: timosachsenberg
Repo: OpenMS/OpenMS PR: 8374
File: src/pyOpenMS/pxds/SimpleSVM.pxd:0-0
Timestamp: 2025-11-18T20:08:08.900Z
Learning: In pyOpenMS .pxd files, copy constructors should be declared for wrapped C++ classes (e.g., `ClassName(ClassName&) except + nogil`) even when the C++ class has a deleted copy constructor. This is a standard pyOpenMS/Cython convention required for proper wrapper generation and Python object semantics.
Applied to files:
src/pyOpenMS/pxds/PeakGroup.pxdsrc/pyOpenMS/pxds/FLASHHelperClasses.pxd
📚 Learning: 2026-01-14T18:51:46.097Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-01-14T18:51:46.097Z
Learning: Applies to src/pyOpenMS/addons/**/*.pyx : Do not use `cdef` typed variables for autowrap return values inside `def` methods - use Python type introspection instead
Applied to files:
src/pyOpenMS/pxds/ProtXMLFile.pxd
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/pyOpenMS/tests/**/*.py : Write pyOpenMS tests for new Python bindings
Applied to files:
src/pyOpenMS/tests/unittests/test_docstring_format.py
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/tests/class_tests/openms/**/*.cpp : Write unit tests for new functionality
Applied to files:
src/pyOpenMS/tests/unittests/test_docstring_format.py
📚 Learning: 2026-01-04T21:35:37.785Z
Learnt from: timosachsenberg
Repo: OpenMS/OpenMS PR: 8588
File: src/pyOpenMS/tests/unittests/test_TargetedQuantitation.py:1-456
Timestamp: 2026-01-04T21:35:37.785Z
Learning: For Python files in the repository, follow PEP 8: use 4-space indentation, avoid tabs, and ensure Unix LF line endings. The 2-space indentation and Unix line endings guideline applies to C/Cython in their respective languages; Python files should adhere to Python style (PEP 8) regardless of other language rules.
Applied to files:
src/pyOpenMS/tests/unittests/test_docstring_format.py
🪛 GitHub Check: CodeFactor
src/pyOpenMS/tests/unittests/test_docstring_format.py
[notice] 441-558: src/pyOpenMS/tests/unittests/test_docstring_format.py#L441-L558
Complex Method
🪛 Ruff (0.14.11)
src/pyOpenMS/tests/unittests/test_docstring_format.py
259-259: Do not catch blind exception: Exception
(BLE001)
494-494: Local variable is_valid_continuation is assigned to but never used
Remove assignment to unused variable is_valid_continuation
(F841)
1358-1358: Use explicit conversion flag
Replace with conversion flag
(RUF010)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (11)
- GitHub Check: build-wheels-linux
- GitHub Check: build-wheels-windows
- GitHub Check: build-wheels-linux-arm
- GitHub Check: build-wheels-macos
- GitHub Check: build-and-test (ubuntu-24.04-arm, g++, 13)
- GitHub Check: build-and-test (macos-14, xcode, 15.4)
- GitHub Check: build-and-test (ubuntu-24.04, clang++, 17)
- GitHub Check: build-and-test (ubuntu-24.04, g++, 13)
- GitHub Check: build-and-test (windows-2025, cl.exe, 14.44)
- GitHub Check: claude-review
- GitHub Check: cppcheck-test
🔇 Additional comments (26)
src/pyOpenMS/pxds/SpectrumLookup.pxd (2)
38-41: LGTM!The explanatory comment properly documents why the single-argument overload is commented out (Cython inheritance limitation with overloaded methods). The
#(hash + 2 spaces) format is consistent with the file conventions.
71-71: LGTM!The commented-out method with
# NAMESPACE #marker follows the established pattern for documenting C++ methods that aren't wrapped for Python exposure.src/pyOpenMS/pxds/PeakGroup.pxd (1)
12-19: Formatting looks correct.The wrap-doc block (lines 12-15) is properly terminated by the blank line at line 16. The section comment
# Constructorson line 17 uses the standard#format consistently with wrap-doc continuation lines, but won't be parsed as wrap-doc content due to the blank line separator.src/pyOpenMS/pxds/ProtXMLFile.pxd (1)
15-29: Wrap-doc formatting is correct.The class-level documentation properly uses
#(hash + 2 spaces) for continuation lines and#alone for paragraph breaks, following the autowrap convention. Based on learnings, this format is required for proper parsing.src/pyOpenMS/pxds/FLASHHelperClasses.pxd (1)
35-37: Consistent section comment formatting.The
# Constructorssection comments across all four classes (lines 35, 70, 93, 114) now consistently use the#format. Each is properly separated from the preceding wrap-doc block by a blank line, preventing incorrect parsing.src/pyOpenMS/pxds/LogConfigHandler.pxd (1)
19-72: Wrap-doc formatting is well-structured.All three method documentation blocks (
parse,configure,setLogLevel) correctly use:
#(hash + 2 spaces) for continuation lines#alone for paragraph breaks- Proper
:param,:raises, and:returnRST directivesThe extensive documentation for
parse()andconfigure()with examples and parameter descriptions follows best practices for autowrap documentation. Based on learnings, this format is required for proper parsing in autowrap.src/pyOpenMS/pxds/PeptideProteinResolution.pxd (4)
8-27: LGTM!The wrap-doc block correctly uses
#(hash + two spaces) for all continuation lines, which aligns with the autowrap parsing requirements. The documentation structure and formatting are correct.
32-42: LGTM!The
buildGraphmethod signature and wrap-doc formatting are correct. Continuation lines properly use#format.
44-53: LGTM!The
resolveGraphmethod wrap-doc block follows the correct continuation format.
55-82: LGTM!Both
findConnectedComponentandresolveConnectedComponentwrap-doc blocks use proper formatting with#continuation lines.src/pyOpenMS/pxds/MetaboTargetedAssay.pxd (2)
26-40: LGTM!The wrap-doc documentation for
extractMetaboTargetedAssayproperly uses#(hash + two spaces) for continuation lines and follows the required format.
48-69: LGTM!Both
extractMetaboTargetedAssayFragmentAnnotationandpairCompoundWithAnnotatedTDSpectraPairswrap-doc blocks follow the correct continuation line format.src/pyOpenMS/pxds/SimpleTSGXLMS.pxd (2)
47-67: LGTM!The wrap-doc block for the first
getXLinkIonSpectrumoverload correctly uses#for blank lines and#(hash + two spaces) for content continuation lines, meeting autowrap requirements.
71-88: LGTM!The second
getXLinkIonSpectrumoverload wrap-doc block follows the correct continuation format.src/pyOpenMS/pxds/IDMapper.pxd (3)
29-43: LGTM!The wrap-doc documentation for the first
annotateoverload correctly uses#(hash + two spaces) for all continuation lines and properly documents the method parameters and exceptions.
49-112: LGTM!The wrap-doc blocks for the
annotateoverloads takingAnnotatedMSRun/FeatureMapandFeatureMap/ConsensusMapparameters follow the correct continuation line format with#.
115-198: LGTM!The remaining
annotateoverloads andmapPrecursorsToIdentificationsmethods have properly formatted wrap-doc blocks with correct#continuation lines.src/pyOpenMS/tests/unittests/test_docstring_format.py (9)
84-88: Addressed: Empty except block now has explanatory comment.The empty
exceptblock now includes a helpful comment explaining why the exception is silently caught (packaging configurations without__file__). This addresses the previous CodeQL warning appropriately.
247-261: Catching broadExceptionis acceptable here for resilience.While the static analysis flags the blind
Exceptioncatch at line 259, this is a reasonable pattern for RST parsing validation where various unexpected errors could occur from docutils internals. The error is captured and appended to the errors list rather than being silently swallowed.If you want to be more explicit, you could narrow this to specific exceptions, but the current approach is pragmatic for a validation utility.
441-558: Complex methodvalidate_wrap_doc_structureis acceptable given the task.While static analysis flags this as a complex method, the logic is straightforward state machine parsing for wrap-doc blocks. The method is well-documented with clear comments explaining each condition. Consider extracting helper functions only if this becomes harder to maintain.
1-47: Well-structured test module with appropriate conditional imports.The module docstring clearly explains the three test categories, and the conditional imports for
docutilsandpyopenmsallow tests to run in different environments (source-only vs. built pyopenms). This is a solid approach for CI flexibility.
565-800: Comprehensive pxd validation test suite.The
TestPxdDocumentationclass provides thorough coverage for wrap-doc format validation including:
- Directory/file existence checks with appropriate skips
- Essential vs. optional class wrap-doc presence
- Code block language specifiers
- Tab detection
- Backtick balance
- Structure validation
- Typo detection
- Continuation format verification
The tests appropriately skip when the pxds directory is unavailable (build environment). Based on learnings, the strict
#(hash + two spaces) enforcement aligns with autowrap requirements.
806-954: Generated docstring validation tests are well-designed.The
TestGeneratedDocstringsclass validates autowrap-generated.pyxfiles, which is the primary CI validation layer. The tests appropriately:
- Skip when generated files aren't available
- Check for docstring presence and count
- Validate core classes exist
- Check RST validity with acceptable error filtering
- Verify no tabs and proper string types
The
_is_acceptable_errorhelper at lines 957-974 correctly filters known acceptable patterns from autowrap output.
1054-1129: Unit tests for validation functions provide good coverage.The
TestDocstringValidationclass thoroughly tests the validation utilities with both positive and negative test cases for:
- Valid/invalid RST code blocks
- Field list formats
- Javadoc-style detection
- Unbalanced backticks
- Tab detection
This ensures the validation logic itself is correct before being applied to actual docstrings.
1131-1235:TestWrapDocStructureValidationunit tests are thorough.The tests cover important edge cases:
- Valid multi-line wrap-doc with proper
#format- Missing space after hash detection
- Single space (instead of two) detection
- Inline wrap-doc format acceptance
- Inconsistent indentation detection
- Typo detection for common mistakes
These unit tests validate the structure checks that enforce the learnings requirement for
#continuation format.
1238-1419:TestPyxDocstringExtractionunit tests are comprehensive.Good coverage for the docstring extraction logic including:
- Class and method docstring extraction
- Single-line and multi-line docstrings
- Proper dedentation handling
- Inheritance syntax handling
- Empty file and no-docstring edge cases
The tests use temporary files appropriately and clean up after themselves.
✏️ Tip: You can disable this entire section by setting review_details to false in your review settings.
| # decomposition_type getDecomposition(ValueType mass) except + nogil | ||
| # decompositions_type getAllDecompositions(ValueType mass) except + nogil |
There was a problem hiding this comment.
Commented-out declarations may be parsed as wrap-doc content.
Lines 20-21 contain commented-out method declarations using the # wrap-doc continuation format. Since they follow the wrap-doc block for exist() without a clear terminator (like a blank line or ##), the autowrap parser may incorrectly include them in exist()'s documentation.
Consider using ## prefix to clearly mark these as non-documentation comments:
Suggested fix
# :param mass: Mass to be checked on decomposing
# :return: True, if the decomposition for `mass` exist, otherwise - false
- # decomposition_type getDecomposition(ValueType mass) except + nogil
- # decompositions_type getAllDecompositions(ValueType mass) except + nogil
+ ## decomposition_type getDecomposition(ValueType mass) except + nogil
+ ## decompositions_type getAllDecompositions(ValueType mass) except + nogil
DecompositionValueType getNumberOfDecompositions(ValueType mass) except + nogil📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| # decomposition_type getDecomposition(ValueType mass) except + nogil | |
| # decompositions_type getAllDecompositions(ValueType mass) except + nogil | |
| # decomposition_type getDecomposition(ValueType mass) except + nogil | |
| # decompositions_type getAllDecompositions(ValueType mass) except + nogil | |
| ## decomposition_type getDecomposition(ValueType mass) except + nogil | |
| ## decompositions_type getAllDecompositions(ValueType mass) except + nogil | |
| DecompositionValueType getNumberOfDecompositions(ValueType mass) except + nogil |
| # decomposition_type getDecomposition(ValueType mass) except + nogil | |
| # decompositions_type getAllDecompositions(ValueType mass) except + nogil | |
| # :param mass: Mass to be checked on decomposing | |
| # :return: True, if the decomposition for `mass` exist, otherwise - false | |
| ## decomposition_type getDecomposition(ValueType mass) except + nogil | |
| ## decompositions_type getAllDecompositions(ValueType mass) except + nogil | |
| DecompositionValueType getNumberOfDecompositions(ValueType mass) except + nogil |
🤖 Prompt for AI Agents
In `@src/pyOpenMS/pxds/MassDecomposer.pxd` around lines 20 - 21, The commented-out
method declarations after the wrap-doc block for exist() (the lines referencing
getDecomposition and getAllDecompositions) can be misparsed as wrap-doc content;
update those comment lines in MassDecomposer.pxd to clearly mark them as
non-documentation by prefixing them with "##" or inserting a blank line/explicit
terminator after exist()'s wrap-doc block so the autowrap parser stops treating
them as documentation for exist() — locate the commented lines mentioning
getDecomposition and getAllDecompositions and change their leading comment
marker accordingly.
| # Not implemented | ||
| void store(String filename, ProteinIdentification & protein_ids, PeptideIdentification & peptide_ids, String document_id) except + nogil |
There was a problem hiding this comment.
Ambiguous comment placement may cause parsing issues.
Line 47 # Not implemented uses wrap-doc continuation format (# ) and is indented at the same level as the load() method's wrap-doc block (lines 36-45). The autowrap parser may incorrectly append this comment to load()'s documentation rather than associating it with store().
Consider either:
- Moving the comment after the
store()declaration as a proper wrap-doc block, or - Using
##to clearly mark it as a non-wrap-doc comment
Suggested fix
- # Not implemented
- void store(String filename, ProteinIdentification & protein_ids, PeptideIdentification & peptide_ids, String document_id) except + nogil
+ void store(String filename, ProteinIdentification & protein_ids, PeptideIdentification & peptide_ids, String document_id) except + nogil
+ ## Not implemented📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| # Not implemented | |
| void store(String filename, ProteinIdentification & protein_ids, PeptideIdentification & peptide_ids, String document_id) except + nogil | |
| void store(String filename, ProteinIdentification & protein_ids, PeptideIdentification & peptide_ids, String document_id) except + nogil | |
| ## Not implemented |
🤖 Prompt for AI Agents
In `@src/pyOpenMS/pxds/ProtXMLFile.pxd` around lines 47 - 48, The comment "# Not
implemented" is ambiguously placed and may be parsed as wrap-doc for load();
move or reformat it so it clearly belongs to store(): either relocate the
comment to immediately after the declaration of store(String filename,
ProteinIdentification & protein_ids, PeptideIdentification & peptide_ids, String
document_id) except + nogil, or change its prefix to "##" (or another clear
non-wrap-doc marker) so it is not treated as part of load()'s wrap-doc; ensure
the comment sits at the same indentation level as the store() declaration and
refers to store() to avoid parser misassociation.
There was a problem hiding this comment.
@timosachsenberg Yep. Those are the false positives I mean. Sometimes a new line and a discontinuation was actually intended.
There was a problem hiding this comment.
Seems like the humans are having a chat. I'll hop back into my burrow for now. If you need me again, just tag @coderabbitai in a new comment, and I'll come hopping out!
There was a problem hiding this comment.
@jpfeuffer what do you think about the fix below?
There was a problem hiding this comment.
Maybe 😄 It is really complex but yeah, new lines without a hash should not be seen as continuations definitely
There was a problem hiding this comment.
ok I think I merge this. Might need some updates in the future but already found some true bugs
The wrap-doc validator was incorrectly treating comments like "# private" or "# protected" that appeared after blank lines as wrap-doc continuation lines. This caused false positives in 7 pxd files (ModificationsDB, RNaseDB, ElementDB, Param, RibonucleotideDB, CrossLinksDB, ProteaseDB). The fix adds tracking of blank lines within wrap-doc blocks. When a blank line is followed by a single-space comment (like "# private"), the validator now correctly ends the wrap-doc block instead of flagging it as a format error. This allows valid multi-paragraph wrap-doc blocks while properly separating wrap-doc content from subsequent unrelated comments. Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
Address CodeRabbit review comment: the extract_wrap_doc_from_pxd()
function was accepting single-space continuations "# " which is
inconsistent with the validator that requires two spaces "# ".
Changes:
- Only accept "# " (hash + exactly 2 spaces) as continuation lines
- Accept "#" (just hash) for blank lines in docstrings
- Remove the branch that accepted single-space "# " continuations
- Update regex from r'\s*#\s?' to r'\s*#\s{2}' for strict matching
- Add proper break for wrap directive boundaries
This makes extraction consistent with validation and prevents
accidentally extracting unrelated comments as wrap-doc content.
Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. |
Added 19 missing PRs to OpenMS 3.6.0 changelog: PyOpenMS: - #8530: Build system modernization with py-build-cmake - #8633: SpectrumNativeIDParser wrapper - #8655: Arrow/Parquet export with DataFrame methods (BREAKING: method renames) - #8661: Build dependency docs - #8664: Biosaur2Algorithm wrap-inherits - #8668: wrap-doc documentation - #8674: Docstring validation tests TOPP tools: - #8643: FileInfo FASTA stats - #8650: FileConverter MSP support - #8649: PeakPickerHiRes parameter OpenMS Library: - #8633: SpectrumNativeIDParser class - #8655: ArrowExport helper - #8651, #8656, #8659, #8660, #8662: Performance optimizations Fixes: - #8645: DataArray handling in filters - #8672: Test file correction - #8678: UniqueIdGenerator seed collision fix Build System: - #8675, #8676: Claude CI workflows Also reorganized misplaced entries from lines 122-129. Co-authored-by: Timo Sachsenberg <[email protected]>
* Add comprehensive changelog for OpenMS 3.6.0 Includes changes from 96 merged PRs since version 3.5.0: - General: macOS Intel discontinued, Ubuntu 24.04, notarization in CI - Dependencies: Autowrap >= 0.26.0, Eigen minimum 3.4.0 - PyOpenMS: Pythonic methods (__len__, __str__, __repr__, __hash__), DataFrame support, new wrappers, string handling improvements - TOPP tools: MapAligner spectra transformation, FileInfo improvements, IsobaricWorkflow fixes, SageAdapter thread handling - OpenMS Library: PeakFileOptions, ParamIterator, SpectrumAnnotator - Breaking changes: Matrix<T> Eigen decoupling, API renames, FileWatcher move - Bug fixes: NucleicAcidSearchEngine, LogConfigHandler, decoy generation - Documentation: Targeted Quantitation, parameter annotations, AGENTS.md - Build: macOS notarization, Parquet support, pytest fixtures Co-Authored-By: Claude Opus 4.5 <[email protected]> * Add missing changelog entries for recently merged PRs Added 19 missing PRs to OpenMS 3.6.0 changelog: PyOpenMS: - #8530: Build system modernization with py-build-cmake - #8633: SpectrumNativeIDParser wrapper - #8655: Arrow/Parquet export with DataFrame methods (BREAKING: method renames) - #8661: Build dependency docs - #8664: Biosaur2Algorithm wrap-inherits - #8668: wrap-doc documentation - #8674: Docstring validation tests TOPP tools: - #8643: FileInfo FASTA stats - #8650: FileConverter MSP support - #8649: PeakPickerHiRes parameter OpenMS Library: - #8633: SpectrumNativeIDParser class - #8655: ArrowExport helper - #8651, #8656, #8659, #8660, #8662: Performance optimizations Fixes: - #8645: DataArray handling in filters - #8672: Test file correction - #8678: UniqueIdGenerator seed collision fix Build System: - #8675, #8676: Claude CI workflows Also reorganized misplaced entries from lines 122-129. Co-authored-by: Timo Sachsenberg <[email protected]> --------- Co-authored-by: Claude Opus 4.5 <[email protected]> Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com> Co-authored-by: Timo Sachsenberg <[email protected]>
Summary
warp-doc→wrap-docin EnzymaticDigestion.pxd (found by the new tests)Details
The new test file
src/pyOpenMS/tests/unittests/test_docstring_format.pyvalidates:Tests that run without built pyopenms:
wrap-docannotations.. code-block:: python)warp-doc,wrapdoc,wrap_doc, etc.)Tests that require built pyopenms (skipped if unavailable):
The tests are designed to:
Test plan
pytest src/pyOpenMS/tests/unittests/test_docstring_format.py -v🤖 Generated with Claude Code
Summary by CodeRabbit
Documentation
Tests
✏️ Tip: You can customize this high-level summary in your review settings.