Skip to content

Commit 765f1d9

Browse files
committed
file name changes and import linting
1 parent d546f20 commit 765f1d9

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tools/image_to_ascii.py

+6-4
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@
44
# https://github.com/o2sh/onefetch/wiki/ASCII-Art-From-Image-Using-Python-Image-Library/9c454b390273ffedd60db9d525fb001f89d581b1
55

66
# lint with
7-
# flake8 --max-line-length 120 ASCII_art_from_image.py
8-
# black --diff --color ASCII_art_from_image.py
7+
# flake8 --max-line-length 120 image_to_ascii.py
8+
# black --color --diff image_to_ascii.py
9+
# isort --color --diff image_to_ascii.py
910

1011
from argparse import ArgumentParser
11-
from PIL import Image, ImageDraw
1212
from math import floor
1313

14+
from PIL import Image, ImageDraw
15+
1416
__version__ = "1.0.0"
1517

1618
parser = ArgumentParser(description="convert an image file to ASCII art")
@@ -41,7 +43,7 @@
4143
"--version",
4244
help="show version",
4345
action="version",
44-
version="ASCII_art_from_image.py {}".format(__version__),
46+
version="image_to_ascii.py {}".format(__version__),
4547
)
4648
args = parser.parse_args()
4749

0 commit comments

Comments
 (0)