Skip to content

Commit

Permalink
remove os from _generate module, and desc for cli
Browse files Browse the repository at this point in the history
  • Loading branch information
LVivona committed Jan 9, 2024
1 parent 538bf0a commit acd7325
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions identicons/_generate/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from rich.console import Console
from rich.traceback import install
import os
import numpy as np
from PIL import Image
import hashlib
Expand Down Expand Up @@ -80,7 +79,7 @@ def save(icon: np.ndarray, filepath: str, height: int, width: int):
assert 100 <= height, f"{height} is far two small, the minimum height is 100 pixels"
assert 100 <= width, f"{width} is far two small, the minimum width is 100 pixels"
assert filepath.lower().endswith(('.png', '.jpg', '.jpeg'))

i, j = icon.shape[:2]
h, w = height // i, width // j
large_identicon = np.repeat(icon, h, axis=0)
Expand Down
2 changes: 1 addition & 1 deletion identicons/cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

def main():

parser = argparse.ArgumentParser(description=f'CLI tool.')
parser = argparse.ArgumentParser(description=f'identicons CLI tool that allow you to interface with the package and generate your identicons via command line.')
parser.add_argument(
'-t', '--text',
required=True,
Expand Down

0 comments on commit acd7325

Please sign in to comment.