Skip to content

Commit

Permalink
Fixing sample data
Browse files Browse the repository at this point in the history
  • Loading branch information
trent-codecov committed Oct 5, 2023
1 parent d7a76b2 commit c9ec935
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 23 deletions.
1 change: 0 additions & 1 deletion codecov_cli/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import importlib.metadata


__version__ = importlib.metadata.version("codecov-cli")
11 changes: 3 additions & 8 deletions samples/inputs/sample_001.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ def cachorro() -> int:
and 1 > 0
):
print("yell")
print(
"au au",
)
print("au au",)
x = 0
while x < 100:
if x > 2:
Expand Down Expand Up @@ -72,13 +70,10 @@ def forsandstuff(aaa):
return


def single_line():
return 1
def single_line(): return 1


def comma_at_end(
v,
):
def comma_at_end(v,):
print(v)


Expand Down
10 changes: 3 additions & 7 deletions samples/inputs/sample_002.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,11 @@ def some_more_if_stuff(val):
val = val * 2
else:
val = val - 1
return val**2
return val ** 2


def single_line_minecraft(bb):
k = 3
bb.matrix_blocks.render()
import minecraft

minecraft.run()
k = 3;bb.matrix_blocks.render(); import minecraft; minecraft.run()


a = 3
Expand All @@ -40,4 +36,4 @@ def nested_conditionals(val):
if val > 10:
if val > 100:
if val > 1000:
return "large value"
return 'large value'
13 changes: 7 additions & 6 deletions samples/inputs/sample_005.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
# Random comment

x = "some string"
y = "some string"
y = 'some string'
w = """some string"""


def well_documented_function(a, b):
"""Returns the value of a + b, a - b and a * b
As a tuple, in that order
""" Returns the value of a + b, a - b and a * b
As a tuple, in that order
"""
plus = a + b
minus = a - b
Expand All @@ -22,7 +22,7 @@ def well_documented_function(a, b):


def less_documented_function(a, b):
"""Returns tuple(a + b, a - b, a * b)"""
""" Returns tuple(a + b, a - b, a * b)"""
return (a + b, a - b, a * b)


Expand All @@ -32,7 +32,8 @@ def commented_function(a, b):


class MyClass:
"""This is my class, not yours u.u"""
"""This is my class, not yours u.u
"""

def __init__(self) -> None:
self.owner = "me"
self.owner = 'me'
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from platform import system
from os import path
from platform import system

from setuptools import Extension, find_packages, setup

Expand Down

0 comments on commit c9ec935

Please sign in to comment.