Update quality tooling for formatting (#21480)
* Result of black 23.1 * Update target to Python 3.7 * Switch flake8 to ruff * Configure isort * Configure isort * Apply isort with line limit * Put the right black version * adapt black in check copies * Fix copies
This commit is contained in:
@@ -22,6 +22,7 @@ from typing import Tuple
|
||||
from unittest.mock import patch
|
||||
|
||||
from parameterized import parameterized
|
||||
|
||||
from transformers.testing_utils import (
|
||||
CaptureStderr,
|
||||
ExtendSysPath,
|
||||
@@ -361,7 +362,6 @@ class TestTrainerExt(TestCasePlus):
|
||||
args += extra_args_str.split()
|
||||
|
||||
if distributed:
|
||||
|
||||
if n_gpus_to_use is None:
|
||||
n_gpus_to_use = get_gpu_count()
|
||||
master_port = get_torch_dist_unique_port()
|
||||
|
||||
Reference in New Issue
Block a user