René's URL Explorer Experiment


Title: chore: enforce the declaration ordering convention in ci by bdraco · Pull Request #1887 · python-zeroconf/python-zeroconf · GitHub

Open Graph Title: chore: enforce the declaration ordering convention in ci by bdraco · Pull Request #1887 · python-zeroconf/python-zeroconf

X Title: chore: enforce the declaration ordering convention in ci by bdraco · Pull Request #1887 · python-zeroconf/python-zeroconf

Description: Summary Follow up to #1886. The fifth audit showed the ordering convention can regress silently (#1880 broke it in three classes), so it is now enforced and fully documented: scripts/check_declaration_order.py verifies method order in every class (dunders with init first, then public, then private, each alphabetical) and sibling class order (locally defined bases first, subclasses sharing the same local bases alphabetical), printing the full expected sequence on failure runs as a pre-commit hook receiving the changed files from pre-commit (full tree scan when run standalone), triggering on the script's own changes too, via python3 CLAUDE.md now documents the full convention it enforces, including that the arrangement is deliberately rule generated enforcement required conforming the eighteen classes earlier rounds never touched plus the info.py resolver siblings; a review confirmed the reorder is invisible to the compiled Cython layout since the untouched pxd files own the struct and vtable order and matching is by name Test plan checker green tree wide, fails correctly on perturbation, argv mode verified full suite passes against a REQUIRE_CYTHON rebuild; CodSpeed is the authoritative perf confirmation

Open Graph Description: Summary Follow up to #1886. The fifth audit showed the ordering convention can regress silently (#1880 broke it in three classes), so it is now enforced and fully documented: scripts/check_declara...

X Description: Summary Follow up to #1886. The fifth audit showed the ordering convention can regress silently (#1880 broke it in three classes), so it is now enforced and fully documented: scripts/check_declara...

