Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor Issues Fixed #178

Merged
merged 8 commits into from
Sep 15, 2021
Merged

Minor Issues Fixed #178

merged 8 commits into from
Sep 15, 2021

Conversation

sadrasabouri
Copy link
Collaborator

@sadrasabouri sadrasabouri commented Sep 9, 2021

What does this implement/fix? Explain your changes.

  • Minor pep8 violations
  • Some font filtering in font_wizard.py (bellow fonts)
INVALID_FONT_NAME = [
    "mix",
    "wizard",
    "wiz",
    "magic",
    "random",
    "random-na",
    "random-xlarge",
    "random-large",
    "random-medium",
    "random-small",
    "rand",
    "rand-na",
    "rand-xlarge",
    "rand-large",
    "rand-medium",
    "rand-small",
    "rnd",
    "rnd-na",
    "rnd-xlarge",
    "rnd-large",
    "rnd-medium",
    "rnd-small"]

@codecov-commenter
Copy link

codecov-commenter commented Sep 9, 2021

Codecov Report

Merging #178 (dec8fb3) into dev (1693570) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##              dev     #178   +/-   ##
=======================================
  Coverage   90.95%   90.95%           
=======================================
  Files           1        1           
  Lines         276      276           
  Branches       75       75           
=======================================
  Hits          251      251           
  Misses         23       23           
  Partials        2        2           
Impacted Files Coverage Δ
art/art.py 90.95% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1693570...dec8fb3. Read the comment docs.

@@ -58,7 +83,9 @@ def is_ascii(s):
font_name = input("Please enter font name : ")
if font_name in Font_List:
print(Error6)
else:
elif font_name in INVALID_FONT_NAME:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

font_name.lower() ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. You are right.

@@ -58,7 +83,9 @@ def is_ascii(s):
font_name = input("Please enter font name : ")
if font_name in Font_List:
print(Error6)
else:
elif font_name.lower() in INVALID_FONT_NAME:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor suggestion from my part :
I think here we can print Error6 instead of a new error message because it's not possible for us to print all reserved fonts for users.
My suggestion:

if font_name in Font_List or font_name.lower() in INVALID_FONT_NAME:
...

@sepandhaghighi sepandhaghighi added this to the art 5.4 milestone Sep 15, 2021
Copy link
Owner

@sepandhaghighi sepandhaghighi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 💯

@sepandhaghighi sepandhaghighi merged commit d976380 into dev Sep 15, 2021
@sepandhaghighi sepandhaghighi deleted the minor_issues branch September 15, 2021 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants