Skip to content

Commit 47f0721

Browse files
committed
[app.py] adjust line length to < 90
1 parent de379e3 commit 47f0721

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

lib/fontline/app.py

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
#!/usr/bin/env python3
22

33
"""
4-
The app.py module defines a main() function that includes the logic for the `font-line` command line executable.
4+
The app.py module defines a main() function that includes the logic for the `font-line`
5+
command line executable.
56
6-
This command line executable modifies the line spacing metrics in one or more fonts that are provided as command
7+
This command line executable modifies the line spacing metrics in one or more fonts that
8+
are provided as command
79
line arguments to the executable. It currently supports .ttf and .otf font builds.
810
"""
911

@@ -20,9 +22,6 @@
2022
)
2123
from fontline.utilities import file_exists, is_supported_filetype
2224

23-
# TODO: support integer addition and subtraction to the metrics values through new sub-commands
24-
# TODO: JSON formatted metrics output
25-
2625

2726
def main():
2827
"""Defines the logic for the `font-line` command line executable"""
@@ -48,7 +47,8 @@ def main():
4847
if c.subcmd == "report":
4948
if c.argc < 2:
5049
stderr(
51-
"[font-line] ERROR: Missing file path argument(s) after the report subcommand."
50+
"[font-line] ERROR: Missing file path argument(s) after the "
51+
"report subcommand."
5252
)
5353
sys.exit(1)
5454
else:
@@ -84,13 +84,14 @@ def main():
8484
) # test that the argument can be cast to an integer value
8585
if percent_int <= 0:
8686
stderr(
87-
"[font-line] ERROR: Please enter a percent value that is greater than zero."
87+
"[font-line] ERROR: Please enter a percent value that is "
88+
"greater than zero."
8889
)
8990
sys.exit(1)
9091
if percent_int > 100:
9192
stdout(
92-
"[font-line] Warning: You entered a percent value over 100%. Please confirm that this is "
93-
"your intended metrics modification."
93+
"[font-line] Warning: You entered a percent value over 100%. "
94+
"Please confirm that this is your intended metrics modification."
9495
)
9596
except ValueError:
9697
stderr(
@@ -131,7 +132,7 @@ def main():
131132
)
132133
else:
133134
stderr(
134-
"[font-lines] ERROR: You used an unsupported argument to the executable. Please review the"
135-
" `font-line --help` documentation and try again."
135+
"[font-lines] ERROR: You used an unsupported argument to the executable. "
136+
"Please review the `font-line --help` documentation and try again."
136137
)
137138
sys.exit(1)

0 commit comments

Comments
 (0)