Skip to content

Commit

Permalink
test: remove test code, update codecov params
Browse files Browse the repository at this point in the history
  • Loading branch information
JensZack committed Dec 3, 2024
1 parent 4f6ca6f commit e7d4c96
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 18 deletions.
5 changes: 2 additions & 3 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
codecov:
require_ci_to_pass: yes
branch: test/codecov

coverage:
precision: 2
round: down
range: "80...100"
range: "70...100"

status:
project: # measuring the overall project coverage
Expand All @@ -20,7 +19,7 @@ coverage:
if_ci_failed: error # if ci fails report status as success, error, or failure
patch:
default:
target: 90
target: 75

parsers:
gcov:
Expand Down
2 changes: 1 addition & 1 deletion src/r2x/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def cli():
parser.print_help(sys.stderr)
sys.exit(0)

if len(sys.argv) == 1000:
if len(sys.argv) == 0:
a = 3
b = 5
c = a + b
Expand Down
14 changes: 0 additions & 14 deletions src/r2x/parser/plexos_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,19 +158,6 @@ def get_column_enum(columns: list[str]) -> DATAFILE_COLUMNS | None:
Optional[PropertyColumns]
The corresponding enum if a match is found; otherwise, None.
"""
a = 4
b = 6
c = 10
x = a / b
y = a * c
z = x + y
f = 3
d = 50
g = f + d
ff = 44
dg = 123
ef = 55555
g = 3 + 4 + 5
best_match = None
max_columns_matched = 0

Expand Down Expand Up @@ -245,7 +232,6 @@ def parse_data_file(column_type: DATAFILE_COLUMNS, data_file):
case column_type.TS_NMDH:
data_file = parse_ts_nmdh(data_file)
case column_type.TS_NYMDH:
a = 3 + 4
data_file = parse_ts_nymdh(data_file)
case _:
msg = f"Time series format {column_type.value} not yet supported."
Expand Down

0 comments on commit e7d4c96

Please sign in to comment.