Skip to content

Commit

Permalink
Ruff format
Browse files Browse the repository at this point in the history
  • Loading branch information
dc-almeida committed Dec 6, 2024
1 parent 020d77e commit 219e8b4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
file_handler.setLevel(logging.DEBUG)

# Define a logging format (optional)
formatter = logging.Formatter("%(asctime)s %(levelname)s %(message)s", "%Y-%m-%d %H:%M:%S")
formatter = logging.Formatter(
"%(asctime)s %(levelname)s %(message)s", "%Y-%m-%d %H:%M:%S"
)
file_handler.setFormatter(formatter)

for logger_name in ["ixmp4", "pyam", "nomenclature", logger.name]:
Expand All @@ -30,4 +32,3 @@ def main(df: pyam.IamDataFrame) -> pyam.IamDataFrame:
logger.info(f"Starting processing for {snakemake.input[0]}")
main(pyam.IamDataFrame(snakemake.input[0])).to_excel(snakemake.output[0])
logger.info(f"Successfully finished processing for {snakemake.input[0]}")

0 comments on commit 219e8b4

Please sign in to comment.