assume-framework / assume

ASSUME - Agent-based Simulation for Studying and Understanding Market Evolution
https://assume.readthedocs.io
20 stars 5 forks source link

add assume_cli as a package using assume #331

Closed maurerle closed 4 months ago

maurerle commented 4 months ago

It is needed to be an extra package so that the completion is fast when using assume -h for example.

Without this, it tries to do from cli import cli, while cli is not an installed package, just a script lying around. This makes it possible to run scenarios in other folders than the cloned one too.

For examples using assume -i . -s my_example -c tiny works, if I created one myself.

This also correctly sets the -l LOGLEVEL switch to set the same level output on the stdout output as in the log_file

codecov[bot] commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 77.36%. Comparing base (40d7692) to head (afd7db5). Report is 1 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #331 +/- ## ========================================== + Coverage 77.33% 77.36% +0.02% ========================================== Files 43 43 Lines 5013 5018 +5 ========================================== + Hits 3877 3882 +5 Misses 1136 1136 ``` | [Flag](https://app.codecov.io/gh/assume-framework/assume/pull/331/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=assume-framework) | Coverage Δ | | |---|---|---| | [pytest](https://app.codecov.io/gh/assume-framework/assume/pull/331/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=assume-framework) | `77.36% <100.00%> (+0.02%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=assume-framework#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.