feat(init): deprecate --no-git flag, gate deprecations at v0.10.0#2357
Merged
mnriem merged 3 commits intogithub:mainfrom Apr 24, 2026
Merged
feat(init): deprecate --no-git flag, gate deprecations at v0.10.0#2357mnriem merged 3 commits intogithub:mainfrom
mnriem merged 3 commits intogithub:mainfrom
Conversation
- Add deprecation warning when --no-git is used on specify init - Update --ai deprecation gate from 1.0.0 to 0.10.0 - Update test expectation for the new version gate Closes github#2167
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates CLI deprecation messaging in specify init: it deprecates --no-git (while keeping behavior unchanged for now) and changes the --ai deprecation gate to v0.10.0.
Changes:
- Update
--aideprecation warning text to reference removal at0.10.0. - Add a new deprecation warning emitted when
--no-gitis used. - Update an integration CLI test expectation from
1.0.0to0.10.0.
Show a summary per file
| File | Description |
|---|---|
src/specify_cli/__init__.py |
Updates --ai deprecation message and adds a --no-git deprecation warning print. |
tests/integrations/test_cli.py |
Updates --ai deprecation warning assertion to expect 0.10.0. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 2/2 changed files
- Comments generated: 2
- Update --no-git deprecation message to reference existing 'specify extension' commands instead of non-existent --extension flag - Add test_no_git_emits_deprecation_warning CLI test
Contributor
There was a problem hiding this comment.
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 2/2 changed files
- Comments generated: 1
Add assertions unique to the --no-git message ('will be removed',
'git extension will no longer be enabled by default') to prevent
false positives from the --ai deprecation panel.
Contributor
There was a problem hiding this comment.
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 2/2 changed files
- Comments generated: 1
Contributor
There was a problem hiding this comment.
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 2/2 changed files
- Comments generated: 0 new
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Deprecates the
--no-gitflag onspecify initand updates all deprecation version gates from 1.0.0 to 0.10.0.Changes
--no-gitdeprecation warning: When--no-gitis used, emits a visible warning: "--aideprecation gate: Changed from1.0.0to0.10.0in the deprecation messagetest_ai_emits_deprecation_warning_with_integration_replacementto expect0.10.0Behavior
--no-gitcontinues to function as before (non-breaking)--no-gitis usedCloses #2167