Skip to content

Commit

Permalink
Run ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
merydian authored and nyalldawson committed May 14, 2024
1 parent 50fe52f commit 0be84e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion firstaid/debugwidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ def go_to_frame(self, index):

self.source.openFile(filename)
self.source.jumpToLine(lineno)
self.source.addWarning(lineno-1, self.etype.__name__)
self.source.addWarning(lineno - 1, self.etype.__name__)

local_vars = frame_from_traceback(self.tb, index).f_locals
self.variables.setVariables(local_vars)
Expand Down
4 changes: 2 additions & 2 deletions test_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
def fact(n):
res = n
if n > 1:
res *= fact(n-1)
res *= fact(n - 1)
return res


def quicksort(lst):
if len(lst) < 2:
return lst
pivot_index = len(lst)/2
pivot_index = len(lst) / 2
pivot = lst[pivot_index]
lower = [x for x in lst if x < pivot]
higher = [x for x in lst if x > pivot]
Expand Down

0 comments on commit 0be84e2

Please sign in to comment.