Title: Add `--no-apply` option to formatter commands with side effects by Copilot · Pull Request #1764 · usethis-python/usethis-python · GitHub
Open Graph Title: Add `--no-apply` option to formatter commands with side effects by Copilot · Pull Request #1764 · usethis-python/usethis-python
X Title: Add `--no-apply` option to formatter commands with side effects by Copilot · Pull Request #1764 · usethis-python/usethis-python
Description: usethis format, usethis tool ruff, and usethis tool pyproject-fmt run formatters as a side effect when adding them. This adds a --no-apply flag to skip that step. usethis tool ruff --no-apply # configures ruff without running `ruff format` usethis tool pyproject-fmt --no-apply # configures pyproject-fmt without running it usethis format --no-apply # adds both formatters without running either Changes _ui/options.py — New no_apply_opt Typer option _core/tool.py — no_apply param on use_ruff() and use_pyproject_fmt(), guarding tool.apply() calls _toolset/format_.py — no_apply param on use_formatters(), forwarded to both tool functions _ui/interface/format_.py, _ui/interface/tool.py — Wire --no-apply into the three CLI commands Tests — Core-level and CLI-level tests for all three commands verifying the formatter is skipped
Open Graph Description: usethis format, usethis tool ruff, and usethis tool pyproject-fmt run formatters as a side effect when adding them. This adds a --no-apply flag to skip that step. usethis tool ruff --no-apply ...
X Description: usethis format, usethis tool ruff, and usethis tool pyproject-fmt run formatters as a side effect when adding them. This adds a --no-apply flag to skip that step. usethis tool ruff --no-apply ...
Opengraph URL: https://github.com/usethis-python/usethis-python/pull/1764
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:e85197c0-8707-c92f-b441-71a559ca6561 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C5D4:E0C3F:F0B55:15933C:6A4CFBA8 |
| html-safe-nonce | 312300fcda066db62e552f1a0dca7b3bbf0fa21793692f401512d4ee064ce620 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNUQ0OkUwQzNGOkYwQjU1OjE1OTMzQzo2QTRDRkJBOCIsInZpc2l0b3JfaWQiOiIyMzQyNTg2MTM4Mzg2ODI0MTA0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | cedd73f4cb4252943ca94a74df8aa8c1dc97823ffbaf814e4e1678ea1439c4e9 |
| hovercard-subject-tag | pull_request:3480013944 |
| 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/1764/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 | usethis format, usethis tool ruff, and usethis tool pyproject-fmt run formatters as a side effect when adding them. This adds a --no-apply flag to skip that step. usethis tool ruff --no-apply ... |
| 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