Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CodeStyle][CINN] ruff F821,F901 in test/cinn #55103

Merged
merged 1 commit into from
Jul 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,6 @@ ignore = [
"F403",
"F632",
"F811",
"F821",
"F901",
"C408",
"C417",
"PLR0402",
Expand Down
6 changes: 5 additions & 1 deletion test/cinn/test_paddle_model_convertor.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@
import unittest

import numpy as np
from cinn.common import DefaultNVGPUTarget, is_compiled_with_cuda
from cinn.common import (
DefaultHostTarget,
DefaultNVGPUTarget,
is_compiled_with_cuda,
)
from cinn.frontend import PaddleModelConvertor
from cinn.runtime import seed as cinn_seed
from op_mappers.op_mapper_test import OpMapperTest
Expand Down
2 changes: 1 addition & 1 deletion test/cinn/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def create_target_data(self, inputs_data, attrs):
'''
create the target of the operator's execution output.
'''
raise NotImplemented
raise NotImplementedError

def test_op(self):
'''
Expand Down