mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
[BE][CI] bump ruff to 0.9.8 (#145606)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/145606 Approved by: https://github.com/malfet ghstack dependencies: #144546
This commit is contained in:
committed by
PyTorch MergeBot
parent
644d84d594
commit
d48eb58d1d
@ -1476,7 +1476,7 @@ init_command = [
|
||||
'black==23.12.1',
|
||||
'usort==1.0.8.post1',
|
||||
'isort==5.13.2',
|
||||
'ruff==0.9.2', # sync with RUFF
|
||||
'ruff==0.9.8', # sync with RUFF
|
||||
]
|
||||
is_formatter = true
|
||||
|
||||
@ -1561,7 +1561,7 @@ init_command = [
|
||||
'python3',
|
||||
'tools/linter/adapters/pip_init.py',
|
||||
'--dry-run={{DRYRUN}}',
|
||||
'ruff==0.9.2', # sync with PYFMT
|
||||
'ruff==0.9.8', # sync with PYFMT
|
||||
]
|
||||
is_formatter = true
|
||||
|
||||
|
@ -12,8 +12,7 @@ def get_clickhouse_client() -> Any:
|
||||
# I cannot figure out why these values aren't being handled automatically
|
||||
# when it is fine in the lambda
|
||||
endpoint = endpoint.removeprefix("https://")
|
||||
if endpoint.endswith(":8443"):
|
||||
endpoint = endpoint[: -len(":8443")]
|
||||
endpoint = endpoint.removesuffix(":8443")
|
||||
return clickhouse_connect.get_client(
|
||||
host=endpoint,
|
||||
user=os.environ["CLICKHOUSE_USERNAME"],
|
||||
|
Reference in New Issue
Block a user