mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-08 19:44:57 -05:00
chore(tools): update command line for isort to follow the 100 line length
This commit is contained in:
@@ -5,14 +5,7 @@ from typing import Tuple, cast
|
||||
import networkx as nx
|
||||
import zamalang
|
||||
from mlir.dialects import builtin
|
||||
from mlir.ir import (
|
||||
Context,
|
||||
InsertionPoint,
|
||||
IntegerType,
|
||||
Location,
|
||||
Module,
|
||||
RankedTensorType,
|
||||
)
|
||||
from mlir.ir import Context, InsertionPoint, IntegerType, Location, Module, RankedTensorType
|
||||
from mlir.ir import Type as MLIRType
|
||||
from mlir.ir import UnrankedTensorType
|
||||
from zamalang.dialects import hlfhe
|
||||
|
||||
@@ -1,14 +1,7 @@
|
||||
"""Module for compiling numpy functions to homomorphic equivalents."""
|
||||
|
||||
from ..common.compilation import CompilationArtifacts, CompilationConfiguration
|
||||
from ..common.data_types import (
|
||||
Float,
|
||||
Float32,
|
||||
Float64,
|
||||
Integer,
|
||||
SignedInteger,
|
||||
UnsignedInteger,
|
||||
)
|
||||
from ..common.data_types import Float, Float32, Float64, Integer, SignedInteger, UnsignedInteger
|
||||
from ..common.debugging import draw_graph, get_printable_graph
|
||||
from ..common.extensions.table import LookupTable
|
||||
from ..common.values import (
|
||||
|
||||
@@ -37,7 +37,7 @@ do
|
||||
done
|
||||
|
||||
for SRC_DIR in "${DIRS[@]}"; do
|
||||
isort --profile black ${CHECK:+"$CHECK"} "${SRC_DIR}"
|
||||
isort -l 100 --profile black ${CHECK:+"$CHECK"} "${SRC_DIR}"
|
||||
((FAILURES+=$?))
|
||||
black -l 100 ${CHECK:+"$CHECK"} "${SRC_DIR}"
|
||||
((FAILURES+=$?))
|
||||
|
||||
@@ -4,9 +4,7 @@ from typing import Tuple
|
||||
|
||||
import pytest
|
||||
|
||||
from concrete.common.bounds_measurement.inputset_eval import (
|
||||
eval_op_graph_bounds_on_inputset,
|
||||
)
|
||||
from concrete.common.bounds_measurement.inputset_eval import eval_op_graph_bounds_on_inputset
|
||||
from concrete.common.data_types.floats import Float
|
||||
from concrete.common.data_types.integers import Integer
|
||||
from concrete.common.values import EncryptedScalar
|
||||
|
||||
@@ -1,11 +1,7 @@
|
||||
"""Test custom assert functions."""
|
||||
import pytest
|
||||
|
||||
from concrete.common.debugging.custom_assert import (
|
||||
assert_false,
|
||||
assert_not_reached,
|
||||
assert_true,
|
||||
)
|
||||
from concrete.common.debugging.custom_assert import assert_false, assert_not_reached, assert_true
|
||||
|
||||
|
||||
def test_assert_not_functions():
|
||||
|
||||
@@ -6,12 +6,7 @@ import pytest
|
||||
from concrete.common.data_types.floats import Float
|
||||
from concrete.common.data_types.integers import Integer
|
||||
from concrete.common.representation import intermediate as ir
|
||||
from concrete.common.values import (
|
||||
ClearScalar,
|
||||
ClearTensor,
|
||||
EncryptedScalar,
|
||||
EncryptedTensor,
|
||||
)
|
||||
from concrete.common.values import ClearScalar, ClearTensor, EncryptedScalar, EncryptedTensor
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
|
||||
@@ -10,10 +10,7 @@ from concrete.common.data_types.integers import Integer
|
||||
from concrete.common.debugging import draw_graph, get_printable_graph
|
||||
from concrete.common.extensions.table import LookupTable
|
||||
from concrete.common.values import ClearTensor, EncryptedScalar, EncryptedTensor
|
||||
from concrete.numpy.compile import (
|
||||
compile_numpy_function,
|
||||
compile_numpy_function_into_op_graph,
|
||||
)
|
||||
from concrete.numpy.compile import compile_numpy_function, compile_numpy_function_into_op_graph
|
||||
|
||||
|
||||
def no_fuse_unhandled(x, y):
|
||||
|
||||
@@ -7,12 +7,7 @@ import pytest
|
||||
from concrete.common.data_types.floats import Float
|
||||
from concrete.common.data_types.integers import Integer
|
||||
from concrete.common.representation import intermediate as ir
|
||||
from concrete.common.values import (
|
||||
ClearScalar,
|
||||
ClearTensor,
|
||||
EncryptedScalar,
|
||||
EncryptedTensor,
|
||||
)
|
||||
from concrete.common.values import ClearScalar, ClearTensor, EncryptedScalar, EncryptedTensor
|
||||
from concrete.numpy import tracing
|
||||
|
||||
OPERATIONS_TO_TEST = [ir.Add, ir.Sub, ir.Mul]
|
||||
|
||||
Reference in New Issue
Block a user