Skip to content

Commit d8da0c4

Browse files
committed
Update files with ruff
1 parent d450e39 commit d8da0c4

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

ideeplc/__main__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,12 @@ def main():
103103
args = parser.parse_args()
104104

105105
# Set up logging to file: ideeplc_run.log
106-
log_file = Path(f"ideeplc.log")
106+
log_file = Path("ideeplc.log")
107107
_setup_logging(args.log_level, log_file=log_file)
108108

109109
try:
110110
run_ideeplc(args) # This should be the entry function from your main logic
111-
except Exception as e:
111+
except Exception:
112112
LOGGER.exception("Execution failed.")
113113
sys.exit(1)
114114

ideeplc/data_initialize.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
import platform
21
import logging
3-
from typing import Tuple, Optional, Union
2+
from typing import Tuple, Union
43
import pandas as pd
54
import numpy as np
65
from torch.utils.data import Dataset, DataLoader
@@ -47,7 +46,7 @@ def data_initialize(
4746
raise
4847

4948
if "seq" not in df.columns:
50-
LOGGER.error(f"CSV file must contain a 'seq' column with peptide sequences.")
49+
LOGGER.error("CSV file must contain a 'seq' column with peptide sequences.")
5150
raise ValueError("Missing 'seq' column in the CSV file.")
5251
if "modifications" not in df.columns:
5352
LOGGER.error(

ideeplc/ideeplc_core.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import argparse
21
import datetime
32
import logging
43
import torch
@@ -92,7 +91,7 @@ def main(args):
9291
input_file=args.input,
9392
save_results=args.save,
9493
)
95-
LOGGER.info(f"Prediction completed.")
94+
LOGGER.info("Prediction completed.")
9695
# Generate Figures
9796
make_figures(
9897
predictions=pred_results,

0 commit comments

Comments
 (0)