pytorch/tools/github
Xuehai Pan 33d0dbcdc0 [BE][CI] bump ruff to 0.9.0: string quote styles
Reference: https://docs.astral.sh/ruff/formatter/#f-string-formatting

- Change the outer quotes to double quotes for nested f-strings

```diff
- f'{", ".join(args)}'
+ f"{', '.join(args)}"
```

- Change the inner quotes to double quotes for triple f-strings

```diff
  string = """
-     {', '.join(args)}
+     {", ".join(args)}
  """
```

- Join implicitly concatenated strings

```diff
- string = "short string " "short string " f"{var}"
+ string = f"short string short string {var}"
```

ghstack-source-id: 01fc1bbc1e
Pull Request resolved: https://github.com/pytorch/pytorch/pull/144569
2025-02-10 22:00:04 +08:00
..
__init__.py
github_utils.py [BE][CI] bump ruff to 0.9.0: string quote styles 2025-02-10 22:00:04 +08:00