fix poetry format in some cases