Opengraph URL: https://github.com/python-zeroconf/python-zeroconf/pull/1887

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:04d20c5a-b6c4-5e14-8021-96c401d96f91
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8520:200C95:19A185:2254A8:6B00831B
html-safe-nonce28e59667eea3077dcee65bb994fdbeedbafabf9ea8359421a34ef90d561b0e56
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NTIwOjIwMEM5NToxOUExODU6MjI1NEE4OjZCMDA4MzFCIiwidmlzaXRvcl9pZCI6IjkwNzEyOTY2MjY5MDcxODU5NDciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac9622397f9d7d6ece75da15bb795bf92473f1a19e5e16124f12a92a07553c5c37
hovercard-subject-tagpull_request:4393922823
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/python-zeroconf/python-zeroconf/pull/1887/files
twitter:imagehttps://avatars.githubusercontent.com/u/663432?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/663432?s=400&v=4
og:image:altSummary Follow up to #1886. The fifth audit showed the ordering convention can regress silently (#1880 broke it in three classes), so it is now enforced and fully documented: scripts/check_declara...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None4d3d8e50f02c1d7bf86d5acfa1d3bfe9366abd6528a6b429eb07a168429d2b61
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python-zeroconf/python-zeroconf git https://github.com/python-zeroconf/python-zeroconf.git
octolytics-dimension-user_id120192235
octolytics-dimension-user_loginpython-zeroconf
octolytics-dimension-repository_id21548731
octolytics-dimension-repository_nwopython-zeroconf/python-zeroconf
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id21548731
octolytics-dimension-repository_network_root_nwopython-zeroconf/python-zeroconf
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
releasedb758f8e02b8257935fb03edf81a3e76eb3abd11
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python-zeroconf/python-zeroconf/pull/1887/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-zeroconf%2Fpython-zeroconf%2Fpull%2F1887%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-zeroconf%2Fpython-zeroconf%2Fpull%2F1887%2Ffiles
Sign uphttps://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=python-zeroconf%2Fpython-zeroconf
Reloadhttps://github.com/python-zeroconf/python-zeroconf/pull/1887/files
Reloadhttps://github.com/python-zeroconf/python-zeroconf/pull/1887/files
Reloadhttps://github.com/python-zeroconf/python-zeroconf/pull/1887/files
python-zeroconfhttps://github.com/python-zeroconf
python-zeroconfhttps://github.com/python-zeroconf/python-zeroconf
Codehttps://github.com/python-zeroconf/python-zeroconf
Issues50 (50)https://github.com/python-zeroconf/python-zeroconf/issues
Pull requests16 (16)https://github.com/python-zeroconf/python-zeroconf/pulls
Discussionshttps://github.com/python-zeroconf/python-zeroconf/discussions
Actionshttps://github.com/python-zeroconf/python-zeroconf/actions
Projectshttps://github.com/python-zeroconf/python-zeroconf/projects
Wikihttps://github.com/python-zeroconf/python-zeroconf/wiki
Security and quality5 (5)https://github.com/python-zeroconf/python-zeroconf/security
Insightshttps://github.com/python-zeroconf/python-zeroconf/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fpython-zeroconf%2Fpython-zeroconf%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython-zeroconf%2Fpython-zeroconf%2Fissues%2Fnew%2Fchoose
bdracohttps://github.com/bdraco
masterhttps://github.com/python-zeroconf/python-zeroconf/tree/master
enforce_ordering_cihttps://github.com/python-zeroconf/python-zeroconf/tree/enforce_ordering_ci
Conversation 4 https://github.com/python-zeroconf/python-zeroconf/pull/1887
Commits 1 https://github.com/python-zeroconf/python-zeroconf/pull/1887/commits
Checks 37 https://github.com/python-zeroconf/python-zeroconf/pull/1887/checks
Files changed https://github.com/python-zeroconf/python-zeroconf/pull/1887/files
Please reload this pagehttps://github.com/python-zeroconf/python-zeroconf/pull/1887/files
chore: enforce the declaration ordering convention in ci https://github.com/python-zeroconf/python-zeroconf/pull/1887/files#top
Show all changes 1 commit https://github.com/python-zeroconf/python-zeroconf/pull/1887/files
dd9091d chore: enforce the declaration ordering convention in ci bdraco Aug 30, 2026 https://github.com/python-zeroconf/python-zeroconf/pull/1887/commits/dd9091dee9ea92faea9ffed4155aa9db73d06268
Clear filters https://github.com/python-zeroconf/python-zeroconf/pull/1887/files
Please reload this pagehttps://github.com/python-zeroconf/python-zeroconf/pull/1887/files
Please reload this pagehttps://github.com/python-zeroconf/python-zeroconf/pull/1887/files
.pre-commit-config.yaml https://github.com/python-zeroconf/python-zeroconf/pull/1887/files#diff-63a9c44a44acf85fea213a857769990937107cf072831e1a26808cfde9d096b9
CLAUDE.md https://github.com/python-zeroconf/python-zeroconf/pull/1887/files#diff-6ebdb617a8104a7756d0cf36578ab01103dc9f07e4dc6feb751296b9c402faf7
pyproject.toml https://github.com/python-zeroconf/python-zeroconf/pull/1887/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
check_declaration_order.py https://github.com/python-zeroconf/python-zeroconf/pull/1887/files#diff-b29bcdfe18a2bd7e39f1ae2a2e745eaa3ea57054581a70dd0a52de96672a73f6
_engine.py https://github.com/python-zeroconf/python-zeroconf/pull/1887/files#diff-8dc080e5555d9366069bd1bdbe1cee5bafd50ff8efc9e6ce469d6716bbf7663e
multicast_outgoing_queue.py https://github.com/python-zeroconf/python-zeroconf/pull/1887/files#diff-782a526af6e9973de4e5357f2856cb73d7c9c655bba58d9ee8ceb660afa99434
query_handler.py https://github.com/python-zeroconf/python-zeroconf/pull/1887/files#diff-dcb2bcd662da3efbef6d7130df11573195707931c9318ac44e922e54f32c9a25
record_manager.py https://github.com/python-zeroconf/python-zeroconf/pull/1887/files#diff-f1737ce73cad1a974e837532d241813eeebb0234d27116449fd8d7a79df494f6
_history.py https://github.com/python-zeroconf/python-zeroconf/pull/1887/files#diff-4f2fbc74acfddf34f8e5424b7a105a84230e3fa0f43e9b14e5afa5a8972775f2
_listener.py https://github.com/python-zeroconf/python-zeroconf/pull/1887/files#diff-482d92e649d0a9dfb6f7434c0ec1854490aeda07f86f21ac36e348a9ad1ab4d2
_logger.py https://github.com/python-zeroconf/python-zeroconf/pull/1887/files#diff-a21ea7a0e73a4c25239bfa59e5ae0702ba7f5239f1a318a6e82398c0d7415300
_record_update.py https://github.com/python-zeroconf/python-zeroconf/pull/1887/files#diff-d3f58aa2875f33ce258f88ed9026829e9e7ffa34b8ac3edaebc813c0886fc8d1
browser.py https://github.com/python-zeroconf/python-zeroconf/pull/1887/files#diff-03d8923ed2332d5f0754a33b811ff1e11b95c782e3e2832871c5f473df71aad7
info.py https://github.com/python-zeroconf/python-zeroconf/pull/1887/files#diff-1d9147eb9baf7756138dfa891475affa18bbe55d565efca5b039f301ab045fa4
registry.py https://github.com/python-zeroconf/python-zeroconf/pull/1887/files#diff-96d8e4619ec77654c7d2a03d7d80337ca934c6f15a728a96500590a0b94d4509
types.py https://github.com/python-zeroconf/python-zeroconf/pull/1887/files#diff-1a1707c0bc37d6bc218bde8c95230bfb6a8973f4c10557f4c10f235957ff817b
_updates.py https://github.com/python-zeroconf/python-zeroconf/pull/1887/files#diff-659ba400f732d639bc9e4a01c75c39189c62b80b793c8bc92cb53b9a5259b0c1
ipaddress.py https://github.com/python-zeroconf/python-zeroconf/pull/1887/files#diff-1e20b77de8bb5cabe431e715b88dcd938bbd10f5b79efbbe45466ecb9c8c1da7
asyncio.py https://github.com/python-zeroconf/python-zeroconf/pull/1887/files#diff-96bdd1e4e7a9ff49c66e746ace69a44b9a538be08cc39b7c38139bb78e81cf14
.pre-commit-config.yamlhttps://github.com/python-zeroconf/python-zeroconf/pull/1887/files#diff-63a9c44a44acf85fea213a857769990937107cf072831e1a26808cfde9d096b9
View file https://github.com/python-zeroconf/python-zeroconf/blob/dd9091dee9ea92faea9ffed4155aa9db73d06268/.pre-commit-config.yaml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python-zeroconf/python-zeroconf/pull/1887/{{ revealButtonHref }}
https://github.com/python-zeroconf/python-zeroconf/pull/1887/files#diff-63a9c44a44acf85fea213a857769990937107cf072831e1a26808cfde9d096b9
CLAUDE.mdhttps://github.com/python-zeroconf/python-zeroconf/pull/1887/files#diff-6ebdb617a8104a7756d0cf36578ab01103dc9f07e4dc6feb751296b9c402faf7
View file https://github.com/python-zeroconf/python-zeroconf/blob/dd9091dee9ea92faea9ffed4155aa9db73d06268/CLAUDE.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python-zeroconf/python-zeroconf/pull/1887/{{ revealButtonHref }}
https://github.com/python-zeroconf/python-zeroconf/pull/1887/files#diff-6ebdb617a8104a7756d0cf36578ab01103dc9f07e4dc6feb751296b9c402faf7
https://github.com/python-zeroconf/python-zeroconf/pull/1887/files#diff-6ebdb617a8104a7756d0cf36578ab01103dc9f07e4dc6feb751296b9c402faf7
pyproject.tomlhttps://github.com/python-zeroconf/python-zeroconf/pull/1887/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
View file https://github.com/python-zeroconf/python-zeroconf/blob/dd9091dee9ea92faea9ffed4155aa9db73d06268/pyproject.toml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python-zeroconf/python-zeroconf/pull/1887/{{ revealButtonHref }}
https://github.com/python-zeroconf/python-zeroconf/pull/1887/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
https://github.com/python-zeroconf/python-zeroconf/pull/1887/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
scripts/check_declaration_order.pyhttps://github.com/python-zeroconf/python-zeroconf/pull/1887/files#diff-b29bcdfe18a2bd7e39f1ae2a2e745eaa3ea57054581a70dd0a52de96672a73f6
View file https://github.com/python-zeroconf/python-zeroconf/blob/dd9091dee9ea92faea9ffed4155aa9db73d06268/scripts/check_declaration_order.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python-zeroconf/python-zeroconf/pull/1887/{{ revealButtonHref }}
Please reload this pagehttps://github.com/python-zeroconf/python-zeroconf/pull/1887/files
Please reload this pagehttps://github.com/python-zeroconf/python-zeroconf/pull/1887/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.