Title: Use newer ruff style by EliahKagan · Pull Request #2031 · gitpython-developers/GitPython · GitHub
Open Graph Title: Use newer ruff style by EliahKagan · Pull Request #2031 · gitpython-developers/GitPython
X Title: Use newer ruff style by EliahKagan · Pull Request #2031 · gitpython-developers/GitPython
Description: This updates ruff in .pre-commit-config.yaml from 0.6.0 to 0.11.12, changes its id from the legacy ruff alias to ruff-check (which is better distinguished from ruff-format, which we also have a hook for), and applies the few style changes it newly recommends throughout the code. The style changes seem to make things slightly clearer overall. This also updates some other pre-commit hooks, but those don't require any changes to the code. Currently the ruff dependency in requirements-dev.txt doesn't specify a version, so no change is needed there. This update may be seen as bringing the pre-commit version in line with what users will usually have locally with pip install -e ".[test]". The pre-commit hooks are how linting is currently done on CI, so this is updating ruff for CI. That's the most significant effect of this change. (pre-commit is run for linting on CI probably much more often than it is used locally, to manage pre-commit hooks or otherwise, in GitPython development.) This works locally and on CI, but I'll still wait for all checks to pass before merging.
Open Graph Description: This updates ruff in .pre-commit-config.yaml from 0.6.0 to 0.11.12, changes its id from the legacy ruff alias to ruff-check (which is better distinguished from ruff-format, which we also have a hoo...
X Description: This updates ruff in .pre-commit-config.yaml from 0.6.0 to 0.11.12, changes its id from the legacy ruff alias to ruff-check (which is better distinguished from ruff-format, which we also have a hoo...
Opengraph URL: https://github.com/gitpython-developers/GitPython/pull/2031
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:52e24a72-98fb-f990-2c09-a41636d75f3d |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | EBCA:E339F:28F3:31F1:69688A1B |
| html-safe-nonce | fa93e3307d0e1515a6c80c5f54c3a19b67d5f4f95f68eab6b35602354ed43d6c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQkNBOkUzMzlGOjI4RjM6MzFGMTo2OTY4OEExQiIsInZpc2l0b3JfaWQiOiIyNjc2ODYzODUxMDQxNDI1OTQ4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | faf7cec2987b0e50bd6cf090c90549ad522ed6c50fd706ab11fccd0706443312 |
| hovercard-subject-tag | pull_request:2555223324 |
| 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/2031/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 | This updates ruff in .pre-commit-config.yaml from 0.6.0 to 0.11.12, changes its id from the legacy ruff alias to ruff-check (which is better distinguished from ruff-format, which we also have a hoo... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 50f46dc2d6192249fd8ebf20e76c800f4f2596d4a5f3ab63dd63a754df154f54 |
| 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 | fef287f17234b4529a4b112a3d47fe8551e32ddd |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width