Cloud-CV / Cloud-CV/evalai-cli

Remove replication of code to get_token command.

Open
#223 10 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
57
Forks
70
PR merge metrics
No merged PRs in 30d

Description

There are two separate blocks of code which perform the same task -

1. https://github.com/Cloud-CV/evalai-cli/blob/master/evalai/utils/auth.py#L53

2. https://github.com/Cloud-CV/evalai-cli/blob/master/evalai/get_token.py

Remove replication of code.

Contributor guide

Open the contributing guide

Research direction

Compare the two referenced implementations in evalai/utils/auth.py around line 53 and evalai/get_token.py, starting with how the get_token command reaches each block. Consolidate the repeated task so only one implementation remains, while preserving the command's existing behavior. Done when the duplicate code is removed and get_token still works.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Refactor
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.