Run Black on all of tools/

Signed-off-by: Edward Z. Yang <ezyangfb.com>

Pull Request resolved: https://github.com/pytorch/pytorch/pull/76089

Approved by: https://github.com/albanD
This commit is contained in:
Edward Z. Yang
2022-04-20 08:51:02 -04:00
committed by PyTorch MergeBot
parent ae864d4fb9
commit a11c1bbdd0
79 changed files with 6183 additions and 3745 deletions

View File

@ -5,17 +5,17 @@ from pathlib import Path
def main() -> None:
folder = Path('.vscode')
recommended = json.loads((folder / 'settings_recommended.json').read_text())
path = folder / 'settings.json'
folder = Path(".vscode")
recommended = json.loads((folder / "settings_recommended.json").read_text())
path = folder / "settings.json"
try:
current = json.loads(path.read_text())
except Exception:
current = {}
with open(path, 'w') as f:
with open(path, "w") as f:
json.dump({**current, **recommended}, f, indent=2)
f.write('\n')
f.write("\n")
if __name__ == '__main__':
if __name__ == "__main__":
main()