Title: Add `--no-sync` flag to avoid syncing the virtual environment (declare only) by Copilot · Pull Request #1766 · usethis-python/usethis-python · GitHub
Open Graph Title: Add `--no-sync` flag to avoid syncing the virtual environment (declare only) by Copilot · Pull Request #1766 · usethis-python/usethis-python
X Title: Add `--no-sync` flag to avoid syncing the virtual environment (declare only) by Copilot · Pull Request #1766 · usethis-python/usethis-python
Description: Adds a --no-sync CLI flag that declares/undeclares dependencies in pyproject.toml without touching the virtual environment. Analogous to uv add --no-sync. When active, an instruction message tells the user to manually install/uninstall: $ usethis tool ruff --no-sync ✔ Adding dependency 'ruff' to the 'lint' group in 'pyproject.toml'. ☐ Install the dependency 'ruff'. Config & CLI NO_SYNC_DEFAULT, no_sync field on UsethisConfig, wired through set() context manager no_sync_opt typer option added to all 11 interface files that already support --frozen --frozen and --no-sync can be used simultaneously; --frozen naturally takes precedence since it is strictly stronger (prevents both lockfile updates and syncing) Backend subprocess wrappers uv: passes --no-sync to uv add/uv remove; when both --frozen and --no-sync are set, --frozen takes precedence via the elif chain poetry: passes --lock to poetry add/poetry remove Dependency messaging (_deps.py) add_deps_to_group: prints install instruction when no_sync (same pattern as frozen) remove_deps_from_group: prints uninstall instruction when no_sync Tests call_uv_subprocess: --no-sync added for add/remove, --frozen precedence over --no-sync verified call_poetry_subprocess: --lock added for add/remove, not added for other commands add_deps_to_group / remove_deps_from_group: output messages verified with no_sync=True UsethisConfig: TestFrozenAndNoSync validates both flags can be set simultaneously, and success when only one is set
Open Graph Description: Adds a --no-sync CLI flag that declares/undeclares dependencies in pyproject.toml without touching the virtual environment. Analogous to uv add --no-sync. When active, an instruction message tells ...
X Description: Adds a --no-sync CLI flag that declares/undeclares dependencies in pyproject.toml without touching the virtual environment. Analogous to uv add --no-sync. When active, an instruction message tells ...
Opengraph URL: https://github.com/usethis-python/usethis-python/pull/1766
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:69ddb5d2-ef9e-be5b-0a41-71db83d78253 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D670:FCF93:210ADC:306579:6A4E0064 |
| html-safe-nonce | 07670f1966b69b8d7473da6e6cff0b1431e69f50f10caaeb210da1806b13f838 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENjcwOkZDRjkzOjIxMEFEQzozMDY1Nzk6NkE0RTAwNjQiLCJ2aXNpdG9yX2lkIjoiMzg3NjcxMTAwODY5ODIzNzAyOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4e16a1484e1e57903b31eea81337e3462c453f237205def066622e2553c0a0bf |
| hovercard-subject-tag | pull_request:3480085342 |
| 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/1766/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 | Adds a --no-sync CLI flag that declares/undeclares dependencies in pyproject.toml without touching the virtual environment. Analogous to uv add --no-sync. When active, an instruction message tells ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | df0492960db29b4938cb72070351d6b1d0c6c0767b27ceb8394bbf4fcc0223c6 |
| 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 | 52bde38e24398476f8eb1e0760c81346c6a00812 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width