Title: Move test suite structure expectations into a prek hook by Copilot · Pull Request #1583 · usethis-python/usethis-python · GitHub
Open Graph Title: Move test suite structure expectations into a prek hook by Copilot · Pull Request #1583 · usethis-python/usethis-python
X Title: Move test suite structure expectations into a prek hook by Copilot · Pull Request #1583 · usethis-python/usethis-python
Description: The test skeleton check (every tests/usethis/**/test_*.py must have a matching source module) was enforced as a pytest test. This belongs in the prek hook pipeline where other structural/convention checks live. New hook hooks/check-test-skeleton.py: Pure-Python bespoke hook that validates test-to-source module correspondence across four naming patterns (direct, underscore-prefixed, parent-stripped, underscore-parent-stripped). Reports all mismatches at once rather than failing on the first. Wired into .pre-commit-config.yaml: Local system hook, priority: 0, placed alongside the other bespoke check hooks. Removed test_skeleton_matches from tests/test_suite.py: The fixture-related test_uv_init_not_git_repo test remains. ⌨️ Start Copilot coding agent tasks without leaving your editor — available in VS Code, Visual Studio, JetBrains IDEs and Eclipse.
Open Graph Description: The test skeleton check (every tests/usethis/**/test_*.py must have a matching source module) was enforced as a pytest test. This belongs in the prek hook pipeline where other structural/convention...
X Description: The test skeleton check (every tests/usethis/**/test_*.py must have a matching source module) was enforced as a pytest test. This belongs in the prek hook pipeline where other structural/convention...
Opengraph URL: https://github.com/usethis-python/usethis-python/pull/1583
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:969253a8-d2b8-996d-ab41-54a937487483 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 836A:29AC78:1C54ED4:290A889:6A4CFB82 |
| html-safe-nonce | b1ef8005d4d29aa5e28bbe6b06e57bd3c2a7984e54bda47bbfb37f5b4030aa83 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MzZBOjI5QUM3ODoxQzU0RUQ0OjI5MEE4ODk6NkE0Q0ZCODIiLCJ2aXNpdG9yX2lkIjoiNjQ5MTc4OTMzNTM1MTU4OTc2MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0f570fa3aeeb86566f0740ffad68d4b96d78de44448efcc97f0a557af63683c2 |
| hovercard-subject-tag | pull_request:3455110724 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/usethis-python/usethis-python/pull/1583/files |
| twitter:image | https://avatars.githubusercontent.com/in/1143301?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/in/1143301?s=400&v=4 |
| og:image:alt | The test skeleton check (every tests/usethis/**/test_*.py must have a matching source module) was enforced as a pytest test. This belongs in the prek hook pipeline where other structural/convention... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 31e4db13a9e20081f2fac78f441659a6576e582bbb15e153f9c7fb6473aa29f5 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/usethis-python/usethis-python git https://github.com/usethis-python/usethis-python.git |
| octolytics-dimension-user_id | 216362695 |
| octolytics-dimension-user_login | usethis-python |
| octolytics-dimension-repository_id | 842189705 |
| octolytics-dimension-repository_nwo | usethis-python/usethis-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 842189705 |
| octolytics-dimension-repository_network_root_nwo | usethis-python/usethis-python |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8307e9ba117a26e92a64fb1daf085d795a6552ed |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width