-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4c1877e
commit f5570e4
Showing
1 changed file
with
23 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
] |