Skip to content

Commit

Permalink
Avoid violating E712
Browse files Browse the repository at this point in the history
  • Loading branch information
emileferreira committed Jan 31, 2024
1 parent fa9ddbb commit 276ded8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ jobs:
with:
arguments: >-
--exclude=.svn,CVS,.bzr,.hg,.git,zzantlr
--ignore=E121,E123,E126,E133,E226,E241,E242,E704,W503,W504,W505,W191,E101,E128,E712
--ignore=E121,E123,E126,E133,E226,E241,E242,E704,W503,W504,W505,W191,E101,E128
5 changes: 3 additions & 2 deletions RASP_support/Sugar.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,9 @@ def asbool(seq):

def tplnot(seq, name=None):
# this one does correct conversion using asbool and then we really can just
# do ==False
res = asbool(seq) == False
# do == False
pep8hack = False # this avoids violating E712 of PEP8
res = asbool(seq) == pep8hack
return _addname(res, name, "( not " + str(seq.name) + " )")


Expand Down

0 comments on commit 276ded8

Please sign in to comment.