René's URL Explorer Experiment


Title: Only exclude `_version` from top-level Import Linter contracts by Copilot · Pull Request #1536 · usethis-python/usethis-python · GitHub

Open Graph Title: Only exclude `_version` from top-level Import Linter contracts by Copilot · Pull Request #1536 · usethis-python/usethis-python

X Title: Only exclude `_version` from top-level Import Linter contracts by Copilot · Pull Request #1536 · usethis-python/usethis-python

Description: _version was being excluded from all layer contracts, including submodule contracts. Since VCS plugins (setuptools-scm, hatch-vcs) only auto-generate _version.py at the package root, a.b._version should participate normally in the a.b contract. Fix: Guard the _version exclusion in _get_module_layered_architecture with if "." not in module:, so it only applies to root packages Test: Added test_version_not_excluded_in_submodule verifying _version stays in layers for subpackage contracts Original prompt This section details on the original issue you should resolve Test that _version is not excluded from Import Linter contracts for submodules Following up from #1427 We shouldn't exclude a.b._version from the a.b layer contract. Only from a._version, c._version, etc. Comments on the Issue (you are @copilot in this section) Fixes #1535 ⚡ Quickly spin up Copilot coding agent tasks from anywhere on your macOS or Windows machine with Raycast.

Open Graph Description: _version was being excluded from all layer contracts, including submodule contracts. Since VCS plugins (setuptools-scm, hatch-vcs) only auto-generate _version.py at the package root, a.b._version s...

X Description: _version was being excluded from all layer contracts, including submodule contracts. Since VCS plugins (setuptools-scm, hatch-vcs) only auto-generate _version.py at the package root, a.b._version s...

