[BE][Easy][5/19] enforce style for empty lines in import segments in tools/ and torchgen/ (#129756)

See https://github.com/pytorch/pytorch/pull/129751#issue-2380881501. Most changes are auto-generated by linter.

You can review these PRs via:

```bash
git diff --ignore-all-space --ignore-blank-lines HEAD~1
```

Pull Request resolved: https://github.com/pytorch/pytorch/pull/129756
Approved by: https://github.com/ezyang
This commit is contained in:
Xuehai Pan
2024-07-16 11:38:57 +08:00
committed by PyTorch MergeBot
parent ba48cf6535
commit f6838d521a
31 changed files with 47 additions and 15 deletions

View File

@ -9,6 +9,7 @@ from typing import Callable, Sequence
from tools.stats.import_test_stats import get_disabled_tests, get_slow_tests
from tools.testing.test_run import ShardedTest, TestRun
REPO_ROOT = Path(__file__).resolve().parent.parent.parent
IS_MEM_LEAK_CHECK = os.getenv("PYTORCH_TEST_CUDA_MEM_LEAK_CHECK", "0") == "1"