Skip to content

Commit

Permalink
hello
Browse files Browse the repository at this point in the history
  • Loading branch information
sco1 committed Jul 19, 2023
1 parent 56b9f43 commit 43a44c1
Show file tree
Hide file tree
Showing 6 changed files with 193 additions and 131 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ci:

repos:
- repo: https://github.com/psf/black
rev: 23.3.0
rev: 23.7.0
hooks:
- id: black
- repo: https://github.com/pycqa/isort
Expand Down
31 changes: 31 additions & 0 deletions dropmate_py/cli.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
from pathlib import Path

import typer

MIN_ALT_LOSS = 200
MIN_FIRMWARE = 5

dropmate_cli = typer.Typer(add_completion=False)


@dropmate_cli.command()
def audit(
log_filepath: Path = typer.Option(exists=True, file_okay=True, dir_okay=False),
min_alt_loss: int = typer.Option(default=MIN_ALT_LOSS),
min_firmware: float = typer.Option(default=MIN_FIRMWARE)
) -> None:
raise NotImplementedError


@dropmate_cli.command()
def audit_bulk(
log_dir: Path = typer.Option(exists=True, file_okay=False, dir_okay=True),
log_pattern: str = typer.Option("*.csv"),
min_alt_loss: int = typer.Option(default=MIN_ALT_LOSS),
min_firmware: float = typer.Option(default=MIN_FIRMWARE)
) -> None:
raise NotImplementedError


if __name__ == "__main__":
dropmate_cli()
1 change: 1 addition & 0 deletions dropmate_py/parser.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from pathlib import Path
Loading

0 comments on commit 43a44c1

Please sign in to comment.