Skip to content

Comments

Fix bugs in CLI and codegen#1244

Merged
droserasprout merged 6 commits intonextfrom
fix/init-bugs
Apr 28, 2025
Merged

Fix bugs in CLI and codegen#1244
droserasprout merged 6 commits intonextfrom
fix/init-bugs

Conversation

@droserasprout
Copy link
Collaborator

No description provided.

@droserasprout droserasprout added this to the 8.3.3 milestone Apr 27, 2025
@droserasprout droserasprout added the bug Something isn't working label Apr 27, 2025
Copy link
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 fixes bugs in the CLI and codegen components while improving package name handling and consolidating code generation logic. Key changes include:

  • Updating functions to accept an optional package parameter and using it to determine the default package name.
  • Refactoring the codegen module to differentiate common and specialized generators and cleaning up duplicate implementations.
  • Adjusting CLI options (help texts and flags) and updating related documentation and changelogs.

Reviewed Changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/dipdup/project.py Updated get_default_answers and answers_from_terminal to accept a package param.
src/dipdup/dipdup.py Rearranged initialization logic and added conditional logic for full init.
src/dipdup/context.py Minor reordering of import statements.
src/dipdup/codegen/init.py Refactored abstract methods and merged duplicate code into common generator class.
src/dipdup/cli.py Revised CLI option texts and added new project name option.
pyproject.toml Pinned dependency version with a comment fix.
docs/* Updated release notes, CLI references, and changelog entries.

@droserasprout droserasprout merged commit 9f038a1 into next Apr 28, 2025
5 checks passed
@droserasprout droserasprout deleted the fix/init-bugs branch April 28, 2025 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant