Skip to content

doc: add seealso link to src-layout vs flat-layout discussion#14184

Merged
webknjaz merged 2 commits intopytest-dev:mainfrom
him2him2:doc-src-layout-link
Feb 12, 2026
Merged

doc: add seealso link to src-layout vs flat-layout discussion#14184
webknjaz merged 2 commits intopytest-dev:mainfrom
him2him2:doc-src-layout-link

Conversation

@him2him2
Copy link
Contributor

Split from #14181 per @webknjaz's review — keeping changes atomic.

Changes

Add a .. seealso:: cross-reference in goodpractices.rst to the packaging.python.org discussion on src layout vs flat layout.

Reworked from the original PR to use intersphinx (via the existing packaging mapping) instead of a raw URL, per @webknjaz's feedback.

Open question from the previous review: whether a standalone .. seealso:: block is the right approach, or whether linking the existing text inline would be better. Happy to rework if there's a preference.

Add a ``.. seealso::`` cross-reference to the packaging.python.org
discussion on src layout vs flat layout, using intersphinx rather
than a raw URL.
@webknjaz webknjaz added type: docs documentation improvement, missing or needing clarification skip news used on prs to opt out of the changelog requirement backport 9.0.x apply to PRs at any point; backports the changes to the 9.0.x branch labels Feb 11, 2026
Copy link

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

Adds an intersphinx-based cross-reference in the pytest “Good Integration Practices” docs to the Python Packaging User Guide’s discussion of the src vs flat layout trade-offs.

Changes:

  • Add a .. seealso:: block linking to packaging:discussions/src-layout-vs-flat-layout using the existing packaging intersphinx mapping.

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

.. seealso::

:doc:`packaging:discussions/src-layout-vs-flat-layout`
The Python Packaging User Guide discusses the trade-offs between the ``src`` layout and flat layout.
Copy link

Copilot AI Feb 11, 2026

Choose a reason for hiding this comment

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

For consistency with the prior src literal markup, consider also marking “flat” as a literal (flat layout) in the description text.

Suggested change
The Python Packaging User Guide discusses the trade-offs between the ``src`` layout and flat layout.
The Python Packaging User Guide discusses the trade-offs between the ``src`` layout and ``flat`` layout.

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

Choose a reason for hiding this comment

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

Good catch — applied in b2e93bc.

Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure this should be highlighted like that, honestly.

Copy link
Member

Choose a reason for hiding this comment

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

Looks good to me. 👍

@nicoddemus nicoddemus requested a review from webknjaz February 12, 2026 22:53
Copy link
Member

@webknjaz webknjaz left a comment

Choose a reason for hiding this comment

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

Alright, if Bruno is fine with this wording, I have nothing against..

@webknjaz webknjaz merged commit 3c37b55 into pytest-dev:main Feb 12, 2026
33 checks passed
@patchback
Copy link

patchback bot commented Feb 12, 2026

Backport to 9.0.x: 💚 backport PR created

✅ Backport PR branch: patchback/backports/9.0.x/3c37b551e71c8b18c5323dac8a27d248bb98a5a9/pr-14184

Backported as #14188

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Feb 12, 2026
doc: add seealso link to src-layout vs flat-layout discussion
(cherry picked from commit 3c37b55)
webknjaz added a commit that referenced this pull request Feb 12, 2026
…c37b551e71c8b18c5323dac8a27d248bb98a5a9/pr-14184

[PR #14184/3c37b551 backport][9.0.x] doc: add seealso link to src-layout vs flat-layout discussion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport 9.0.x apply to PRs at any point; backports the changes to the 9.0.x branch skip news used on prs to opt out of the changelog requirement type: docs documentation improvement, missing or needing clarification

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants