Title: Add no-backend equivalent of `test_several_tools_add_and_remove` benchmark by Copilot · Pull Request #1856 · usethis-python/usethis-python · GitHub
Open Graph Title: Add no-backend equivalent of `test_several_tools_add_and_remove` benchmark by Copilot · Pull Request #1856 · usethis-python/usethis-python
X Title: Add no-backend equivalent of `test_several_tools_add_and_remove` benchmark by Copilot · Pull Request #1856 · usethis-python/usethis-python
Description: test_several_tools_add_and_remove is slow because it subprocesses uv. This adds a directly comparable benchmark that skips uv entirely using --backend=none, enabling meaningful performance comparisons between the two. Changes New benchmark test_several_tools_add_and_remove_no_backend in tests/usethis/_ui/interface/test_tool.py — identical tool sequence as the original but with --backend none on every invocation (~0.2s vs ~5s) Fix pre-existing check-agent-file-sizes violation — AGENTS.md was 514 lines against a 500-line limit; added --skip-private to the export-functions hook so only public-API functions appear in the agent reference (docs/functions.txt: 233→196 lines, AGENTS.md: 514→477 lines) @pytest.mark.benchmark def test_several_tools_add_and_remove_no_backend(tmp_path: Path): ... with change_cwd(tmp_path): result = runner.invoke_safe(app, ["pytest", "--backend", "none"]) result = runner.invoke_safe(app, ["coverage", "--backend", "none"]) result = runner.invoke_safe(app, ["ruff", "--backend", "none"]) result = runner.invoke_safe(app, ["deptry", "--backend", "none"]) result = runner.invoke_safe(app, ["pre-commit", "--backend", "none"]) result = runner.invoke_safe(app, ["ruff", "--remove", "--backend", "none"]) result = runner.invoke_safe(app, ["pyproject-fmt", "--backend", "none"]) result = runner.invoke_safe(app, ["pytest", "--remove", "--backend", "none"])
Open Graph Description: test_several_tools_add_and_remove is slow because it subprocesses uv. This adds a directly comparable benchmark that skips uv entirely using --backend=none, enabling meaningful performance comparis...
X Description: test_several_tools_add_and_remove is slow because it subprocesses uv. This adds a directly comparable benchmark that skips uv entirely using --backend=none, enabling meaningful performance comparis...
Opengraph URL: https://github.com/usethis-python/usethis-python/pull/1856
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:399fc74c-83ba-1362-6079-46e8b5a0a8e4 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E390:1956FA:1B01080:26FCB3B:6A4CFB8B |
| html-safe-nonce | 6763a60aab0635e1904758b9ece7db08d724c3e20a371a58b409ac984eff96dc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMzkwOjE5NTZGQToxQjAxMDgwOjI2RkNCM0I6NkE0Q0ZCOEIiLCJ2aXNpdG9yX2lkIjoiOTA0NTgzODgxMzgzODc2OTAzNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8a3947dc465e5f7ba2ecfef3ee2c9462427b8c0954c6fc865f319d14025b9fdb |
| hovercard-subject-tag | pull_request:3497068157 |
| 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/1856/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 | test_several_tools_add_and_remove is slow because it subprocesses uv. This adds a directly comparable benchmark that skips uv entirely using --backend=none, enabling meaningful performance comparis... |
| 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 |
| 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