Skip to content

feat(init): deprecate --no-git flag, gate deprecations at v0.10.0#2357

Merged
mnriem merged 3 commits intogithub:mainfrom
mnriem:feat/deprecate-no-git-2167
Apr 24, 2026
Merged

feat(init): deprecate --no-git flag, gate deprecations at v0.10.0#2357
mnriem merged 3 commits intogithub:mainfrom
mnriem:feat/deprecate-no-git-2167

Conversation

@mnriem
Copy link
Copy Markdown
Collaborator

@mnriem mnriem commented Apr 24, 2026

Summary

Deprecates the --no-git flag on specify init and updates all deprecation version gates from 1.0.0 to 0.10.0.

Changes

  • Add --no-git deprecation warning: When --no-git is used, emits a visible warning: "⚠️ --no-git is deprecated and will be removed in v0.10.0. The git extension will no longer be enabled by default — enable the Git extension after init"
  • Update --ai deprecation gate: Changed from 1.0.0 to 0.10.0 in the deprecation message
  • Update test: Updated test_ai_emits_deprecation_warning_with_integration_replacement to expect 0.10.0

Behavior

  • --no-git continues to function as before (non-breaking)
  • A deprecation warning is now printed when --no-git is used
  • All 1714 tests pass

Closes #2167

- 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
Copilot AI review requested due to automatic review settings April 24, 2026 18:24
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 --ai deprecation warning text to reference removal at 0.10.0.
  • Add a new deprecation warning emitted when --no-git is used.
  • Update an integration CLI test expectation from 1.0.0 to 0.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

Comment thread src/specify_cli/__init__.py Outdated
Comment thread src/specify_cli/__init__.py
- 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
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Comment thread tests/integrations/test_cli.py
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.
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Comment thread src/specify_cli/__init__.py
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@mnriem mnriem merged commit 03f3024 into github:main Apr 24, 2026
19 checks passed
@mnriem mnriem deleted the feat/deprecate-no-git-2167 branch April 24, 2026 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deprecate --no-git flag on specify init (removal at 0.10.0)

2 participants