Title: Improve CI infrastructure for pre-commit by EliahKagan · Pull Request #2110 · gitpython-developers/GitPython · GitHub
Open Graph Title: Improve CI infrastructure for pre-commit by EliahKagan · Pull Request #2110 · gitpython-developers/GitPython
X Title: Improve CI infrastructure for pre-commit by EliahKagan · Pull Request #2110 · gitpython-developers/GitPython
Description: On CI, the pre-commit job has two shortcomings: It runs on a machine far more powerful than necessary, since anything slow should not be done in pre-commit at all (since some developers may run pre-commit locally). We've haven't been using any automated means of keeping the pre-commit hook versions up to date, and as a results some of them are quite old. This includes ruff. (There is an external integration that can keep pre-commit hooks up to date on GitHub, but it requires providing access to the repository to an external service. This is sometimes a tradeoff worth making, but it's one we've avoided doing here for this purpose, I think rightly.) These have both become easier to address recently: A lighter-weight ubuntu-slim runner is available. Running it on that should work as well and be as fast, and give an indication that we're doing too much in pre-commit if that is ever not the case. It also frees up an ubuntu-latest runner, potentially making CI finish slightly earlier in some PRs where there have been a lot of pushes. Dependabot now supports pre-commit as a beta ecosystem, so it can keep them up to date. I've tested this in my fork; the resulting grouped PR looks like EliahKagan#5. It's not ideal that the ecosystem is still in beta, but I think it's worth using--and if it turns out to have bugs I haven't yet observed, then this is an oppportunity for me to report them. This PR uses the ubuntu-slim runner to run pre-commit on CI, and enables Dependabot version updates for pre-commit hooks.
Open Graph Description: On CI, the pre-commit job has two shortcomings: It runs on a machine far more powerful than necessary, since anything slow should not be done in pre-commit at all (since some developers may run pr...
X Description: On CI, the pre-commit job has two shortcomings: It runs on a machine far more powerful than necessary, since anything slow should not be done in pre-commit at all (since some developers may run pr...
Opengraph URL: https://github.com/gitpython-developers/GitPython/pull/2110
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:3d6cc892-1842-f68a-b163-93dd15916806 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B352:3EC020:59EEC1:82A3A9:6A55E461 |
| html-safe-nonce | 0624573fe9a7592cc0da18e3db16438feac081c1ee563b1c45090c970661a48a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMzUyOjNFQzAyMDo1OUVFQzE6ODJBM0E5OjZBNTVFNDYxIiwidmlzaXRvcl9pZCI6IjY0MzcxMTU2NDcyMTQ2MDk1MDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 6c4f2f8b94256b8aab497017ef85b9b27ae999f4ffe1b7275aa505c03bce661d |
| hovercard-subject-tag | pull_request:3375090692 |
| 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/gitpython-developers/GitPython/pull/2110/files |
| twitter:image | https://avatars.githubusercontent.com/u/1771172?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1771172?s=400&v=4 |
| og:image:alt | On CI, the pre-commit job has two shortcomings: It runs on a machine far more powerful than necessary, since anything slow should not be done in pre-commit at all (since some developers may run pr... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b5665c84831ed9ac4fb79519c16c9c5580ba8092fb8bb6e3e72972ec7197348e |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/gitpython-developers/GitPython git https://github.com/gitpython-developers/GitPython.git |
| octolytics-dimension-user_id | 503709 |
| octolytics-dimension-user_login | gitpython-developers |
| octolytics-dimension-repository_id | 1126087 |
| octolytics-dimension-repository_nwo | gitpython-developers/GitPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1126087 |
| octolytics-dimension-repository_network_root_nwo | gitpython-developers/GitPython |
| 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 | 3725c7f9b2a6e3a27ef57c5aed13428c0f65e045 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width