From c9ec935b67c409d8022fb8a00b4efc802e1608e9 Mon Sep 17 00:00:00 2001 From: trent-codecov Date: Thu, 5 Oct 2023 15:15:18 -0400 Subject: [PATCH] Fixing sample data --- codecov_cli/__init__.py | 1 - samples/inputs/sample_001.py | 11 +++-------- samples/inputs/sample_002.py | 10 +++------- samples/inputs/sample_005.py | 13 +++++++------ setup.py | 2 +- 5 files changed, 14 insertions(+), 23 deletions(-) diff --git a/codecov_cli/__init__.py b/codecov_cli/__init__.py index 1b21c381..9063141a 100644 --- a/codecov_cli/__init__.py +++ b/codecov_cli/__init__.py @@ -1,4 +1,3 @@ import importlib.metadata - __version__ = importlib.metadata.version("codecov-cli") diff --git a/samples/inputs/sample_001.py b/samples/inputs/sample_001.py index 007cc1d1..2eed3282 100644 --- a/samples/inputs/sample_001.py +++ b/samples/inputs/sample_001.py @@ -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: @@ -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) diff --git a/samples/inputs/sample_002.py b/samples/inputs/sample_002.py index 6b8ee582..a0560533 100644 --- a/samples/inputs/sample_002.py +++ b/samples/inputs/sample_002.py @@ -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 @@ -40,4 +36,4 @@ def nested_conditionals(val): if val > 10: if val > 100: if val > 1000: - return "large value" + return 'large value' diff --git a/samples/inputs/sample_005.py b/samples/inputs/sample_005.py index 0e5f82bf..e0074428 100644 --- a/samples/inputs/sample_005.py +++ b/samples/inputs/sample_005.py @@ -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 @@ -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) @@ -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' diff --git a/setup.py b/setup.py index 75148821..0276840a 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,5 @@ -from platform import system from os import path +from platform import system from setuptools import Extension, find_packages, setup