Skip to content

Refactor#73

Merged
sadrasabouri merged 6 commits intodevfrom
refactor
Feb 25, 2026
Merged

Refactor#73
sadrasabouri merged 6 commits intodevfrom
refactor

Conversation

@sepandhaghighi
Copy link
Member

Reference Issues/PRs

What does this implement/fix? Explain your changes.

  • CLI functions moved to cli.py

Any other comments?

Local tests on OSs

  • macOS
    • Sonoma
  • Windows
    • Windows 11
  • Linux
    • Ubuntu 22.04

@sepandhaghighi sepandhaghighi self-assigned this Feb 22, 2026
@sepandhaghighi sepandhaghighi added this to the nava v0.9 milestone Feb 22, 2026
@codecov
Copy link

codecov bot commented Feb 22, 2026

Codecov Report

❌ Patch coverage is 30.55556% with 25 lines in your changes missing coverage. Please review.
✅ Project coverage is 81.07%. Comparing base (266ad83) to head (3e6d3e5).
⚠️ Report is 1 commits behind head on dev.

Files with missing lines Patch % Lines
nava/cli.py 24.25% 25 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev      #73      +/-   ##
==========================================
- Coverage   88.02%   81.07%   -6.95%     
==========================================
  Files           4        5       +1     
  Lines         267      301      +34     
  Branches       36       39       +3     
==========================================
+ Hits          235      244       +9     
- Misses         28       53      +25     
  Partials        4        4              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sepandhaghighi sepandhaghighi marked this pull request as ready for review February 22, 2026 22:37
@sepandhaghighi sepandhaghighi requested review from sadrasabouri and removed request for sadrasabouri February 22, 2026 22:45
parser.add_argument('--loop', help='sound play in loop', action='store_true', default=False)
parser.add_argument('--version', help="version", action='store_true', default=False)
parser.add_argument('-v', help="version", action='store_true', default=False)
args = parser.parse_known_args()[0]
Copy link
Member

Choose a reason for hiding this comment

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

why we do have parse_known_args here?

Copy link
Member Author

Choose a reason for hiding this comment

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

It appears that the first argument (filename) is positional, suggesting that parse_known_args should be used.

Copy link
Member

@sadrasabouri sadrasabouri left a comment

Choose a reason for hiding this comment

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

Looks good, I left two minor comments. Additionally it looks the --file is redundant since we have [FILE_PATH] there anyways.

else:
tprint("Nava")
tprint("V:" + NAVA_VERSION)
nava_help()
Copy link
Member

Choose a reason for hiding this comment

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

is that ok we remove parser.print_help()?

Copy link
Member Author

Choose a reason for hiding this comment

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

Calling parser.print_help() may not be incorrect, but it's not my personal preference.

@sadrasabouri sadrasabouri merged commit 1ab7e6e into dev Feb 25, 2026
34 of 35 checks passed
@sadrasabouri sadrasabouri deleted the refactor branch February 25, 2026 03:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants