Skip to content

Commit

Permalink
update verify hash and update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Adi3g committed Jan 15, 2025
1 parent 9dac2a0 commit 840958f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions nox/commands/hash_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def generate(file_path, text_to_hash, algorithm):
manager = HashManager()

if file_path and text_to_hash:
click.echo("Error: Please provide either --file or --text, not both.")
click.echo('Error: Please provide either --file or --text, not both.')
return

if file_path:
Expand All @@ -42,7 +42,8 @@ def generate(file_path, text_to_hash, algorithm):
if text_hash:
click.echo(f"{algorithm.upper()} hash for text: {text_hash}")
else:
click.echo("Error: Please provide either --file or --text.")
click.echo('Error: Please provide either --file or --text.')


@click.command()
@click.option(
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ docker==7.1.0
flake8==7.1.1
flake8-annotations==3.1.1
flake8-mypy==17.8.0
moto
mypy==1.11.1
mypy-extensions==1.0.0
pre-commit==3.8.0
Expand All @@ -22,4 +23,3 @@ SQLAlchemy==2.0.32
tqdm==4.66.5
types-requests>=2.28.11
whois==1.20240129.2
moto

0 comments on commit 840958f

Please sign in to comment.