ruff: else-raise and else-return (#5175)

* ruff: enable else-raise and else-return

* ruff: add error names

* fix order

---------

Co-authored-by: chenyu <[email protected]>
This commit is contained in:
Roelof van Dijk
2024-06-27 07:54:59 -04:00
committed by GitHub
co-authored by chenyu
parent f88f71d73a
commit 26e254c42b
4 changed files with 8 additions and 6 deletions
+2 -2
View File
@@ -63,11 +63,11 @@ class PythonProgram:
if g: _store(m, o, v)
i += 1
continue
elif uop is UOps.ENDRANGE:
if uop is UOps.ENDRANGE:
loop_ends[idp[0]] = i
i = idp[0]
continue
elif uop in (UOps.BARRIER, UOps.IF, UOps.ENDIF):
if uop in (UOps.BARRIER, UOps.IF, UOps.ENDIF):
# in the python emulator, the warp is always in sync
i += 1
continue