mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
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:
committed by
PyTorch MergeBot
parent
ae864d4fb9
commit
a11c1bbdd0
@ -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()
|
||||
|
Reference in New Issue
Block a user