Skip to content

Commit

Permalink
Add default asv version for backward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
camposandro committed Oct 31, 2023
1 parent 800f039 commit d94cdf6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ignore:
- "src/lf_asv_formatter/_version.py"
- "src/lf_asv_formatter/__main__.py"
3 changes: 2 additions & 1 deletion src/lf_asv_formatter/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
def parse_asv_version():
"""Parses asv version from command line arguments."""
parser = argparse.ArgumentParser("lf_asv_formatter")
parser.add_argument("--asv_version", help="Version of asv", type=str, required=True)
# asv defaults to v0.5.1 for backward compatibility
parser.add_argument("--asv_version", help="Version of asv", type=str, default="0.5.1")
return parser.parse_args().asv_version


Expand Down

0 comments on commit d94cdf6

Please sign in to comment.