Update generate ids to use yapf instead of black formatter
@@ -164,10 +164,10 @@ class IdGenerator:
# Apply formatting]
try:
- subprocess.run(["black", "--line-length", "120", ids_file_path])
+ subprocess.run(["poetry", "run", "yapf", ids_file_path, "-i"])
except FileNotFoundError:
print(
- f"Black is not installed. Please use 'pip install black' to install black formatter.\nCould not autoformat file {ids_file_path}"
+ f"Yapf is not installed. Please use 'pip install yapf' to install yapf formatter.\nCould not autoformat file {ids_file_path}"
)
if self.game_version is not None:
