Skip to content

Commit

Permalink
Format code with Black
Browse files Browse the repository at this point in the history
  • Loading branch information
deepsource-dev-autofix[bot] committed Jul 10, 2020
1 parent 4c1877e commit f5570e4
Showing 1 changed file with 23 additions and 8 deletions.
31 changes: 23 additions & 8 deletions test-autofix-pr.py
Original file line number Diff line number Diff line change
@@ -1,30 +1,45 @@
import os
from sys import (
path as p,
argv
)
from sys import path as p, argv
import math

# This should be at the top.
from __future__ import print_function
import random as ran


def foo(this_is_unused, x=[1, 2]):
x.append(ran.randint(1, 100))
return x


def bar():
print("Hey there, Reviewer!")


def spam():
print("Hope you're paying attention to the tests too!")


def give_me_an_issue():
print(f"okay. Let's fix this unnecessary fstring.")


def get_hypotenuse(a, b):
"""Fine. Fix this pythagorean issue as well."""
return math.sqrt(a**2 + b**2)
return math.sqrt(a ** 2 + b ** 2)


__all__ = [
"got_hypotenuse", # Shall be deleted
# Yup. Delete this
"this_too_would_be_deleted", give_me_an_issue, spam,
foo, "future", bar,
get_hypotenuse, "ughhh", # With a comment,
"this_too_would_be_deleted",
give_me_an_issue,
spam,
foo,
"future",
bar,
get_hypotenuse,
"ughhh", # With a comment,
"budd",
"thudd",
]

0 comments on commit f5570e4

Please sign in to comment.