mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
[BE]: Update ruff to 0.4.1 (#124549)
Update ruff to 0.4.1 . This version fixes a lot false negatives/false positives, is 20-40% faster, and has various other bug fixes. Below is a before and after table showing the execution time of ruff lint and ruff format in milliseconds courtesy of https://astral.sh/blog/ruff-v0.4.0 | Repository | Linter (v0.3) | Linter (v0.4) | Formatter (v0.3) | Formatter (v0.4) | |----------------------------------------------------|---------------|---------------|------------------|------------------| | [pytorch/pytorch](https://github.com/pytorch/pytorch) | 328.7 | 251.8 | 351.1 | 274.9 | Pull Request resolved: https://github.com/pytorch/pytorch/pull/124549 Approved by: https://github.com/ezyang
This commit is contained in:
committed by
PyTorch MergeBot
parent
f34905f61d
commit
5a1216bb2e
@ -49,8 +49,7 @@ class HipifyResult:
|
||||
self.status = ""
|
||||
|
||||
def __str__(self):
|
||||
return ("HipifyResult:: current_state: {}, hipified_path : {}, status: {}".format(self.current_state,
|
||||
self.hipified_path, self.status))
|
||||
return (f"HipifyResult:: current_state: {self.current_state}, hipified_path : {self.hipified_path}, status: {self.status}")
|
||||
|
||||
HipifyFinalResult = Dict[str, HipifyResult]
|
||||
HIPIFY_C_BREADCRUMB = "// !!! This is a file automatically generated by hipify!!!\n"
|
||||
|
Reference in New Issue
Block a user