Opengraph URL: https://github.com/usethis-python/usethis-python/pull/1536

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:a53d0885-c619-33d4-bf40-9f9624ad94c9
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD954:68043:4AB8EB:690256:6A4D1E0A
html-safe-nonce07dc35c3cc12c41e66407813ae7fcc24f0169d912429991de62e2973fdd588ad
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOTU0OjY4MDQzOjRBQjhFQjo2OTAyNTY6NkE0RDFFMEEiLCJ2aXNpdG9yX2lkIjoiNDk5Mjg2MjAzOTg1ODU1MjMzMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac5380244c123871494af8266466709a4b780bcf465d329a45be238f0018db884c
hovercard-subject-tagpull_request:3446988459
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/usethis-python/usethis-python/pull/1536/files
twitter:imagehttps://avatars.githubusercontent.com/in/1143301?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/in/1143301?s=400&v=4
og:image:alt_version was being excluded from all layer contracts, including submodule contracts. Since VCS plugins (setuptools-scm, hatch-vcs) only auto-generate _version.py at the package root, a.b._version s...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/usethis-python/usethis-python git https://github.com/usethis-python/usethis-python.git
octolytics-dimension-user_id216362695
octolytics-dimension-user_loginusethis-python
octolytics-dimension-repository_id842189705
octolytics-dimension-repository_nwousethis-python/usethis-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id842189705
octolytics-dimension-repository_network_root_nwousethis-python/usethis-python
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release93f17a978ee60bc4668e1d7b90e6bd2d622261fd
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/usethis-python/usethis-python/pull/1536/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fusethis-python%2Fusethis-python%2Fpull%2F1536%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fusethis-python%2Fusethis-python%2Fpull%2F1536%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=usethis-python%2Fusethis-python
Reloadhttps://github.com/usethis-python/usethis-python/pull/1536/files
Reloadhttps://github.com/usethis-python/usethis-python/pull/1536/files
Reloadhttps://github.com/usethis-python/usethis-python/pull/1536/files
Please reload this pagehttps://github.com/usethis-python/usethis-python/pull/1536/files
usethis-python https://github.com/usethis-python
usethis-pythonhttps://github.com/usethis-python/usethis-python
Notifications https://github.com/login?return_to=%2Fusethis-python%2Fusethis-python
Fork 5 https://github.com/login?return_to=%2Fusethis-python%2Fusethis-python
Star 19 https://github.com/login?return_to=%2Fusethis-python%2Fusethis-python
Code https://github.com/usethis-python/usethis-python
Issues 163 https://github.com/usethis-python/usethis-python/issues
Pull requests 4 https://github.com/usethis-python/usethis-python/pulls
Actions https://github.com/usethis-python/usethis-python/actions
Security and quality 0 https://github.com/usethis-python/usethis-python/security
Insights https://github.com/usethis-python/usethis-python/pulse
Code https://github.com/usethis-python/usethis-python
Issues https://github.com/usethis-python/usethis-python/issues
Pull requests https://github.com/usethis-python/usethis-python/pulls
Actions https://github.com/usethis-python/usethis-python/actions
Security and quality https://github.com/usethis-python/usethis-python/security
Insights https://github.com/usethis-python/usethis-python/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fusethis-python%2Fusethis-python%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fusethis-python%2Fusethis-python%2Fissues%2Fnew%2Fchoose
nathanjmcdougallhttps://github.com/nathanjmcdougall
mainhttps://github.com/usethis-python/usethis-python/tree/main
copilot/test-version-inclusion-import-linterhttps://github.com/usethis-python/usethis-python/tree/copilot/test-version-inclusion-import-linter
Conversation 2 https://github.com/usethis-python/usethis-python/pull/1536
Commits 2 https://github.com/usethis-python/usethis-python/pull/1536/commits
Checks 20 https://github.com/usethis-python/usethis-python/pull/1536/checks
Files changed https://github.com/usethis-python/usethis-python/pull/1536/files
Please reload this pagehttps://github.com/usethis-python/usethis-python/pull/1536/files
Only exclude _version from top-level Import Linter contracts https://github.com/usethis-python/usethis-python/pull/1536/files#top
Show all changes 2 commits https://github.com/usethis-python/usethis-python/pull/1536/files
ac8d8a5 Initial plan Copilot Mar 25, 2026 https://github.com/usethis-python/usethis-python/pull/1536/commits/ac8d8a5088c46c9bb0630f883cf14750dbeb960b
78eff52 fix: only exclude _version from top-level Import Linter contracts, no… Copilot Mar 25, 2026 https://github.com/usethis-python/usethis-python/pull/1536/commits/78eff52cb21f95a876cfdb3121606b8596bf5cb8
Clear filters https://github.com/usethis-python/usethis-python/pull/1536/files
Please reload this pagehttps://github.com/usethis-python/usethis-python/pull/1536/files
Please reload this pagehttps://github.com/usethis-python/usethis-python/pull/1536/files
imports.py https://github.com/usethis-python/usethis-python/pull/1536/files#diff-dd1151ce77748d821001fe599797da84970e764185848f1481645bcb5323894f
test_imports.py https://github.com/usethis-python/usethis-python/pull/1536/files#diff-05fa748154deb457f20b6d2bff4619156edf9e6be3da3fb6449e7ac9dd25403b
src/usethis/_integrations/project/imports.pyhttps://github.com/usethis-python/usethis-python/pull/1536/files#diff-dd1151ce77748d821001fe599797da84970e764185848f1481645bcb5323894f
View file https://github.com/usethis-python/usethis-python/blob/78eff52cb21f95a876cfdb3121606b8596bf5cb8/src/usethis/_integrations/project/imports.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/usethis-python/usethis-python/pull/1536/{{ revealButtonHref }}
https://github.com/usethis-python/usethis-python/pull/1536/files#diff-dd1151ce77748d821001fe599797da84970e764185848f1481645bcb5323894f
https://github.com/usethis-python/usethis-python/pull/1536/files#diff-dd1151ce77748d821001fe599797da84970e764185848f1481645bcb5323894f
tests/usethis/_integrations/project/test_imports.pyhttps://github.com/usethis-python/usethis-python/pull/1536/files#diff-05fa748154deb457f20b6d2bff4619156edf9e6be3da3fb6449e7ac9dd25403b
View file https://github.com/usethis-python/usethis-python/blob/78eff52cb21f95a876cfdb3121606b8596bf5cb8/tests/usethis/_integrations/project/test_imports.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/usethis-python/usethis-python/pull/1536/{{ revealButtonHref }}
https://github.com/usethis-python/usethis-python/pull/1536/files#diff-05fa748154deb457f20b6d2bff4619156edf9e6be3da3fb6449e7ac9dd25403b
https://github.com/usethis-python/usethis-python/pull/1536/files#diff-05fa748154deb457f20b6d2bff4619156edf9e6be3da3fb6449e7ac9dd25403b
Please reload this pagehttps://github.com/usethis-python/usethis-python/pull/1536/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.