mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-09-30 19:33:45 +08:00
CI: Pylint to ruff (#29294)
* pylint to riff * pylint to riff * pylint to riff * revert more * undo exclude removal * exclude tinygrad * set line length * pylint exclusions to ruff * same excludes as old linter * fix tools QA * remove unrequired check * revert linting third_party * ignore e402 old-commit-hash: 7fdd9fc37c1c5febf1cd3dc86441ebf0dec7f370
This commit is contained in:
@@ -8,7 +8,7 @@ from typing import Tuple, Dict, Union, Any
|
||||
os.environ["OMP_NUM_THREADS"] = "4"
|
||||
os.environ["OMP_WAIT_POLICY"] = "PASSIVE"
|
||||
|
||||
import onnxruntime as ort # pylint: disable=import-error
|
||||
import onnxruntime as ort
|
||||
|
||||
ORT_TYPES_TO_NP_TYPES = {'tensor(float16)': np.float16, 'tensor(float)': np.float32, 'tensor(uint8)': np.uint8}
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import struct, json
|
||||
import struct
|
||||
import json
|
||||
|
||||
def load_thneed(fn):
|
||||
with open(fn, "rb") as f:
|
||||
|
||||
Reference in New Issue
Block a user