Skip to content

Commit 865ff57

Browse files
committed
refactor(tenseal): linting Python scripts
1 parent 12fe8fa commit 865ff57

File tree

17 files changed

+26
-30
lines changed

17 files changed

+26
-30
lines changed

tenseal/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
"""TenSEAL is a library for doing homomorphic encryption operation on tensors.
2-
"""
1+
"""TenSEAL is a library for doing homomorphic encryption operation on tensors."""
32

43
try:
54
import _tenseal_cpp as _ts_cpp

tenseal/enc_context.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""The Context manages everything related to the encrypted computation, including keys, which
22
optimization should be enabled, and how many threads should run for a parallel computation.
33
"""
4+
45
import multiprocessing
56
from enum import Enum
67
from typing import List, Union

tenseal/sealapi/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
"""SEAL API bindings.
2-
"""
1+
"""SEAL API bindings."""
32

43
try:
54
import _sealapi_cpp

tenseal/tensors/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
- BFVVectpr: Vector of values encrypted using BFV.
77
- PlainTensor: N-dimensonal tensor, serving as the main type to interact with encrypted tensors.
88
"""
9+
910
from tenseal.tensors.ckkstensor import CKKSTensor
1011
from tenseal.tensors.ckksvector import CKKSVector
1112
from tenseal.tensors.bfvvector import BFVVector

tenseal/tensors/abstract_tensor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Abstract tensor class that implements common tensor methods"""
2+
23
from typing import List, Union
34
import tenseal as ts
45
from abc import ABC

tenseal/tensors/bfvtensor.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
"""N-dimensional tensor storing value in encrypted form using BFV.
2-
"""
1+
"""N-dimensional tensor storing value in encrypted form using BFV."""
32

43
from typing import List
54
import tenseal as ts

tenseal/tensors/bfvvector.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
"""Vector of values encrypted using BFV.
2-
"""
1+
"""Vector of values encrypted using BFV."""
2+
33
from typing import List
44
import tenseal as ts
55
from tenseal.tensors.abstract_tensor import AbstractTensor

tenseal/tensors/ckkstensor.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
"""N-dimensional tensor storing value in encrypted form using CKKS.
2-
"""
1+
"""N-dimensional tensor storing value in encrypted form using CKKS."""
32

43
from typing import List
54
import tenseal as ts

tenseal/tensors/ckksvector.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
"""Vector of values encrypted using CKKS. Less flexible, but more efficient than CKKSTensor.
2-
"""
1+
"""Vector of values encrypted using CKKS. Less flexible, but more efficient than CKKSTensor."""
2+
33
from typing import List
44
import tenseal as ts
55
from tenseal.tensors.abstract_tensor import AbstractTensor

tenseal/tensors/plaintensor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
"""N-dimensonal tensor, serving as the main type to interact with encrypted tensors.
2-
"""
1+
"""N-dimensonal tensor, serving as the main type to interact with encrypted tensors."""
2+
33
from typing import List, Union
44
import tenseal as ts
55
import numpy as np

0 commit comments

Comments
 (0)