mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-04 02:26:51 +00:00
[misc] update pre-commit and run all files (#4752)
* [misc] update pre-commit * [misc] run pre-commit * [misc] remove useless configuration files * [misc] ignore cuda for clang-format
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import socket
|
||||
from typing import List
|
||||
|
||||
|
||||
class HostInfo:
|
||||
@@ -34,7 +33,7 @@ class HostInfo:
|
||||
"""
|
||||
|
||||
if port is None:
|
||||
port = 22 # no port specified, lets just use the ssh port
|
||||
port = 22 # no port specified, lets just use the ssh port
|
||||
|
||||
# socket.getfqdn("127.0.0.1") does not return localhost
|
||||
# on some users' machines
|
||||
@@ -50,7 +49,7 @@ class HostInfo:
|
||||
return localaddrs == targetaddrs
|
||||
|
||||
def __str__(self):
|
||||
return f'hostname: {self.hostname}, port: {self.port}'
|
||||
return f"hostname: {self.hostname}, port: {self.port}"
|
||||
|
||||
def __repr__(self):
|
||||
return self.__str__()
|
||||
|
Reference in New Issue
Block a user