Ignore ruff rule `N813` (#21477)
Allow importing camelcase names in lowercase
This commit is contained in:
Родитель
08001d18ac
Коммит
ae3ec2e9ac
|
@ -1,7 +1,6 @@
|
|||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License.
|
||||
|
||||
# -*- coding: UTF-8 -*-
|
||||
import unittest
|
||||
|
||||
import numpy as np
|
||||
|
@ -10,7 +9,7 @@ from onnx import load
|
|||
|
||||
import onnxruntime.backend as backend
|
||||
from onnxruntime import datasets
|
||||
from onnxruntime.backend.backend import OnnxRuntimeBackend as ort_backend # noqa: N813
|
||||
from onnxruntime.backend.backend import OnnxRuntimeBackend as ort_backend
|
||||
|
||||
|
||||
def check_list_of_map_to_float(testcase, expected_rows, actual_rows):
|
||||
|
|
|
@ -77,6 +77,7 @@ ignore = [
|
|||
"G004", # FIXME: Enable when the rule can be autofixed
|
||||
"N803", # Argument casing
|
||||
"N812", # Allow import torch.nn.functional as F
|
||||
"N813", # Allow importing camelcase names in lowercase
|
||||
"N999", # Module names
|
||||
"NPY002", # np.random.Generator may not always fit our use cases
|
||||
"PERF203", # "try-except-in-loop" only affects Python <3.11, and the improvement is minor; can have false positives
|
||||
|
|
Загрузка…
Ссылка в новой задаче