Skip to content

Conversation

@chrisjsewell
Copy link
Member

The need_part/np role is not a reference and should not use an XRefRole subclass (see #1437).

In addition, the processing now correctly handles and warns on need parts that are not part of a need and need roles that reference an unknown part.

@chrisjsewell chrisjsewell requested review from danwos and ubmarco July 10, 2025 11:15
@codecov
Copy link

codecov bot commented Jul 10, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.63%. Comparing base (4e10030) to head (ed0dbed).
⚠️ Report is 176 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1469      +/-   ##
==========================================
+ Coverage   86.87%   88.63%   +1.75%     
==========================================
  Files          56       61       +5     
  Lines        6532     7277     +745     
==========================================
+ Hits         5675     6450     +775     
+ Misses        857      827      -30     
Flag Coverage Δ
pytests 88.63% <100.00%> (+1.75%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

The `need_part`/`np` role is not a reference and should not use `XRefRole` subclass (see #1437).
In addition, the processing now correctly handles and warns on need parts that are not part of a need and `need` roles that reference an unknown part.
Copy link
Member

@ubmarco ubmarco left a comment

Choose a reason for hiding this comment

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

LGTM in general, I just question the re.DOTALL

@chrisjsewell chrisjsewell merged commit 6e9359a into master Jul 11, 2025
19 checks passed
@chrisjsewell chrisjsewell deleted the neep-part-improve branch July 11, 2025 07:23
PierreEtienneJ pushed a commit to PierreEtienneJ/sphinx-needs that referenced this pull request Jul 29, 2025
The `need_part`/`np` role is not a reference and should not use an
`XRefRole` subclass (see useblocks#1437).

In addition, the processing now correctly handles and warns on need
parts that are not part of a need and `need` roles that reference an
unknown part.
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.

3 participants