Title: Update prek skills to warn against directory-scoped `files` patterns by Copilot · Pull Request #1839 · usethis-python/usethis-python · GitHub
Open Graph Title: Update prek skills to warn against directory-scoped `files` patterns by Copilot · Pull Request #1839 · usethis-python/usethis-python
X Title: Update prek skills to warn against directory-scoped `files` patterns by Copilot · Pull Request #1839 · usethis-python/usethis-python
Description: Agents were configuring prek hooks with files: ^(src|tests)/ instead of using types filters or pass_filenames, silently missing violations outside those directories. Changes usethis-prek-add-hook (v1.4 → v1.5): New "File targeting" section with the directive to use types: [python] or pass_filenames: false instead of directory-scoped files patterns. Documents the narrow exception for pygrep hooks where the pattern is only a violation in a specific directory. usethis-prek-hook-bespoke-create (v1.2 → v1.3): Added warning in the "Wiring into .pre-commit-config.yaml" key points against files-based directory scoping. Principle # ✗ Don't — silently misses violations outside src/tests - id: check-comment-keywords types: [python] files: ^(src|tests)/ # ✓ Do — catches violations everywhere - id: check-comment-keywords types: [python]
Open Graph Description: Agents were configuring prek hooks with files: ^(src|tests)/ instead of using types filters or pass_filenames, silently missing violations outside those directories. Changes usethis-prek-add-hook ...
X Description: Agents were configuring prek hooks with files: ^(src|tests)/ instead of using types filters or pass_filenames, silently missing violations outside those directories. Changes usethis-prek-add-hook ...
Opengraph URL: https://github.com/usethis-python/usethis-python/pull/1839
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:e3d9ecf7-d244-0a94-a61c-48f1ab70629a |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | CA3C:9B927:1BBF919:282F7D6:6A4CFB79 |
| html-safe-nonce | 7c7a67012e6959c1eeac98c5eb60ce1c9a6cdb717d1183e04ced5d9620072696 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQTNDOjlCOTI3OjFCQkY5MTk6MjgyRjdENjo2QTRDRkI3OSIsInZpc2l0b3JfaWQiOiI2MzQ0Mzc5MDg3MDIwOTQ4MzQ1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | b6953e83b9ab22e2cfe1476d9dfdfc18045606b08491b7d2c0c752269a3b42bb |
| hovercard-subject-tag | pull_request:3496030059 |
| 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/1839/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 | Agents were configuring prek hooks with files: ^(src|tests)/ instead of using types filters or pass_filenames, silently missing violations outside those directories. Changes usethis-prek-add-hook ... |
| 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