Skip to content

Commit

Permalink
Silence remaining flake8 errors for now
Browse files Browse the repository at this point in the history
  • Loading branch information
bobh0303 committed Aug 7, 2024
1 parent 78ae343 commit 4105904
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/silfont/feax_ast.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ def asFea(g):
SHIFT = ast.SHIFT

def asLiteralFea(self, indent=""):
Element.mode = 'literal'
Element.mode = 'literal' # noqa: F821
return self.asFea(indent=indent)
Element.mode = 'flat'
Element.mode = 'flat' # noqa: F821

ast.Element.asLiteralFea = asLiteralFea
ast.Element.mode = 'flat'
ast.Element.mode = 'flat' # noqa: F821

class ast_Comment(ast.Comment):
def __init__(self, text, location=None):
Expand Down Expand Up @@ -365,7 +365,7 @@ def __init__(self, testfn, name, cond, location=None):

def asFea(self, indent=""):
if self.mode == 'literal':
res = "{}if{}({}) {{".format(indent, name, cond)
res = "{}if{}({}) {{".format(indent, name, cond) # noqa: F821
res += ast.Block.asFea(self, indent=indent)
res += indent + "}\n"
return res
Expand Down
4 changes: 2 additions & 2 deletions src/silfont/harfbuzz.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ def shape_text(f, text, features = [], lang=None, dir="", script="", shapers="")
feats = []
if len(features):
for feat_string in features:
if hb.feature_from_string(feat_string, -1, aFeats):
feats.append(aFeats)
if hb.feature_from_string(feat_string, -1, aFeats): # noqa: F821
feats.append(aFeats) # noqa: F821
if shapers:
hb.shape_full(font, buf, feats, shapers)
else:
Expand Down

0 comments on commit 4105904

Please sign in to comment.