Enforce string-formatting with f-strings (#10980)
* First third * Styling and fix mistake * Quality * All the rest * Treat %s and %d * typo * Missing ) * Apply suggestions from code review Co-authored-by: Lysandre Debut <lysandre@huggingface.co> Co-authored-by: Lysandre Debut <lysandre@huggingface.co>
This commit is contained in:
@@ -86,6 +86,6 @@ if __name__ == "__main__":
|
||||
end_train_time = time.time() - start_train_time
|
||||
|
||||
logger.info("*** Train ***")
|
||||
logger.info("train_runtime = %s", end_train_time)
|
||||
logger.info(f"train_runtime = {end_train_time}")
|
||||
for key, value in train_results.history.items():
|
||||
logger.info(" %s = %s", key, value)
|
||||
logger.info(f" {key} = {value}")
|
||||
|
||||
Reference in New Issue
Block a user