Skip to content

Commit

Permalink
Fix flake8 config and style for flake8 6
Browse files Browse the repository at this point in the history
  • Loading branch information
gmarkall committed Feb 6, 2023
1 parent b40a72a commit 1f4c397
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
21 changes: 14 additions & 7 deletions .flake8
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
[flake8]
ignore =
E20, # Extra space in brackets
E231,E241, # Multiple spaces around ","
E26, # Comments
E731, # Assigning lambda expression
E741, # Ambiguous variable names
W503, # line break before binary operator
W504, # line break after binary operator
# Extra space in brackets
E20,
# Multiple spaces around ","
E231,E241,
# Comments
E26,
# Assigning lambda expression
E731,
# Ambiguous variable names
E741,
# line break before binary operator
W503,
# line break after binary operator
W504,
max-line-length = 80

exclude =
Expand Down
4 changes: 2 additions & 2 deletions llvmlite/ir/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ def wrapped(self, operand, flag, name=''):
raise TypeError(
"expected an integer type, got %s" %
operand.type)
if not(isinstance(flag.type, types.IntType) and
flag.type.width == 1):
if not (isinstance(flag.type, types.IntType) and
flag.type.width == 1):
raise TypeError("expected an i1 type, got %s" % flag.type)
fn = self.module.declare_intrinsic(
opname, [operand.type, flag.type])
Expand Down

0 comments on commit 1f4c397

Please sign in to comment.