Skip to content

Added network hint#629

Merged
evgeny-stakewise merged 2 commits intomasterfrom
add-network-hint
Jan 5, 2026
Merged

Added network hint#629
evgeny-stakewise merged 2 commits intomasterfrom
add-network-hint

Conversation

@evgeny-stakewise
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings January 5, 2026 13:23
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 improves the user experience for network parameter handling across multiple commands by removing the default network value and adding clearer error messages. The changes ensure users either specify a network explicitly or run the "init" command first.

Key Changes:

  • Removed DEFAULT_NETWORK import and default value from submit_rated_network command
  • Added validation to check for missing network parameter before attempting to use it
  • Applied consistent error handling pattern across submit_rated_network, exit_validators, and consolidate commands

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/commands/submit_rated_network.py Updated network parameter to be optional, removed default value, added validation with helpful error message, and improved help text
src/commands/exit_validators.py Added validation to ensure network is provided or init command has been run
src/commands/consolidate.py Added validation to ensure network is provided or init command has been run

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@evgeny-stakewise evgeny-stakewise merged commit fd1e28f into master Jan 5, 2026
8 checks passed
@evgeny-stakewise evgeny-stakewise deleted the add-network-hint branch January 5, 2026 13:57
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.

3 participants