Skip to content

Hotfix/cli bug #758

Merged
merged 7 commits into from
Jun 21, 2022
Merged

Hotfix/cli bug #758

merged 7 commits into from
Jun 21, 2022

Conversation

iKintosh
Copy link
Contributor

@iKintosh iKintosh commented Jun 17, 2022

IMPORTANT: Please do not create a Pull Request without creating an issue first.

Before submitting (must do checklist)

  • Did you read the contribution guide?
  • Did you update the docs? We use Numpy format for all the methods and classes.
  • Did you write any new necessary tests?
  • Did you update the CHANGELOG?

Type of Change

  • Examples / docs / tutorials / contributors update
  • Bug fix (non-breaking change which fixes an issue)
  • Improvement (non-breaking change which improves an existing feature)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Proposed Changes

Related Issue

Closing issues

@github-actions
Copy link

github-actions bot commented Jun 17, 2022

🚀 Deployed on https://deploy-preview-758--etna-docs.netlify.app

@github-actions github-actions bot temporarily deployed to pull request June 17, 2022 13:34 Inactive
@github-actions github-actions bot temporarily deployed to pull request June 17, 2022 13:43 Inactive
@codecov-commenter
Copy link

codecov-commenter commented Jun 17, 2022

Codecov Report

Merging #758 (82b4832) into master (4b034be) will decrease coverage by 32.77%.
The diff coverage is 0.00%.

@@             Coverage Diff             @@
##           master     #758       +/-   ##
===========================================
- Coverage   83.50%   50.72%   -32.78%     
===========================================
  Files         122      122               
  Lines        6734     6746       +12     
===========================================
- Hits         5623     3422     -2201     
- Misses       1111     3324     +2213     
Impacted Files Coverage Δ
etna/commands/backtest_command.py 0.00% <0.00%> (-96.43%) ⬇️
etna/commands/forecast_command.py 0.00% <0.00%> (-93.94%) ⬇️
etna/commands/__init__.py 0.00% <0.00%> (-100.00%) ⬇️
etna/commands/__main__.py 0.00% <0.00%> (-87.50%) ⬇️
etna/commands/resolvers.py 0.00% <0.00%> (-80.00%) ⬇️
etna/analysis/outliers/density_outliers.py 22.44% <0.00%> (-75.52%) ⬇️
etna/datasets/datasets_generation.py 27.02% <0.00%> (-72.98%) ⬇️
etna/transforms/timestamp/time_flags.py 27.02% <0.00%> (-72.98%) ⬇️
... and 72 more

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

@@ -19,6 +23,12 @@ def backtest(
freq: str = typer.Argument(..., help="frequency of timestamp in files in pandas format"),
output_path: Path = typer.Argument(..., help="where to save forecast"),
exog_path: Optional[Path] = typer.Argument(default=None, help="path to csv with exog data"),
known_future: Optional[List[str]] = typer.Argument(
None,
Copy link
Contributor

Choose a reason for hiding this comment

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

why not default="all"?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because "all" is not List. And Typer does not support Union. So I can only configure it like this "all" if not known_future else known_future

Copy link
Contributor

@martins0n martins0n Jun 17, 2022

Choose a reason for hiding this comment

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

Why not?
It's normal workaround I guess

@github-actions github-actions bot temporarily deployed to pull request June 17, 2022 13:51 Inactive
Copy link
Contributor

@julia-shenshina julia-shenshina left a comment

Choose a reason for hiding this comment

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

how about tests?

@iKintosh iKintosh self-assigned this Jun 20, 2022
@github-actions github-actions bot temporarily deployed to pull request June 21, 2022 11:28 Inactive
@iKintosh iKintosh merged commit e40ed7a into master Jun 21, 2022
@iKintosh iKintosh deleted the hotfix/cli-bug branch June 21, 2022 14:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants